![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Confusion about 1>&2 and 2>&1 | navi | Shell Programming and Scripting | 1 | 06-03-2008 07:26 AM |
| Confusion In run level... | udayn | SUN Solaris | 1 | 02-16-2008 08:07 AM |
| 'tr' confusion | Nafanja | UNIX for Dummies Questions & Answers | 2 | 12-05-2007 07:47 PM |
| ftp confusion | intern | UNIX for Dummies Questions & Answers | 1 | 06-08-2006 03:20 PM |
| ISO Confusion? | Mr_Pinky | UNIX for Dummies Questions & Answers | 6 | 09-19-2005 03:14 PM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
|||
|
Sed confusion
Hello all,
I am trying to delete all the lines in a particular file having a pattern. The problem is that it has special characters and for some reason is not doing the job. For eg. src_file /home/test/filelist.txt :xxxx /home/test/RCH/ogogogg /home/test/RYHUJ/HHHH /home/test/filelist.txt :dfgdfg target file: /home/test/RCH/ogogogg /home/test/RYHUJ/HHHH So basically I want to remove all the lines that contain the pattern /home/test/filelist.txt Im using sed to do this but for some reason it is not working. Code:
sed -e 's/\/home\/test\/filelist.txt$//g' srcfile > /home/abc/tgtfile |
| Forum Sponsor | ||
|
|