<div>Right. I'm sure there is away to let the script know that this is not a SHELL variable like $0 or $?.</div> <div> </div> <div>I thought if I put it in "" or '' it would work but did not!</div> <div> </div> <div>you are right, it seems awk can handle all the things I want but I'm new to awk and very close to the deadline. Will study it later. </div> <div> </div> <div>Thanks for your response.</div> <div> </div> <div>Regards,</div> <div>R.</div> <div><BR><BR><B><I>matti <mathew_2000@yahoo.com></I></B> wrote:</div> <BLOCKQUOTE class=replbq style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid"><BR>HI Ramsin,<BR><BR>OK, <BR><BR>1st, awk can handle ALL of the operations you<BR>are attempting to do.<BR><BR>while I don't have time to present the code,<BR>I would search the net for awk tutorials/examples<BR>which do similar operations.<BR><BR>> cut -f 2 file1.tmp | grep "DB" | awk ' {print $0} '
| cut -f 1-2<BR>> d, > tables_list.tmp<BR>> <BR>> then tables_list file has:<BR>> <BR>> "4","STUDENT TABLE"<BR>> "5","TEACHER TABLE"<BR>> <BR>> Then I use sed command to remove double quotes and ...<BR>> <BR>> Now. when I use awk is my script instead of replacing $0 with a<BR>> line from the text file it replaces it with script name. I need to<BR>> override this.<BR><BR>hmm.. ok, so in this case it is not reading<BR>your $0 as the entire line .. instead it <BR>thinks it's the variable for the script...<BR><BR>hmmm.. dang, dont have access to a unix box right now.<BR><BR>anyone?<BR><BR>matti<BR><BR><BR><BR><BR><BR>__________________________________________________<BR>Do You Yahoo!?<BR>Tired of spam? Yahoo! Mail has the best spam protection around <BR>http://mail.yahoo.com <BR></BLOCKQUOTE><BR><p> 
                <hr size=1>Do you Yahoo!?<br> Everyone is raving about the <a href="http://us.rd.yahoo.com/evt=42297/*http://advision.webevents.yahoo.com/mailbeta"> all-new Yahoo! Mail.</a>