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 derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by mtn17

  1. mtn17

    length in if statement

    Thanks PHV and vgersh99 for all your help!!!!
  2. mtn17

    length in if statement

    Hi PVH, original code: nawk -F, '{OFS=","; print $1,$2,"00"$3" ",$4" PH",$6," PAYROLL HOURS USD ",$5,$7,$8}' /tmp/payfile > /tmp/paywork1 new (I still need help on what to do with inputs ($5,$7,$8) nawk -F, '{printf...
  3. mtn17

    length in if statement

    Thanks for replying. So if I have another line like this: nawk -F, '{OFS=","; print $1,$2,"00"$3" ",$4" PH",$6," PAYROLL HOURS USD ",$5,$7,$8}' /tmp/payfile > /tmp/paywork1 The same code can be written as this (based on...
  4. mtn17

    length in if statement

    I am new to AWK....I have these lines of codes, tried to run and received error but didn't understand the error msg. awk ' var1 = length($3) if (var1 = 6) nawk -F, '{OFS=","; print $1,$2,"00"$3" ",$8}' /tmp/payfile > /tmp/paywork1 if (var1 = 5) nawk -F, '{OFS=","; print...

Part and Inventory Search

Back
Top