tac: reverse text file

컴퓨터 2014. 4. 2. 18:02

cat textfile 과 비슷한데

textfile 내용을 거꾸로 찍어 준다.

 

활용법:

history | tac | head

하면 최근에 실행한 명령어를 볼 수 있다.

 

참고:

http://stackoverflow.com/questions/742466/how-can-i-reverse-the-order-of-lines-in-a-file