Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

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
Comment

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
Comment

PREVIOUS NEXT
Code Example
Shell :: push branch to remote 
Shell :: “git force rebase abort” 
Shell :: Errors during downloading metadata for repository 
Shell :: amazon linux install ssm agent 
Shell :: convert all line endings to unix 
Shell :: git untracked content 
Shell :: linux verzeichnis löschen 
Shell :: error running pod install 
Shell :: react material-ui install error on react 18 
Shell :: install plasma on ubuntu 
Shell :: linux screen run jar 
Shell :: postgres install mac 
Shell :: node install ubuntu 
Shell :: How to download git for linux and unix 
Shell :: set alias in powershell 
Shell :: bash single line if-else condition 
Shell :: bash temporary file 
Shell :: how to customize grub 
Shell :: install code ubuntu 
Shell :: scp all files in directory 
Shell :: linux search for a given string in all files recursively 
Shell :: install next app 
Shell :: git ~ vs ^ 
Shell :: how to upgrade react in cra 
Shell :: install ssl ubuntu 
Shell :: get all branches from remote 
Shell :: install prettier globaly 
Shell :: linux go to home directory 
Shell :: open jupyter notebook with anaconda in powershell 
Shell :: git diff meld 
ADD CONTENT
Topic
Content
Source link
Name
1+6 =