On Tue, Jan 02, 2001 at 09:55:23PM -0800, [EMAIL PROTECTED] wrote:
> 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'.  ...
> ...

Do
        echo $flist | sed -e "s/ $fn / /"

Note the included delimiters on either side of the variable, and the retention
of one delimiter in the substitution string.

You could also use 'awk'.

Cheers,
-- 
        Dave Ihnat
        [EMAIL PROTECTED]



_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to