Re: [bash] вызов программы при нахождении совпадения в тексте файла
02.03.2013 12:27, Dmitry A. Zhiglov пишет: cat /etc/hostlist.conf | grep host | awk '{print $2}' grep host /etc/hostlist.conf | awk '{system(ping -c2 $2)}' -- Best regards, Mikhail - WWW: http://www.antmix.pp.ru/ XMPP: ant...@stopicq.ru signature.asc Description: OpenPGP digital signature
Re: [bash] вызов программы при нахождении совпадения в тексте файла
On Sat, Mar 02, 2013 at 12:33:52PM +0400, Mikhail A Antonov wrote: 02.03.2013 12:27, Dmitry A. Zhiglov пишет: cat /etc/hostlist.conf | grep host | awk '{print $2}' grep host /etc/hostlist.conf | awk '{system(ping -c2 $2)}' или grep host /etc/hostlist.conf | awk '{print $2}' |xargs -L1 ping -c2 -- http://vzhbanov.byethost33.com -- To UNSUBSCRIBE, email to debian-russian-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/20130302091440.GA6698@localhost.localdomain
Re: [bash] вызов программы при нахождении совпадения в тексте файла
2013/3/2 Mikhail A Antonov b...@solarnet.ru: 02.03.2013 12:27, Dmitry A. Zhiglov пишет: cat /etc/hostlist.conf | grep host | awk '{print $2}' grep host /etc/hostlist.conf | awk '{system(ping -c2 $2)}' Спасибо Михаил! -- To UNSUBSCRIBE, email to debian-russian-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/cahmfuovsfze9dbvumpjzoduftobj7vnr9miqlyrmzmkiyca...@mail.gmail.com