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: *

  • Users: nnxx
  • Order by date
  1. nnxx

    How to escape single quote ??

    That's brilliant! It works. I like how efficient your suggestion is. I guess you must be writing awk code more than 2-3 lines every 2 years :-) Thanks again! nnxx
  2. nnxx

    How to escape single quote ??

    Hi PH, Thanks for your suggestions. I don't know if its my gawk version (3.1.1), but neither approach is working for me. Anyway, I'll spend some more time debugging this. Thanks again. Nitin.
  3. nnxx

    How to escape single quote ??

    Hi PHV, Thanks for the quick response. My usage is pretty simple, maybe too simple. I have the following in a text file and I simply run it from cmd line... gawk '{if(substr($0,1,1)=="c") {gsub(/out/, "\'", $0); print $0;} else print }' infile > outfile How can -f help ? Thanks! nnxx
  4. nnxx

    How to escape single quote ??

    Hello experts, Any idea how to substitute a character with a single quote "'" in awk ? If I use gsub, for example .. gsub(/out/, "in", $0) this replaces "out" with "in". But if I want to replace "out" with "'" instead, it obviously gives an error since it thinks its EOF. I've tried...

Part and Inventory Search

Back
Top