Answers for "bash how to remove rows if specific field is blank"

1

bash how to remove rows if specific field is blank

# Basic syntax:
awk -F'delimiter' '$column# != ""' input_file

# Example usage:
awk -F'\t' '$3 != ""' input_file
# This prints every line in which the 3rd tab-delimited column is 
# not blank. Change the 3 to any column and/or add other conditions 
# for your application
Posted by: Guest on October-01-2020

Code answers related to "bash how to remove rows if specific field is blank"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language