[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: grep | sed do not function inline?



Am 2007-04-22 19:32:18, schrieb nicholas:
> I've seen the same thing with tail -f, and it confuses me as well.
> I look forward to an expert answer!
> 
> In this case, sed alone can handle the job, if you want to avoid perl:
> 
>  tail -f mylog | sed -n '/smtg/s/end/notend/p'

   tail -f mylog | sed -n '/smtg/,s/end/notend/p'
                                 ^


Thanks, Greetings and nice Day
    Michelle Konzack
    Systemadministrator
    Tamay Dogan Network
    Debian GNU/Linux Consultant


-- 
Linux-User #280138 with the Linux Counter, http://counter.li.org/
##################### Debian GNU/Linux Consultant #####################
Michelle Konzack   Apt. 917                  ICQ #328449886
                   50, rue de Soultz         MSN LinuxMichi
0033/6/61925193    67100 Strasbourg/France   IRC #Debian (irc.icq.com)

Attachment: signature.pgp
Description: Digital signature


Reply to: