Skip to content
Facebook page opens in new windowX page opens in new windowInstagram page opens in new window
SupportClient Area
Petal Host
News , Updates, Tips, Guide and Much More
Petal Host
  • Domains
  • Hosting
  • Servers
  • EMAILS
  • Security
  • Managed Solutions
  • Domains
  • Hosting
  • Servers
  • EMAILS
  • Security
  • Managed Solutions

mount umount

Insert string or text at the end of the line.

LinuxBy Abhinav MathurAugust 2, 2017

Some time we need to insert text or string at the end of the line in a file. This can be done using two methods “awk” and “sed” command. Below are the examples: Insertion with sed at the end of the line If you want to insert the text during the execution of the command…

mount umount

How to insert text string at the beginning of the line

LinuxBy DheryaAugust 2, 2017

Using sed command we can insert the text at any matching pattern of the file. Using sed we can insert at any point of the file. Insertion with sed at the beginning of the line If you want to insert the text during the execution of the command use -i option. Sed -i ‘s/^/begin here/’…

top
Go to Top