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

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


Reply to: