Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. l33tgaijin

    nawk script not processing all lines in a file

    Hi, thanks for the reply. I just now figured it out. Actually, it was processing the first 86 lines just fine. I'm using length($column)<16(I forgot that strings in awk aren't quite like strings in C) to make sure that these fields don't exceed 15 characters (if they do, someone else has a big...
  2. l33tgaijin

    nawk script not processing all lines in a file

    btw, here are a couple of sample lines from the file being processed: 1~&quot;Presentation - Browser &quot;~3~&quot;01525 &quot; 2~&quot;Presentation - Proprietary &quot;~3~&quot;01525 &quot; 3~&quot;Presentation - Wireless &quot;~3~&quot;01525...
  3. l33tgaijin

    nawk script not processing all lines in a file

    Hello, Here's a script I'm using to left-pad columns in a tilde-delimited file: nawk -F~ 'length($1)<15{sub($1,sprintf(&quot;%015u&quot;,$1),$0)} length($3)<15{sub(FS$3FS,sprintf(&quot;~%015u~&quot;,$3),$0);print >FILENAME}' <Name of file here> so the file that I'm testing this on is...

Part and Inventory Search

Back
Top