How to add text to the starting of each line in Linux
We can use sed command to add text to the starting of each line.
#sed -i -e 's/^/text/' file.txt
Here we need to repace "text" and file.txt with the appropriate values.
That's all…
We can use sed command to add text to the starting of each line.
#sed -i -e 's/^/text/' file.txt
Here we need to repace "text" and file.txt with the appropriate values.
That's all…