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. gawkward

    problem with if/else sub

    Feherke, Thank you so very much, for solving this problem, but also teaching me some of the basic concepts that were escaping me. -M
  2. gawkward

    problem with if/else sub

    Feherke, Let me start by saying thanks. Your corrections & advice are helping me understand this a little better, and I appreciate that. I have modified the code: awk -F, '!sub(/=FOLK:SHPD=/,", ",$20){$20="\", \""}1' test_input.txt | awk '{OFS="," ; print $0}' > test_output.txt I'm trying...
  3. gawkward

    problem with if/else sub

    Feherke, Thank you so very much for that post, it has given me some valuable tips that I was missing from before. I am still having problems though, and I fear I am not understanding the use of //, and "" in my script. My input looks like this: LINE1: +30.21972...
  4. gawkward

    problem with if/else sub

    Any help is greatly appreciated!! I have an input text file (test_input.txt) that is comma del., and I need to make a substitution in $20 of this file, and write out the entire file after the text is substituted. I have the following command: awk -F, '{print $0}' test_input.txt | awk -F, {if...

Part and Inventory Search

Back
Top