Horje
bash print count of unique words in column Code Example
bash print count of unique words in column
# Example usage:
awk -F '\t' '{print $7}' input_file | sort | uniq -c
# Breakdown: 
# 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 




Shell

Related
kill jobs fg Code Example kill jobs fg Code Example
create service for gunicorn in linux Code Example create service for gunicorn in linux Code Example
powershell join array Code Example powershell join array Code Example
dev/kvm not found Code Example dev/kvm not found Code Example
bash show newline characters Code Example bash show newline characters Code Example

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