* sed -e 's/'$fn'//g' Thanks, but global replacement isn't what I'm after - I only want the first occurrence of the whole word in $flist. Luke and Dave are on the right track though. bd -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Statux Sent: Tuesday, January 02, 2001 10:04 PM To: [EMAIL PROTECTED] Subject: Re: Whole word substitution with sed > flist=`echo "$flist" | sed -e 's/'$fn'//' | awk '{ print }'` try adding a g to the end of the s statement... sed -e 's/'$fn'//g' :) _______________________________________________ Redhat-list mailing list [EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list _______________________________________________ Redhat-list mailing list [EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list
- Whole word substitution with sed bdoster
- Re: Whole word substitution with sed Statux
- upgrading to pine 4.30 Kyle Hargraves
- Re: upgrading to pine 4.30 Luke C Gavel
- Re: upgrading to pine 4.30 Wolfgang Pfeiffer
- Re: upgrading to pine 4.30 Wolfgang Pfeiffer
- Re: upgrading to pine 4.30 Mike Burger
- Re: Whole word substitution with sed Luke C Gavel
- Re: Whole word substitution with sed Dave Ihnat
- Re: Whole word substitution with sed Anthony E . Greene
- RE: Whole word substitution with sed bdoster
- RE: Whole word substitution with sed bdoster
- RE: Whole word substitution with sed Brad Doster
- RE: Whole word substitution with sed Cameron Simpson
- Re: Whole word substitution with sed Bret Hughes
- RE: Whole word substitution with sed Brad Doster
- Re: Whole word substitution with sed Cameron Simpson
- RE: Whole word substitution with sed Brad Doster
- NET: ? messages suppressed Ian Dobson
- RE: Whole word substitution with sed Cameron Simpson
- RE: Whole word substitution with sed Brad Doster
