Discussion: can this be done(sed)
Afficher un message
Vieux 21/08/2006, 11h36   #4
Stephane Chazelas
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut 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
  Réponse avec citation
 
Page generated in 0,04619 seconds with 9 queries