In Linux, you have file, kevin.txt, how do you print out the lines on cmd terminal in reverse (last line first, first line last)?
Answer
tac kevin.txt
^^ note: tac is cat in reverse:)
Question
In Linux, you have file, kevin.txt, how do you print out the lines on cmd terminal in reverse (last line first, first line last)?
Answer
?
Question
In Linux, you have file, kevin.txt, how do you print out the lines on cmd terminal in reverse (last line first, first line last)?
Answer
tac kevin.txt
^^ note: tac is cat in reverse:)
If you want to change selection, open document below and click on "Move attachment"
4. Basic Commands B pieces. Its sister, csplit , can split files along specified lines of text within the file. The commands are seldom used on their own but are very useful within programs that manipulate text. <span>tac <filename> [<filename> ...] Writes the contents of all the files listed to the screen, reversing the order of the lines--that is, printing the last line of the file first. t
Summary
status
not learned
measured difficulty
37% [default]
last interval [days]
repetition number in this series
0
memorised on
scheduled repetition
scheduled repetition interval
last repetition or drill
Details
No repetitions
Discussion
Do you want to join discussion? Click here to log in or create user.