2008/5/15 L. V. Gandhi <[EMAIL PROTECTED]>:
> Where am I wrong

With the knowledge of the content of your files it is easier to
answer.  Running the script in trace mode is the best thing to do.

Anyway, I see that there are two problems here (which may or may not
be related to your problem):

> for trv in $(cat temp)

If expressions in `temp' contain spaces, they will be broken; this
would be better:
 while read trv; do
   ....
 done < temp


>                grep $trv stock/nsedata/2008/05/20080512.txt >> lstock

$trv should be quoted, like this:
  grep "$trv" ...


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to