Linux-Bulgaria.ORG
навигация

 

начало

пощенски списък

архив на групата

семинари ...

документи

как да ...

 

 

Предишно писмо Следващо писмо Предишно по тема Следващо по тема По Дата По тема (thread)

Re: lug-bg: grep ? cat? tail?


  • Subject: Re: lug-bg: grep ? cat? tail?
  • From: mano@xxxxxxxxxxxxx (Marian Popov)
  • Date: Thu, 16 May 2002 14:00:54 +0300



Thank you so match :))

----- Original Message -----
From: "Tosho Yankov" <t.yankov@xxxxxxxxxxxxx>
To: <lug-bg@xxxxxxxxxxxxxxxxxx>
Sent: Thursday, May 16, 2002 9:10 AM
Subject: Re: lug-bg: grep ? cat? tail?

> #!/bin/bash
>
> allrow=`wc -l $1|cut -c 1-8`
> echo $allrow
> needrow=`echo "$allrow - $2"|bc`
> echo $needrow
> tail -$needrow $1
>
>
> ./script need_file broq_na_1-vite_redove
>
> Tosho Yankov
> Support
> S&T Bulgaria e.o.o.d.
> tel.: +359 52 602 510
> fax: +359 52 630 991
> e-mail: t.yankov@xxxxxxxxxxxxx
> ICQ: 7892403
> ----- Original Message -----
> From: "Minko Markov" <mmarkov@xxxxxxx>
> To: <lug-bg@xxxxxxxxxxxxxxxxxx>
> Sent: Thursday, May 16, 2002 5:23 AM
> Subject: Re: lug-bg: grep ? cat? tail?
>
>
> > Marian Popov wrote:
> > >
> > > 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
?
> >
> > Hrumva mi reshenie, no e tromavo i glupavo.
> > Napishi shell script, v koyto pqrvo v nyakakva
> > promenliva A se slaga broya na redovete (wc -l),
> > posle ot A se vadi X, ako rezultatqt e polozhitelen,
> >   tail -n $A  $1
> >
> > Ne pomnya tochno sintaksisa na bash, za da
> > napisha konkreten script. No  man bash  bi mi
> > bilo dostatqchno za celta.
> >
> > --
> > MM
> >
>
============================================================================
> > 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
> >
>
============================================================================
> >
>
>
============================================================================
> 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
>
============================================================================
>

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



 

наши приятели

 

линукс за българи
http://linux-bg.org

FSA-BG
http://fsa-bg.org

OpenFest
http://openfest.org

FreeBSD BG
http://bg-freebsd.org

KDE-BG
http://kde.fsa-bg.org/

Gnome-BG
http://gnome.cult.bg/

проект OpenFMI
http://openfmi.net

NetField Forum
http://netField.ludost.net/forum/

 

 

Linux-Bulgaria.ORG

Mailing list messages are © Copyright their authors.