<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://gunkies.org/index.php?action=history&amp;feed=atom&amp;title=32v_1m_sort</id>
		<title>32v 1m sort - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://gunkies.org/index.php?action=history&amp;feed=atom&amp;title=32v_1m_sort"/>
		<link rel="alternate" type="text/html" href="https://gunkies.org/w/index.php?title=32v_1m_sort&amp;action=history"/>
		<updated>2026-05-06T04:51:05Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.30.1</generator>

	<entry>
		<id>https://gunkies.org/w/index.php?title=32v_1m_sort&amp;diff=7024&amp;oldid=prev</id>
		<title>Neozeed: New page: SORT(1)             UNIX Programmer's Manual              SORT(1)    == NAME ==      sort - sort or merge files  == SYNOPSIS ==      sort [ -mubdfinrt_________x ] [ +_p_o_s_1  [ -_p_o_s_2 ...</title>
		<link rel="alternate" type="text/html" href="https://gunkies.org/w/index.php?title=32v_1m_sort&amp;diff=7024&amp;oldid=prev"/>
				<updated>2009-10-26T15:49:06Z</updated>
		
		<summary type="html">&lt;p&gt;New page: SORT(1)             UNIX Programmer&amp;#039;s Manual              SORT(1)    == NAME ==      sort - sort or merge files  == SYNOPSIS ==      sort [ -mubdfinrt_________x ] [ +_p_o_s_1  [ -_p_o_s_2 ...&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;SORT(1)             UNIX Programmer's Manual              SORT(1)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== NAME ==&lt;br /&gt;
     sort - sort or merge files&lt;br /&gt;
&lt;br /&gt;
== SYNOPSIS ==&lt;br /&gt;
     sort [ -mubdfinrt_________x ] [ +_p_o_s_1  [ -_p_o_s_2 ] ] ...  [ -o name ] [&lt;br /&gt;
     -T directory ] [ name ] ...&lt;br /&gt;
&lt;br /&gt;
== DESCRIPTION ==&lt;br /&gt;
     _S_o_r_t sorts lines of all the named files together and writes&lt;br /&gt;
     the result on the standard output.  The name `-' means the&lt;br /&gt;
     standard input.  If no input files are named, the standard&lt;br /&gt;
     input is sorted.&lt;br /&gt;
&lt;br /&gt;
     The default sort key is an entire line.  Default ordering is&lt;br /&gt;
     lexicographic by bytes in machine collating sequence.  The&lt;br /&gt;
     ordering is affected globally by the following options, one&lt;br /&gt;
     or more of which may appear.&lt;br /&gt;
&lt;br /&gt;
     b    Ignore leading blanks (spaces and tabs) in field com-&lt;br /&gt;
          parisons.&lt;br /&gt;
&lt;br /&gt;
     d    `Dictionary' order: only letters, digits and blanks are&lt;br /&gt;
          significant in comparisons.&lt;br /&gt;
&lt;br /&gt;
     f    Fold upper case letters onto lower case.&lt;br /&gt;
&lt;br /&gt;
     i    Ignore characters outside the ASCII range 040-0176 in&lt;br /&gt;
          nonnumeric comparisons.&lt;br /&gt;
&lt;br /&gt;
     n    An initial numeric string, consisting of optional&lt;br /&gt;
          blanks, optional minus sign, and zero or more digits&lt;br /&gt;
          with optional decimal point, is sorted by arithmetic&lt;br /&gt;
          value.  Option n implies option b.&lt;br /&gt;
&lt;br /&gt;
     r    Reverse the sense of comparisons.&lt;br /&gt;
