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

Re: OT: tail -f | while read



>>>>> "Martin" == Martin F Krafft <madduck@madduck.net> writes:

 Martin> and could someone give me a perl one-liner that takes each
 Martin> such line fed into its STDIN, and for each line, calls an
 Martin> external shell script with the entire line as argument?

why not just use xargs?

 find . -name \*.c | xargs wc -l

I think you can pass '-n 1' to xargs to cause it to execute the
command a separate time for each argument.

-- 

joe



Reply to: