The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com




Thread: sed help
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #5 (permalink)  
Old 12-08-2004
Ygor's Avatar
Ygor Ygor is offline Forum Staff  
Moderator
  
 

Join Date: Oct 2003
Location: -31.96,115.84
Posts: 1,409
Some utilities, like sed, are line-based, i.e they only work on complete lines. So, either add a newline to the last line, as bhargav suggests, but if you only want to do simple character translation, then consider using tr, which works on any file, e.g...

tr 'a' 'b' < file1 > file2