mschecht
9/22/2017 - 7:47 AM

Whenever you want to parse out a section of a header, column name, etc... an effective method is to use sed to find and replace a part of th

Whenever you want to parse out a section of a header, column name, etc... an effective method is to use sed to find and replace a part of the header with a tab then cut out the new field

sed -e 's/thingtomakeintotab/\t/' | cut -fx

# sed -e is for finding and replacing an expression
# \t is for tab
# cut -fx -> x is for the field you would like to cut