z@z-ThinkPad-X61:~/zshangke/20201123$seq 5 20 > 1; ./z.cmd
20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5
z@z-ThinkPad-X61:~/zshangke/20201123$cat z.cmd
cat 1 > 2; cat 1 | xargs -i sed 's/^/{} /g' 2 | awk '{if($1>$2) print $0;}' >3
cat 1 | wc -l | sed 's/$/-2/g' | bc | xargs -i seq {} \
| awk '{ system(" cat 3 >2; cat 1 | xargs -i sed '\''s/^/{}/g'\'' 2 | awk '\''{if($1 > $2) print $0;}'\'' > 3 "); }'
cat 3
网友评论