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 gkittelson 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. dukes82

    Beginner - Modifying fields in a file

    i'm running gawk from inside a cgi file, not the command line. so i'm a little confused. i think you're saying, #! path/to/gawk -f begin { OFS=FS if ($1==n) $2-=x print >output } but i'm not sure what the apostrophe after print is doing and what exactly OFS=FS is doing.
  2. dukes82

    Beginner - Modifying fields in a file

    I'm learning to script with gawk, and have a small problem. I have a file that represents a stock sheet name1|18 name2|15 name3|4 I'm trying to modify the last field. Is there a way to do this using print >> statements? does print >> always append to the end of a file, even if it's open...

Part and Inventory Search

Back
Top