Re: can this be done(sed)
On 21 Aug 2006 03:24:43 -0700, Rakesh Sharma wrote:
>
> JyotiC wrote:
>> hi
>> when writing a sed command as
>> sed 's/../../..' filename
>> it takes input as some file,
>> can a string be given as input as
>> sed 's/../../..' string
>>
>
> sed -e 's/.../.../..' << [EOF]
> string
> [EOF]
[...]
I wouldn't use wildcards in the herefile terminator, that's
asking for trouble.
debian's ash (so possibly BSD shs as well) doesn't like it for
instance.
--
Stephane
|