摘要:
for (( j=2;j<4;j++ )) do #echo ${barringtype[$j]} ${listtype[$j]} if [[ $barry1 = ${barringtype[$j]} ]] && [[ $list1 = ${listtype[$j]} ]]; then let mo 阅读全文
摘要:
if [[ $barry1 = ${barringtype[$j]} ]] && [[ $list1 = ${listtype[$j]} ]]; then let mod++ fi 阅读全文
摘要:
sed ‘/pattern/!p’ infile //匹配pattern的行不输出sed -n ‘1,2p’ infile //print line 1 to 2sed -n ‘2,$p’ file //print line 2 to end of line 阅读全文
摘要:
tail -n+2 file 输出第二行到最后一行 tail -n+3 file 输出第三行到最后一行 示例图如下: 阅读全文
摘要:
awk -F'|' '{if ( $18 == 11 && $24 == 7) print $0 }' file 判断第18列=11以及第24列等于7,输出整行 阅读全文