I have a list of space delimited filenames in a variable 'flist', and I
want to remove one of them which is in a variable 'fn'. For the sake of
example, say:
flist="abcde bc de"
fn=bc
Now I want to remove $fn from $flist, but the following…
flist=`echo "$flist" | sed -e 's/'$fn'//' | awk '{ print }'`
…results in…
flist="ade bc de"
…IOW, not quite the desired result.
I've tried a slew of different things, none of which have worked.
Basically, if I could tell sed to only replace whole words, I'd be set. Any
help gratefully accepted!
bd
_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list