- "grep" allows to find lines that contains the string/characters
- "sed" allows to append string/characters
$sed '/3696/ s/$/running file.txt'
foo1 3464
foo2 3696 running
foo3 4562
$sed 's/3696/& running/' file.txtP.S. Add the -i option to save the changes back to file.txt
foo1 3464
foo2 3696 running
foo3 4562
No comments:
Post a Comment