Quantcast
Channel: Filter duplicates in file by using columns as parameters (grep linux) - Stack Overflow
Browsing latest articles
Browse All 2 View Live

Answer by hek2mgl for Filter duplicates in file by using columns as...

Why don't you simply use good old grep? It should be basically:grep '#type' *.ntTo avoid duplicates in the objectN part you can use uniq with the --skip-fields option:grep '#type' *.nt | sort -k3,3 |...

View Article



Filter duplicates in file by using columns as parameters (grep linux)

I am looking for the pattern #type in a set of files. As output I should return the lines containing that pattern. The lines are organized as columns with tab separator:<subject1> <#type>...

View Article
Browsing latest articles
Browse All 2 View Live




Latest Images