<div> </div> <div>Hi Tom,</div> <div> </div> <div>Do you mean that if I shift the parameter then it would work?</div> <div> </div> <div>Thanks,</div> <div>R</div> <div> </div> <div> </div> <div><BR><BR><B><I>"Emerson, Tom" <Tom.Emerson@wbconsultant.com></I></B> wrote:</div> <BLOCKQUOTE class=replbq style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid">-----Original Message----- Of Ramsin Savra<BR>> Sure. I have a CSV file and I need to extract two first columns.[...]<BR>> In command line I do:<BR>><BR>> cut -f 2 file1.tmp | grep "DB" | awk ' {print $0} ' [...]<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<BR>> to
override this.<BR>><BR>> Any suggestions?<BR><BR>Shift<BR><BR>$man shift<BR>[bash builtins...]<BR>shift [n]<BR>The positional parameters from n+1 ... are renamed to $1<BR>....<BR>Parameters represented by the numbers $# down to $#-n+1 are<BR>unset.<BR>n must be a non-negative number less than or equal to $#. If n<BR>is<BR>0, no parame-ters are changed. If n is not given, it is<BR>assumed to be 1. If n is greater than $#, the positional<BR>parameters are not changed. The return status is greater than<BR>zero if n is greater than $# or less than zero; otherwise 0.<BR><BR></BLOCKQUOTE><BR><p> 
                <hr size=1>Do you Yahoo!?<br>
Get on board. <a href="http://us.rd.yahoo.com/evt=40791/*http://advision.webevents.yahoo.com/mailbeta">You're invited</a> to try the new Yahoo! Mail.