sort: add output file example (#5040)

translation-badges
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
1 changed files with 2 additions and 2 deletions

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: