#Extract first column while the lines are comma seperated
awk '{FS=","}{print $1}'
#Check whether second column is "Artists", if so, print first and second columns.
awk '{FS="\t"} $2 = "Artists" {print $1 "\t" $2}'
This blog intends to document all computer science problems I encountered and my solutions/comments to them.
#Extract first column while the lines are comma seperated
awk '{FS=","}{print $1}'
#Check whether second column is "Artists", if so, print first and second columns.
awk '{FS="\t"} $2 = "Artists" {print $1 "\t" $2}'
No comments:
Post a Comment