The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

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




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #7 (permalink)  
Old 09-01-2008
dennis.jacob dennis.jacob is offline Forum Advisor  
dj -------
  
 

Join Date: Feb 2007
Location: Singapore/Bangalore/Cochin
Posts: 588
Quote:
Originally Posted by unknown123 View Post
Dennis...it's also not working.......pls specify clearly.

suppose my output file is OUTFILE .....

pls tell me the exact code..
Its working well!!!!
Input:

Quote:
["/tmp" ]>cat sample
1233
message
["/tmp" ]>cat OUTFILE
test message 1233 abcf fsd ds f
test message abccd masage message
Code :

Quote:
["/tmp" ]>while read line
> do
> perl -i -ne 's/'$line'//g; print; ' OUTFILE
> done<sample
Output:

Quote:
["/tmp" ]>cat OUTFILE
test abcf fsd ds f
test abccd masage