View Single Post
  #3 (permalink)  
Old November 25th, 2008, 08:43 PM
hkboy100 hkboy100 is offline
Registered User
 
Join Date: Nov 2008
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi,
  I got same situation but i can't use awk program. I can only use SED command.
    Is it possible to filter rows with sed command

temp.txt
1;a;200
2;b;300
3;a;400
4;c;800
5;b;900

Now i want to filter on second field if field is equal to "a" or "b" then display rows otherwise throw it.

is it doable?





Reply With Quote