📌  相关文章
📜  如果特定字段为空,bash 如何删除行 - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:51:47.644000             🧑  作者: Mango

代码示例1
# 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