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?
برچسب:
نویسنده: استخدام کار