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
- 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
