Apr 1, 2004 #1 johnfm00 Technical User Dec 1, 2003 12 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 Jul 27, 2000 2,146 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 Dec 1, 2003 12 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 Nov 8, 2002 53,708 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