awk check text file line-by-line

For example; using awk to check whether a text file has exactly following 3 lines:code AA BB CC awk script: ip cat $infile | awk ' BEGIN { retcode = 0; rowcount = 3 } NR==1 { if ( $0 !
相關文章
相關標籤/搜索