mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-22 07:42:07 +02:00
sort: add output file example (#5040)
This commit is contained in:
parent
5818cc16b2
commit
152ee9b622
1 changed files with 2 additions and 2 deletions
|
@ -27,9 +27,9 @@
|
||||||
|
|
||||||
`sort -u {{path/to/file}}`
|
`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:
|
- Sort numbers with exponents:
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue