Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google site




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #7 (permalink)  
Old 03-09-2009
Franklin52 Franklin52 is offline Forum Staff  
Moderator
 

Join Date: Feb 2007
Location: The Netherlands
Posts: 4,963
Quote:
Originally Posted by bhaskar_m View Post
Adding to this post I just wanted to know how to add some characters other than special characters in every line of a file , say I want to add a "/" at the end of all lines in file. Kindly help. Thank you
Escape the character with a backslash:

Code:
sed 's/$/\//'

Regards