&lt;br /&gt;
     t_x   `Tab character' separating fields is _x.&lt;br /&gt;
&lt;br /&gt;
     The notation +_p_o_s_1 -_p_o_s_2 restricts a sort key to a field&lt;br /&gt;
     beginning at _p_o_s_1 and ending just before _p_o_s_2.  _P_o_s_1 and&lt;br /&gt;
     _p_o_s_2 each have the form _m._n, optionally followed by one or&lt;br /&gt;
     more of the flags bdfinr, where _m tells a number of fields&lt;br /&gt;
     to skip from the beginning of the line and _n tells a number&lt;br /&gt;
     of characters to skip further.  If any flags are present&lt;br /&gt;
     they override all the global ordering options for this key.&lt;br /&gt;
     If the b option is in effect _n is counted from the first&lt;br /&gt;
     nonblank in the field; b is attached independently to _p_o_s_2.&lt;br /&gt;
     A missing ._n means .0; a missing -_p_o_s_2 means the end of the&lt;br /&gt;
     line.  Under the -t_x option, fields are strings separated by&lt;br /&gt;
     _x; otherwise fields are nonempty nonblank strings separated&lt;br /&gt;
     by blanks.&lt;br /&gt;
&lt;br /&gt;
     When there are multiple sort keys, later keys are compared&lt;br /&gt;
     only after all earlier keys compare equal.  Lines that oth-&lt;br /&gt;
     erwise compare equal are ordered with all bytes significant.&lt;br /&gt;
&lt;br /&gt;
     These option arguments are also understood:&lt;br /&gt;
&lt;br /&gt;
     c    Check that the input file is sorted according to the&lt;br /&gt;
          ordering rules; give no output unless the file is out&lt;br /&gt;
          of sort.&lt;br /&gt;
&lt;br /&gt;
     m    Merge only, the input files are already sorted.&lt;br /&gt;
&lt;br /&gt;
     o    The next argument is the name of an output file to use&lt;br /&gt;
          instead of the standard output.  This file may be the&lt;br /&gt;
          same as one of the inputs.&lt;br /&gt;
&lt;br /&gt;
     T    The next argument is the name of a directory in which&lt;br /&gt;
          temporary files should be made.&lt;br /&gt;
&lt;br /&gt;
     u    Suppress all but one in each set of equal lines.&lt;br /&gt;
          Ignored bytes and bytes outside keys do not participate&lt;br /&gt;
          in this comparison.&lt;br /&gt;
&lt;br /&gt;
     Examples. Print in alphabetical order all the unique spel-&lt;br /&gt;
     lings in a list of words.  Capitalized words differ from&lt;br /&gt;
     uncapitalized.&lt;br /&gt;
&lt;br /&gt;
             sort -u +0f +0 list&lt;br /&gt;
&lt;br /&gt;
     Print the password file (_p_a_s_s_w_d(5)) sorted by user id number&lt;br /&gt;
     (the 3rd colon-separated field).&lt;br /&gt;
&lt;br /&gt;
             sort -t: +2n /etc/passwd&lt;br /&gt;
&lt;br /&gt;
     Print the first instance of each month in an already sorted&lt;br /&gt;
     file of (month day) entries.  The options -um with just one&lt;br /&gt;
     input file make the choice of a unique representative from a&lt;br /&gt;
     set of equal lines predictable.&lt;br /&gt;
&lt;br /&gt;
             sort -um +0 -1 dates&lt;br /&gt;
&lt;br /&gt;
== FILES ==&lt;br /&gt;
     /usr/tmp/stm*, /tmp/*    first and second tries for tem-&lt;br /&gt;
     porary files&lt;br /&gt;
&lt;br /&gt;
== SEE ALSO ==&lt;br /&gt;
     [[32v 1m uniq|uniq(1)]], [[32v 1m comm|comm(1)]], [[32v 1m rev|rev(1)]], [[32v 1m join|join(1)]]&lt;br /&gt;
&lt;br /&gt;
== DIAGNOSTICS ==&lt;br /&gt;
     Comments and exits with nonzero status for various trouble&lt;br /&gt;
     conditions and for disorder discovered under option -c.&lt;br /&gt;
&lt;br /&gt;
== BUGS ==&lt;br /&gt;
     Very long lines are silently truncated.&lt;br /&gt;
&lt;br /&gt;
[[Category:32v man section 1]]&lt;/div&gt;</summary>
		<author><name>Neozeed</name></author>	</entry>

	</feed>