Unix/Linux Go Back    



best method of replacing multiple strings in multiple files - sed or awk? most simple preferred :)

UNIX for Dummies Questions & Answers




Kindly Note - This is a Single User Post by Forum Member ygemici Regarding:
best method of replacing multiple strings in multiple files - sed or awk? most simple preferred :).
Please Follow The Primary Link Above to View the Full Discussion.

   
Old Unix and Linux 08-26-2010
ygemici ygemici is offline Forum Advisor  
sed_shell@LNU
 
Join Date: Feb 2010
Last Activity: 26 April 2017, 8:59 AM EDT
Location: istanbul
Posts: 1,713
Thanks: 4
Thanked 295 Times in 286 Posts
also if try want to write last line without \n is return anything


Code:
sed -n "$p" file1

equal null
unfortunately solaris sed has a few bugs LinuxLinux