Also worth mentioning: tac
(the, ahem, reverse of cat
). Part of coreutils.
Flipping one file into another
tac a.txt > b.txt
More Related Contents:
- How do I copy a folder from remote to local using scp?
- Find and replace in file and overwrite file doesn’t work, it empties the file
- What are the uses of the exec command in shell scripts? [closed]
- How to make grep only match if the entire line matches?
- How can I shuffle the lines of a text file on the Unix command line or in a shell script?
- How can I execute a command stored in a variable?
- How to remove carriage return from a variable in shell script
- Use grep –exclude/–include syntax to not grep through certain files
- How/When does Execute Shell mark a build as failure in Jenkins?
- Compare two files line by line and generate the difference in another file
- Floating-point arithmetic in UNIX shell script
- Run java jar file on a server as background process
- How does the #! shebang work?
- Shell command to find lines common in two files
- How to download GitHub Release from private repo using command line
- Unix find command, what are the {} and \; for?
- How can I check the version of sed in OS X?
- Compare a string using sh shell
- How to kill all processes matching a name?
- How to ssh to vagrant without actually running “vagrant ssh”?
- Shell one liner to prepend to a file
- Is there a “standard” format for command line/shell help text?
- How is % (percent sign) special in crontab?
- Remove part of path on Unix
- What’s the difference between ${varname} and $varname in a shell scripts
- How do I determine if a web page exists with shell scripting?
- How to run SWI-Prolog from the command line?
- Call a Unix Script from Excel Vba
- “No such file or directory” but it exists
- Unix shell script find out which directory the script file resides?