Complete.Org: Mailing Lists: Archives: discussion: November 2001:
[aclug-L] Re: dumb sed problem
Home

[aclug-L] Re: dumb sed problem

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: ACLUG_DISCUSSION <discussion@xxxxxxxxx>
Subject: [aclug-L] Re: dumb sed problem
From: Maverick <mluvw47@xxxxxxxxx>
Date: Wed, 21 Nov 2001 13:50:49 -0800 (PST)
Reply-to: discussion@xxxxxxxxx

Thanks. all

Mav
--- Thomas Wallis <wallis@xxxxxxxxxxx> wrote:
>       The word maybe begins with a blank and ends with a
> blank.  There
> are several patterns you might try:
> 
> s/ abc / jkl /g           - get all words abc
> beginning and ending with SP 
> s/^abc /^jkl /g           - get all words abc at
> start of line. 
> s/ abc$/ jkl$/g            - get all words abd at
> end of line . 
> s/^abc$/^jkl$/g         - get abc on a line by
> itself. 
> 
> I could do this easier in Perl than in sed, but the
> principle is the same,
> I think.
> 
>                               T W 
> 
> 
> Disclaimer: All opinions expressed here are my own
> and not those of WSU.
> 
> EMAIL address:  wallis@xxxxxxxxxxx    
> 
>    
> 
> 


__________________________________________________
Do You Yahoo!?
Yahoo! GeoCities - quick and easy web site hosting, just $8.95/month.
http://geocities.yahoo.com/ps/info1
-- This is the discussion@xxxxxxxxx list.  To unsubscribe,
visit http://tmp2.complete.org/cgi-bin/listargate-aclug.cgi


[Prev in Thread] Current Thread [Next in Thread]
  • [aclug-L] Re: dumb sed problem, Maverick <=