[AWK] How to pickup specific data Posted by Computer Newbie on 晚上10:14 in awk, Ubuntu / No comments Catch column 5 awk -F' ' '{ print $5 }' ./abc.txt | awk "NR==1{print;exit}" # wlanconfig ath0 list sta ADDR AID CHAN RATE RSSI IDLE TXSEQ RXSEQ CAPS ACAPS ERP STATE HTCAPS 1c:4b:d6:d0:2e:ee 1 1 145M 63 0 341 7936 EPSs 0 f WPS RSN WME Reference : How To Use awk In Bash Scripting Share This: Facebook Twitter Google+ Stumble Digg 以電子郵件傳送這篇文章BlogThis!分享至 X分享至 Facebook Related Posts:[Linux][Bash script] Redirecting standard output and standard error [Linux][Bash script] Redirecting standard output and standard error 3.6.4 Redirecting Standard Output and Standard Error This construct allows… Read More[dd][MBR Erase][Linux] How to erase MBR use Linux command[dd][MBR Erase][Linux] How to erase MBR use Linux command Question: how to erase MBR in Linux ? Answer :# dd if=/dev/zero of=/dev/hda1 bs=512 count=1… Read More[vim][Linux] How to find and replace by using vim[vim][Linux] How to find and replace by using vim :%s/awesome/wonderful/gcreplace with wonderful (y/n/a/q/l/^E/^Y)?If string is /var/tmp/ and want to … Read More[Linux][Kernel introduce] System Call [Linux][Kernel introduce] System Call 1. Process Management : build up new process , query information , debug. 2. Signal &nb… Read More[minidlna] How to type minidlna command[minidlna] How to type minidlna command minidlna -R -f /tmp/minidlna.conf # minidlna [1970/01/01 00:04:53] minidlna.c:778: error: Usage: … Read More
0 意見:
張貼留言