Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

bash print count of unique words in column

# Example usage:
awk -F '	' '{print $7}' input_file | sort | uniq -c
# Where: 
# 	- awk returns the 7th tab-delimited column/field of the input_file
# 	- sort sorts the entries so that duplicate entries are adjacent
# 	- uniq -c returns the counts of each type of element

# Note:
#	- add "| cut -c 9-" to remove the counts if you only want the unique values
#		found in the column/field
#	- the entrez-direct tool (conda install entrez-direct) has the command sort-uniq-count
#		and sort-uniq-count-rank that do a better job of formatting the output
Comment

PREVIOUS NEXT
Code Example
Shell :: powershell get empty folders 
Shell :: create zip file ubuntu 
Shell :: hapus folder di linux 
Shell :: angular create a service 
Shell :: recursively remove files with extension linux 
Shell :: Upgrading/ updating dart sdk 
Shell :: ubuntu youtube download playlists 
Shell :: apache show active sites 
Shell :: fsl flirt 
Shell :: alpine linux list processes 
Shell :: gpg change password 
Shell :: isntall jest cli 
Shell :: git pull in all repositories 
Shell :: bash create symlinks 
Shell :: node ace list routes 
Shell :: sqlmap enumerate tables in databases 
Shell :: sudo apt-get install podman 
Shell :: how to run xmrig on ubuntu 
Shell :: how to check hugo version 
Shell :: foreach bash 
Shell :: operator mono github 
Shell :: ubuntu install jdk 14 
Shell :: git test ssh 
Shell :: npm i socket.io 
Shell :: git transfer changes to another branch 
Shell :: how to do change permissions partition in linux 
Shell :: check git connfig 
Shell :: create gitignore files windows 
Shell :: ubuntu 20.04 uninstall all games 
Shell :: insta hack 
ADD CONTENT
Topic
Content
Source link
Name
9+2 =