TECHIES WORLD

For Techs.... Techniques.... Technologies....

AWSBashCpanelLinux

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…

Leave a Reply