Question

I have a tsv file with thousands of tab delimmited lines and I need to search for someones name and then copy the entire line to a seperate file over and over. Can anyone help? Thanks!!

Was it helpful?

Solution

Question is vague but this should generally work:

grep "some-name" *.tsv > ouput

OTHER TIPS

It sounds very simple:

grep "someone's name" tsv-file > separate-file

What's the catch? Is the name in one or two fields? Middle initials?

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top