Apr 1, 2004 #1 johnfm00 Technical User Joined Dec 1, 2003 Messages 12 Location AU hi, can anyone tell me how I can get these two lists of output side by side in the same file ? netstat -a | grep -i listen | awk '{print $4}' *.telacom *.evm *.ssh *.bdstrain netstat -n | grep -i listen | awk '{print $4}' *.7504 *.619 *.22 *.9008
hi, can anyone tell me how I can get these two lists of output side by side in the same file ? netstat -a | grep -i listen | awk '{print $4}' *.telacom *.evm *.ssh *.bdstrain netstat -n | grep -i listen | awk '{print $4}' *.7504 *.619 *.22 *.9008
Apr 1, 2004 #2 vgersh99 Programmer Joined Jul 27, 2000 Messages 2,146 Location US man paste vlad +----------------------------+ | #include<disclaimer.h> | +----------------------------+ Upvote 0 Downvote
man paste vlad +----------------------------+ | #include<disclaimer.h> | +----------------------------+
Apr 1, 2004 Thread starter #3 johnfm00 Technical User Joined Dec 1, 2003 Messages 12 Location AU thanks you very much vlad, that worked a treat. I didn't know about paste, nice to learn a new trick. Upvote 0 Downvote
thanks you very much vlad, that worked a treat. I didn't know about paste, nice to learn a new trick.
Apr 1, 2004 #4 PHV MIS Joined Nov 8, 2002 Messages 53,708 Location FR Something like this ? tmp=/tmp/$$ netstat -a | grep -i listen | awk '{print $4}' >$tmp.a netstat -n | grep -i listen | awk '{print $4}' >$tmp.n pr -m -t $tmp.? rm -f $tmp.? Hope This Help, PH. Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 Upvote 0 Downvote
Something like this ? tmp=/tmp/$$ netstat -a | grep -i listen | awk '{print $4}' >$tmp.a netstat -n | grep -i listen | awk '{print $4}' >$tmp.n pr -m -t $tmp.? rm -f $tmp.? Hope This Help, PH. Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884