|
Programming C, bash, Python, Perl, PHP, Java, you name it. |
|
Thread Tools | Display Modes |
|
|||
Deleting lines with certain letters/keywords.
Hi Guys,
I've tried google, but I could not find any answer. Here's what I need to do: If I have a file that contains the letter a on certain lines, for example: 53a1 54b2 54o7 56a2 How could I delete the lines the have the letter a on it so the new file would loo like this: 54b2 54o7 P.S. I don't really mind the programming language to use to perform the above (perl, sed, tr, etc). Regards, --Bigb89 |
|
|||
Code:
cat foo && echo "===> Output:" && sed '/a/d' foo 53a1 54b2 54o7 56a2 ===> Output: 54b2 54o7
__________________
...then the God created man... Last edited by bsddaemon; 12th November 2008 at 04:58 PM. |
|
|||
Thanks everyone!
I'll be trying that out. |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Putting Lines to Together. | bigb89 | Programming | 4 | 24th September 2008 03:59 AM |
Adding multiple lines into file | c0mrade | Programming | 4 | 7th June 2008 11:03 PM |