|
Re: Post-grep-like operations: msg#00047editors.sed.user
On 12/10/05, pemente@xxxxxxxxxxxxx <pemente@xxxxxxxxxxxxx> wrote: > On 10 Dec 2005 at 16:31, Rob Simpson wrote: > > > I am wanting to select lines containing 'fruit' or 'veg', > > This will select those lines. The \| represents OR: > /fruit\|veg/ > > This will select all the lines that do NOT contain those terms: > /fruit\|veg/! It should be noted that \| only works with some versions of sed. It does not work for me since I am using OSX 10.2.8. and only have the default sed installed. It should work though on most, if not all, Linux systems. -- Lorance Stinson http://www.flickr.com/photos/lorancestinson/ http://lorance.freeshell.org/ ------------------------ Yahoo! Groups Sponsor --------------------~--> Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life. http://us.click.yahoo.com/KIlPFB/vlQLAA/TtwFAA/dkFolB/TM --------------------------------------------------------------------~-> -- Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/sed-users/ <*> To unsubscribe from this group, send an email to: sed-users-unsubscribe@xxxxxxxxxxxxxxx <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/ |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: Post-grep-like operations: 00047, pemente |
|---|---|
| Next by Date: | Re: Checking the version of sed you have: 00047, pemente |
| Previous by Thread: | Re: Post-grep-like operationsi: 00047, pemente |
| Next by Thread: | Re: Post-grep-like operations: 00047, Rob Simpson |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |