业精于勤荒于嬉,行成于思毁于随
参考:http://sial.org/howto/perl/one-liner/
perl -e 'print sort <>' file
perl -e 'print reverse <>' file
perl -0777 -pe 's/\n+/\n/g' file
没有评论:
发表评论