Horje
bash count duplicate lines in a file Code Example
bash only print duplicated lines
# Basic syntax:
sort input_file | uniq -d
# Sort the file first because uniq requires a sorted file to work

# Note, uniq -d only prints one instance of lines that have duplicates
#	Use, uniq -c to count the number of duplicates in the file
bash count duplicate lines in a file
# Basic syntax:
sort input_file | uniq -c 
# Sort the file first because uniq requires a sorted file to work




Shell

Related
delete cash on ubuntu Code Example delete cash on ubuntu Code Example
linux run a program in the background Code Example linux run a program in the background Code Example
how to uninstall android studio in ubuntu 20.04 using terminal Code Example how to uninstall android studio in ubuntu 20.04 using terminal Code Example
tail access_log Code Example tail access_log Code Example
busybox ubuntu Code Example busybox ubuntu Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
9