Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- git log --pretty=oneline work...master | grep -v DEBUG: | cut -d' ' -f1 | reverse
- ... | cat -b | sort -rn | cut -f2-
- sed 'x;1!H;$!d;x'
- perl -e'print reverse<>'
- : "@(#)$Id: reverse.sh,v 1.2 1997/06/02 21:45:00 johnl Exp $"
- #
- # Reverse the order of the lines in each file
- awk ' { printf("%d:%sn", NR, $0);}' $* |
- sort -t: +0nr -1 |
- sed 's/^[0-9][0-9]*://'
- perl -e 'print reverse <>'
Add Comment
Please, Sign In to add comment