Warning: count(): Parameter must be an array or an object that implements Countable in /var/www/vhosts/shan.info/httpdocs/components/com_k2/models/item.php on line 763

Remove duplicates line from files

perl -ne 'print unless $a{$_}++' file > out put file

 

 

awk '{a[$1]} END {for(i in a) print i}' filename > out put file

 

sort myfile.txt | uniq > out put file

 

 

awk '!_[$0]++' file

 

 

ruby -00 -ne 'puts $_.split("\n").uniq' file

 

 

perl -ne 'print unless $a{$_}++' file

 

 

sed '$!N; /^\(.*\)\n\1$/!P; D'

 

 

 

Last modified onThursday, 30 May 2013 03:08

Warning: count(): Parameter must be an array or an object that implements Countable in /var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/com_k2/templates/default/item.php on line 169
  • Published in reaver
  • Read 927 times

Notice: Only variables should be assigned by reference in /var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/com_k2/templates/default/item.php on line 478
back to top