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

    Sub puts 1 or 0 at end of each line, I don't want it. Help!

    For as simple as awk is (even I understand some of it, c'mon!!!) I knew it was something simple like that. Thanks TONS. --Dustin Raley
  2. Draley

    Sub puts 1 or 0 at end of each line, I don't want it. Help!

    Okay, my input file looks like this: machine 192.168.1.26 login yourname password password My script looks like this: { print $0 sub(/192.168.1.26/, "0.0.0.0") > file } My output is this: machine 0.0.0.0 1 login yourname0 password password0 Is there any way I can get it to use...

Part and Inventory Search

Back
Top