Talk:Reverse the order of lines in a text file while preserving the contents of each line: Difference between revisions

m
no edit summary
(→‎Even worse: ? Some more suggestions)
mNo edit summary
Line 64:
<br>How about "Show the lines of a file in reverse order".
<br>I like Nigel's observation that the task is to implement the Linux "tac" command, so maybe ''Implement the Linux "tac" command'' would be good (the task description could then say that only reading from standard input need be supported, text files only, native OS definition of a line, etc. etc. Perhaps multiple input files could then be a stretch goal ? --[[User:Tigerofdarkness|Tigerofdarkness]] ([[User talk:Tigerofdarkness|talk]]) 17:17, 4 August 2021 (UTC)
 
Here is the help text about unix tac:
<pre>
copies each FILE (‘-’ means standard input),
or standard input if none are given,
to standard output, reversing the records
(lines by default) in each separately.</pre>
--[[User:Wherrera|Wherrera]] ([[User talk:Wherrera|talk]]) 17:40, 4 August 2021 (UTC)
4,105

edits