摘要:
if [[ $barry1 = ${barringtype[$j]} ]] && [[ $list1 = ${listtype[$j]} ]]; then let mod++ fi 阅读全文
posted @ 2022-02-15 16:20
新茶煮酒
阅读(368)
评论(0)
推荐(0)
摘要:
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 阅读全文
posted @ 2022-02-15 15:08
新茶煮酒
阅读(282)
评论(0)
推荐(0)
摘要:
tail -n+2 file 输出第二行到最后一行 tail -n+3 file 输出第三行到最后一行 示例图如下: 阅读全文
posted @ 2022-02-15 15:06
新茶煮酒
阅读(214)
评论(0)
推荐(0)
摘要:
awk -F'|' '{if ( $18 == 11 && $24 == 7) print $0 }' file 判断第18列=11以及第24列等于7,输出整行 阅读全文
posted @ 2022-02-15 15:00
新茶煮酒
阅读(379)
评论(0)
推荐(0)

浙公网安备 33010602011771号