Re: lug-bg: grep ? cat? tail?
- Subject: Re: lug-bg: grep ? cat? tail?
- From: sheib@xxxxxxxxxxxxxxxxx (sheib)
- Date: Thu, 16 May 2002 21:35:26 +0300 (EEST)
aw kakvi neshta prochetoh, rotfl :-)
$ tail -`expr $(wc -l <logfile> | awk '{print $1}') - <kolko_da_propusna>` <logfile>
i zamestvash stoinostite v <> adekvatno, vypreki che kato gledash log
file, po prezumcia iskash da vidish poslednite n reda; pishesh tail -n
<logfile>, no ti si znaesh :-) gornia cmd line triabva da ti reshi
problema bez da pravish izlishni izchislenia naum i da pishesh mnogo.
begin 755 muttcuts
M9&5C;&%R92`M>"!0051(/2(O8FEN.B]U<W(O8FEN(@II9B!;("0R(%T@.R!T
M:&5N('1A:6P@+6!E>'!R("0H=V,@+6P@)#$@?"!A=VL@)WMP<FEN="`D,7TG
M*2`M("0R8"`D,0IE;'-E('!R:6YT9B`B7&Y3>6YT87@Z(&!B87-E;F%M92`D
L,&`@/&QO9V9I;&4^(#PC(&]F(&QI;F5S('1O('-K:7`^7&Y<;B(@.R!F:0H`
`
end
mnou userfriendly sme dnes :-)
/s
> Zdraveite vsichki.
>
> Niakoi sluchaino znae li dali ima niakakva komanda koiato da moje da
> propusne pyrvite X reda i da otpechata ostanalite ot niakakyv log file ?
>
> mano
============================================================================
A mail-list of Linux Users Group - Bulgaria (bulgarian linuxers).
http://www.linux-bulgaria.org - Hosted by Internet Group Ltd. - Stara Zagora
To unsubscribe: http://www.linux-bulgaria.org/public/mail_list.html
============================================================================
|