<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="es">
	<id>http://wiki.cabal.mx/index.php?action=history&amp;feed=atom&amp;title=Comandos_de_la_terminal%2Fsort</id>
	<title>Comandos de la terminal/sort - Historial de revisiones</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.cabal.mx/index.php?action=history&amp;feed=atom&amp;title=Comandos_de_la_terminal%2Fsort"/>
	<link rel="alternate" type="text/html" href="http://wiki.cabal.mx/index.php?title=Comandos_de_la_terminal/sort&amp;action=history"/>
	<updated>2026-04-21T10:32:42Z</updated>
	<subtitle>Historial de revisiones para esta página en el wiki</subtitle>
	<generator>MediaWiki 1.32.1</generator>
	<entry>
		<id>http://wiki.cabal.mx/index.php?title=Comandos_de_la_terminal/sort&amp;diff=5122&amp;oldid=prev</id>
		<title>Rrc en 18:56 31 dic 2013</title>
		<link rel="alternate" type="text/html" href="http://wiki.cabal.mx/index.php?title=Comandos_de_la_terminal/sort&amp;diff=5122&amp;oldid=prev"/>
		<updated>2013-12-31T18:56:08Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Página nueva&lt;/b&gt;&lt;/p&gt;&lt;div&gt;__NOTOC__&lt;br /&gt;
