Bash ~ Perl ~ Python ~ Batch ~ Ruby
Sunday, 18 November 2012
Reversing file content
co() { max=`cat $1 | wc -l`; for((i=$max;i>0;i--));
do
cat $1 | gawk 'NR=='$i' {print}'
done
}
co filename
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment