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 Mike Lewis 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: spbr2
  • Order by date
  1. spbr2

    BASH Scripting

    Hi johnherman, Unfornualty thats not what im looking for, so I want to echo "line" to a specific line, e.g. line 2. Thank you
  2. spbr2

    BASH Scripting

    Hi SamBones Another Question with the below: #!/bin/bash LINE=3 ( head -1 file2.log head -${LINE} file1.log | tail -1 echo "line" >> -${LINE} file2.log tail --lines=+2 file2.log ) > file2.new mv file2.log file2.old mv file2.new file2.log If I wanted to echo a line next to the word...
  3. spbr2

    BASH Scripting

    Ok Would a for loop be best suited for this job? Thank you
  4. spbr2

    BASH Scripting

    Thank you SamBones for the last 2 replies. If you can, could you help me with the below: I need to create a program in which it does the following: - Select a word from file.log - print it into /etc/network/services under wireless key - ping the network - - if successful save the successful...
  5. spbr2

    BASH Scripting

    Hi, I understand how to copy a specific line to a file, but is it possible to copy a specific line from file1.log and print it to line 2 within file2.log? If so, how. Thank you

Part and Inventory Search

Back
Top