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
Newer Posts
Older Posts
Home
Subscribe to:
Posts (Atom)