1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-22 05:22:09 +02:00

sort: add output file example (#5040)

This commit is contained in:
Thomas Wünsche 2021-01-04 15:52:10 +01:00 committed by GitHub
parent 5818cc16b2
commit 152ee9b622
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -27,9 +27,9 @@
`sort -u {{path/to/file}}`
- Sort human-readable numbers (in this case the 5th field of `ls -lh`):
- Sort a file, printing the output to the specified output file (can be used to sort a file in-place):
`ls -lh | sort -h -k 5`
`sort --output={{path/to/file}} {{path/to/file}}`
- Sort numbers with exponents: