View previous topic :: View next topic |
Author |
Message |
SarahS93 l33t
Joined: 21 Nov 2013 Posts: 693
|
Posted: Sun Jul 31, 2016 7:36 pm Post subject: How to read a file and add in each line a "#" |
|
|
With which command/programm can i read a file and add in the beginning of earch line "# " and write this file than?! |
|
Back to top |
|
|
Hu Moderator
Joined: 06 Mar 2007 Posts: 21624
|
Posted: Sun Jul 31, 2016 7:58 pm Post subject: |
|
|
You could use sed -i -e 's/^/#/' list-of-files. |
|
Back to top |
|
|
|