Bash Sed Pipe to Command One-Liner

خرید بک لینک

I'm trying to dump output from all of my interfaces. This is what I've got so far:

ifconfig | awk '{print $1}' | sed s'/.$//'

I'd like to have something like :

ifconfig | awk '{print $1}' | sed s'/.$//' | tcpdump -i {} -c 1

where {} is what's passed in the pipe.

How can I pipe out to tcpdump in one line?

Recent Questions...

ما را در سایت Recent Questions دنبال می‌کنید

برچسب: نویسنده: استخدام کار بازدید: 259 تاريخ: جمعه 11 تير 1395 ساعت: 2:30

صفحه بندی