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...
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...
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
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.