I have a huge file that I need to parse. What I want to do is split those rows that have specific values in a specific column. Thus, it is like selecting only data that belongs to a certain category. How can this be done with a simple bash commnand or script.
For example, I want to separate only those rows that have values 1, 2, 3, or 4 in the eighth column. The file is limited to spaces.
source
share