*       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

Reply via email to