<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="es">
	<id>https://wiki.cabal.mx/index.php?action=history&amp;feed=atom&amp;title=Comandos_de_la_terminal%2Funiq</id>
	<title>Comandos de la terminal/uniq - Historial de revisiones</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.cabal.mx/index.php?action=history&amp;feed=atom&amp;title=Comandos_de_la_terminal%2Funiq"/>
	<link rel="alternate" type="text/html" href="https://wiki.cabal.mx/index.php?title=Comandos_de_la_terminal/uniq&amp;action=history"/>
	<updated>2026-04-05T05:15:37Z</updated>
	<subtitle>Historial de revisiones para esta página en el wiki</subtitle>
	<generator>MediaWiki 1.32.1</generator>
	<entry>
		<id>https://wiki.cabal.mx/index.php?title=Comandos_de_la_terminal/uniq&amp;diff=5125&amp;oldid=prev</id>
		<title>Rrc en 11:06 2 ene 2014</title>
		<link rel="alternate" type="text/html" href="https://wiki.cabal.mx/index.php?title=Comandos_de_la_terminal/uniq&amp;diff=5125&amp;oldid=prev"/>
		<updated>2014-01-02T11:06:22Z</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;
* [[:#uniq | uniq]]&lt;br /&gt;
&lt;br /&gt;
== uniq ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
uniq [options]... [InputFile [OutputFile]]&lt;br /&gt;
&lt;br /&gt;
[rrc@Llawyr ComandosDeLaTerminal]$ cat UniqEjemplo &lt;br /&gt;
Uno&lt;br /&gt;
dos&lt;br /&gt;
Tres&lt;br /&gt;
Dos&lt;br /&gt;
quatro&lt;br /&gt;
quatro&lt;br /&gt;
Quatro&lt;br /&gt;
uno&lt;br /&gt;
cinco&lt;br /&gt;
&lt;br /&gt;
[rrc@Llawyr ComandosDeLaTerminal]$ uniq UniqEjemplo &lt;br /&gt;
Uno&lt;br /&gt;
dos&lt;br /&gt;
Tres&lt;br /&gt;
Dos&lt;br /&gt;
quatro&lt;br /&gt;
Quatro&lt;br /&gt;
uno&lt;br /&gt;
cinco&lt;br /&gt;
&lt;br /&gt;
[rrc@Llawyr ComandosDeLaTerminal]$ uniq -c UniqEjemplo &lt;br /&gt;
      1 Uno&lt;br /&gt;
      1 dos&lt;br /&gt;
      1 Tres&lt;br /&gt;
      1 Dos&lt;br /&gt;
      2 quatro&lt;br /&gt;
      1 Quatro&lt;br /&gt;
      1 uno&lt;br /&gt;
      1 cinco&lt;br /&gt;
&lt;br /&gt;
[rrc@Llawyr ComandosDeLaTerminal]$ uniq -i UniqEjemplo &lt;br /&gt;
Uno&lt;br /&gt;
dos&lt;br /&gt;
Tres&lt;br /&gt;
Dos&lt;br /&gt;
quatro&lt;br /&gt;
uno&lt;br /&gt;
cinco&lt;br /&gt;
&lt;br /&gt;
[rrc@Llawyr ComandosDeLaTerminal]$ uniq -ic UniqEjemplo &lt;br /&gt;
      1 Uno&lt;br /&gt;
      1 dos&lt;br /&gt;
      1 Tres&lt;br /&gt;
      1 Dos&lt;br /&gt;
      3 quatro&lt;br /&gt;
      1 uno&lt;br /&gt;
      1 cinco&lt;br /&gt;
&lt;br /&gt;
[rrc@Llawyr ComandosDeLaTerminal]$ uniq --ignore-case UniqEjemplo &lt;br /&gt;
Uno&lt;br /&gt;
dos&lt;br /&gt;
Tres&lt;br /&gt;
Dos&lt;br /&gt;
quatro&lt;br /&gt;
uno&lt;br /&gt;
cinco&lt;br /&gt;
&lt;br /&gt;
[rrc@Llawyr ComandosDeLaTerminal]$ sort -o UniqSortEjemplo UniqEjemplo &lt;br /&gt;
&lt;br /&gt;
[rrc@Llawyr ComandosDeLaTerminal]$ uniq --ignore-case UniqSortEjemplo &lt;br /&gt;
cinco&lt;br /&gt;
dos&lt;br /&gt;
quatro&lt;br /&gt;
Tres&lt;br /&gt;
uno&lt;br /&gt;
&lt;br /&gt;
[rrc@Llawyr ComandosDeLaTerminal]$ uniq -i UniqSortEjemplo &lt;br /&gt;
cinco&lt;br /&gt;
dos&lt;br /&gt;
quatro&lt;br /&gt;
Tres&lt;br /&gt;
uno&lt;br /&gt;
&lt;br /&gt;
[rrc@Llawyr ComandosDeLaTerminal]$ uniq -ic UniqSortEjemplo &lt;br /&gt;
      1 cinco&lt;br /&gt;
      2 dos&lt;br /&gt;
      3 quatro&lt;br /&gt;
      1 Tres&lt;br /&gt;
      2 uno&lt;br /&gt;
&lt;br /&gt;
[rrc@Llawyr ComandosDeLaTerminal]$ uniq -d UniqSortEjemplo &lt;br /&gt;
quatro&lt;br /&gt;
&lt;br /&gt;
[rrc@Llawyr ComandosDeLaTerminal]$ uniq -di UniqSortEjemplo &lt;br /&gt;
dos&lt;br /&gt;
quatro&lt;br /&gt;
uno&lt;br /&gt;
&lt;br /&gt;
[rrc@Llawyr ComandosDeLaTerminal]$ uniq -u UniqSortEjemplo &lt;br /&gt;
cinco&lt;br /&gt;
dos&lt;br /&gt;
Dos&lt;br /&gt;
Quatro&lt;br /&gt;
Tres&lt;br /&gt;
uno&lt;br /&gt;
Uno&lt;br /&gt;
&lt;br /&gt;
[rrc@Llawyr ComandosDeLaTerminal]$ uniq -ui UniqSortEjemplo &lt;br /&gt;
cinco&lt;br /&gt;
Tres&lt;br /&gt;
&lt;br /&gt;
[rrc@Llawyr ComandosDeLaTerminal]$ uniq --version&lt;br /&gt;
uniq (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 Richard M. Stallman and David MacKenzie.&lt;br /&gt;
&lt;br /&gt;
[rrc@Llawyr ComandosDeLaTerminal]$ uniq --help&lt;br /&gt;
Usage: uniq [OPTION]... [INPUT [OUTPUT]]&lt;br /&gt;
Filter adjacent matching lines from INPUT (or standard input),&lt;br /&gt;
writing to OUTPUT (or standard output).&lt;br /&gt;
&lt;br /&gt;
With no options, matching lines are merged to the first occurrence.&lt;br /&gt;
&lt;br /&gt;
Mandatory arguments to long options are mandatory for short options too.&lt;br /&gt;
  -c, --count           prefix lines by the number of occurrences&lt;br /&gt;
  -d, --repeated        only print duplicate lines&lt;br /&gt;
  -D, --all-repeated[=delimit-method]  print all duplicate lines&lt;br /&gt;
                        delimit-method={none(default),prepend,separate}&lt;br /&gt;
                        Delimiting is done with blank lines&lt;br /&gt;
  -f, --skip-fields=N   avoid comparing the first N fields&lt;br /&gt;
  -i, --ignore-case     ignore differences in case when comparing&lt;br /&gt;
  -s, --skip-chars=N    avoid comparing the first N characters&lt;br /&gt;
  -u, --unique          only print unique lines&lt;br /&gt;
  -z, --zero-terminated  end lines with 0 byte, not newline&lt;br /&gt;
  -w, --check-chars=N   compare no more than N characters in lines&lt;br /&gt;
      --help     display this help and exit&lt;br /&gt;
      --version  output version information and exit&lt;br /&gt;
&lt;br /&gt;
A field is a run of blanks (usually spaces and/or TABs), then non-blank&lt;br /&gt;
characters.  Fields are skipped before chars.&lt;br /&gt;
&lt;br /&gt;
Note: &amp;#039;uniq&amp;#039; does not detect repeated lines unless they are adjacent.&lt;br /&gt;
You may want to sort the input first, or use &amp;#039;sort -u&amp;#039; without &amp;#039;uniq&amp;#039;.&lt;br /&gt;
Also, comparisons honor the rules specified by &amp;#039;LC_COLLATE&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
Report uniq 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;uniq invocation&amp;#039;&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>