![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | 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 and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Confusion about 1>&2 and 2>&1 | navi | Shell Programming and Scripting | 1 | 06-03-2008 11:26 AM |
| Confusion In run level... | udayn | SUN Solaris | 1 | 02-16-2008 12:07 PM |
| 'tr' confusion | Nafanja | UNIX for Dummies Questions & Answers | 2 | 12-05-2007 11:47 PM |
| ftp confusion | intern | UNIX for Dummies Questions & Answers | 1 | 06-08-2006 07:20 PM |
| ISO Confusion? | Mr_Pinky | UNIX for Dummies Questions & Answers | 6 | 09-19-2005 07:14 PM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | 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 gog/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 Any help appreciated. |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|