
09-01-2008
|
|
dj -------
|
|
|
Join Date: Feb 2007
Location: Singapore/Bangalore/Cochin
Posts: 588
|
|
Quote:
Originally Posted by unknown123
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
|
|