* [[:#sort | sort]]&lt;br /&gt;
&lt;br /&gt;
== sort ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[rrc@Llawyr ComandosDeLaTerminal]$ cat SortEjemplo &lt;br /&gt;
Alpha&lt;br /&gt;
29&lt;br /&gt;
  Delta&lt;br /&gt;
1&lt;br /&gt;
Zeta&lt;br /&gt;
2&lt;br /&gt;
     eta&lt;br /&gt;
20&lt;br /&gt;
theta&lt;br /&gt;
&lt;br /&gt;
[rrc@Llawyr ComandosDeLaTerminal]$ sort SortEjemplo &lt;br /&gt;
1&lt;br /&gt;
2&lt;br /&gt;
20&lt;br /&gt;
29&lt;br /&gt;
Alpha&lt;br /&gt;
  Delta&lt;br /&gt;
     eta&lt;br /&gt;
theta&lt;br /&gt;
Zeta&lt;br /&gt;
&lt;br /&gt;
[rrc@Llawyr ComandosDeLaTerminal]$ sort -n SortEjemplo &lt;br /&gt;
Alpha&lt;br /&gt;
  Delta&lt;br /&gt;
     eta&lt;br /&gt;
theta&lt;br /&gt;
Zeta&lt;br /&gt;
1&lt;br /&gt;
2&lt;br /&gt;
20&lt;br /&gt;
29&lt;br /&gt;
&lt;br /&gt;
[rrc@Llawyr ComandosDeLaTerminal]$ sort -o SortSi SortEjemplo &lt;br /&gt;
[rrc@Llawyr ComandosDeLaTerminal]$ sort -c SortEjemplo &lt;br /&gt;
sort: SortEjemplo:2: disorder: 29&lt;br /&gt;
[rrc@Llawyr ComandosDeLaTerminal]$ sort -c SortSi&lt;br /&gt;
&lt;br /&gt;
[rrc@Llawyr ComandosDeLaTerminal]$ sort --version&lt;br /&gt;
sort (GNU coreutils) 8.20&lt;br /&gt;
Copyright (C) 2012 Free Software Foundation, Inc.&lt;br /&gt;
License GPLv3+: GNU GPL version 3 or later &amp;lt;http://gnu.org/licenses/gpl.html&amp;gt;.&lt;br /&gt;
This is free software: you are free to change and redistribute it.&lt;br /&gt;
There is NO WARRANTY, to the extent permitted by law.&lt;br /&gt;
&lt;br /&gt;
Written by Mike Haertel and Paul Eggert.&lt;br /&gt;
&lt;br /&gt;
[rrc@Llawyr ComandosDeLaTerminal]$ sort --help&lt;br /&gt;
Usage: sort [OPTION]... [FILE]...&lt;br /&gt;
  or:  sort [OPTION]... --files0-from=F&lt;br /&gt;
Write sorted concatenation of all FILE(s) to standard output.&lt;br /&gt;
&lt;br /&gt;
Mandatory arguments to long options are mandatory for short options too.&lt;br /&gt;
Ordering options:&lt;br /&gt;
&lt;br /&gt;
  -b, --ignore-leading-blanks  ignore leading blanks&lt;br /&gt;
  -d, --dictionary-order      consider only blanks and alphanumeric characters&lt;br /&gt;
  -f, --ignore-case           fold lower case to upper case characters&lt;br /&gt;
  -g, --general-numeric-sort  compare according to general numerical value&lt;br /&gt;
  -i, --ignore-nonprinting    consider only printable characters&lt;br /&gt;
  -M, --month-sort            compare (unknown) &amp;lt; &amp;#039;JAN&amp;#039; &amp;lt; ... &amp;lt; &amp;#039;DEC&amp;#039;&lt;br /&gt;
  -h, --human-numeric-sort    compare human readable numbers (e.g., 2K 1G)&lt;br /&gt;
  -n, --numeric-sort          compare according to string numerical value&lt;br /&gt;
  -R, --random-sort           sort by random hash of keys&lt;br /&gt;
      --random-source=FILE    get random bytes from FILE&lt;br /&gt;
  -r, --reverse               reverse the result of comparisons&lt;br /&gt;
      --sort=WORD             sort according to WORD:&lt;br /&gt;
                                general-numeric -g, human-numeric -h, month -M,&lt;br /&gt;
                                numeric -n, random -R, version -V&lt;br /&gt;
  -V, --version-sort          natural sort of (version) numbers within text&lt;br /&gt;
&lt;br /&gt;
Other options:&lt;br /&gt;
&lt;br /&gt;
      --batch-size=NMERGE   merge at most NMERGE inputs at once;&lt;br /&gt;
                            for more use temp files&lt;br /&gt;
  -c, --check, --check=diagnose-first  check for sorted input; do not sort&lt;br /&gt;
  -C, --check=quiet, --check=silent  like -c, but do not report first bad line&lt;br /&gt;
      --compress-program=PROG  compress temporaries with PROG;&lt;br /&gt;
                              decompress them with PROG -d&lt;br /&gt;
      --debug               annotate the part of the line used to sort,&lt;br /&gt;
                              and warn about questionable usage to stderr&lt;br /&gt;
      --files0-from=F       read input from the files specified by&lt;br /&gt;
                            NUL-terminated names in file F;&lt;br /&gt;
                            If F is - then read names from standard input&lt;br /&gt;
  -k, --key=KEYDEF          sort via a key; KEYDEF gives location and type&lt;br /&gt;
  -m, --merge               merge already sorted files; do not sort&lt;br /&gt;
  -o, --output=FILE         write result to FILE instead of standard output&lt;br /&gt;
  -s, --stable              stabilize sort by disabling last-resort comparison&lt;br /&gt;
  -S, --buffer-size=SIZE    use SIZE for main memory buffer&lt;br /&gt;
  -t, --field-separator=SEP  use SEP instead of non-blank to blank transition&lt;br /&gt;
  -T, --temporary-directory=DIR  use DIR for temporaries, not $TMPDIR or /tmp;&lt;br /&gt;
                              multiple options specify multiple directories&lt;br /&gt;
      --parallel=N          change the number of sorts run concurrently to N&lt;br /&gt;
  -u, --unique              with -c, check for strict ordering;&lt;br /&gt;
                              without -c, output only the first of an equal run&lt;br /&gt;
  -z, --zero-terminated     end lines with 0 byte, not newline&lt;br /&gt;
      --help     display this help and exit&lt;br /&gt;
      --version  output version information and exit&lt;br /&gt;
&lt;br /&gt;
KEYDEF is F[.C][OPTS][,F[.C][OPTS]] for start and stop position, where F is a&lt;br /&gt;
field number and C a character position in the field; both are origin 1, and&lt;br /&gt;
the stop position defaults to the line end.  If neither -t nor -b is in&lt;br /&gt;
effect, characters in a field are counted from the beginning of the preceding&lt;br /&gt;
whitespace.  OPTS is one or more single-letter ordering options [bdfgiMhnRrV],&lt;br /&gt;
which override global ordering options for that key.  If no key is given, use&lt;br /&gt;
the entire line as the key.&lt;br /&gt;
&lt;br /&gt;
SIZE may be followed by the following multiplicative suffixes:&lt;br /&gt;
% 1% of memory, b 1, K 1024 (default), and so on for M, G, T, P, E, Z, Y.&lt;br /&gt;
&lt;br /&gt;
With no FILE, or when FILE is -, read standard input.&lt;br /&gt;
&lt;br /&gt;
*** WARNING ***&lt;br /&gt;
The locale specified by the environment affects sort order.&lt;br /&gt;
Set LC_ALL=C to get the traditional sort order that uses&lt;br /&gt;
native byte values.&lt;br /&gt;
&lt;br /&gt;
Report sort bugs to bug-coreutils@gnu.org&lt;br /&gt;
GNU coreutils home page: &amp;lt;http://www.gnu.org/software/coreutils/&amp;gt;&lt;br /&gt;
General help using GNU software: &amp;lt;http://www.gnu.org/gethelp/&amp;gt;&lt;br /&gt;
For complete documentation, run: info coreutils &amp;#039;sort invocation&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Comandos de la terminal]]&lt;/div&gt;</summary>
		<author><name>Rrc</name></author>
		
	</entry>
</feed>