Skip to content

dagamayank/awk-tricks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 

Repository files navigation

awk-tricks

Keep one instance of all the duplicate lines in a file.

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

Parse a csv file.

awk -F "\"*,\"*" '{print $COL}' file

Sum a particular column of a file.

awk '{sum+=$COL} END {print sum}' file

About

A collection of awk tricks

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published