摘要:
file1="1.txt" file2="2.txt" lines=`cat $file1 | wc -l` for ((i=1;i<=$lines;i++)) do line1=`awk 'NR=="'$i'"{print $0}' $file1` line2=`awk 'NR=="'$i'"{print $0}' $file2` if [[ $line1 == $line2... 阅读全文
posted @ 2019-01-15 17:45
c++11
阅读(4037)
评论(0)
推荐(0)
摘要:
string="hell|ttt|sss|2222" OLD_IFS="$IFS" IFS="|" array=($string) IFS="$OLD_IFS" for var in ${array[@]} do echo $var done 阅读全文
posted @ 2019-01-15 17:36
c++11
阅读(4386)
评论(0)
推荐(0)
摘要:
1.使用grep 2. 使用操作符~ 3. 使用通配符* 阅读全文
posted @ 2019-01-15 17:27
c++11
阅读(74251)
评论(0)
推荐(2)

浙公网安备 33010602011771号