📜  awk 或语句 - Shell-Bash 代码示例

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

代码示例1
# Basic syntax:
||

# Example usage:
awk '{if ($2=="abc" || $2=="def") print "true"}' input_file
# I.e. if the second field equals "abc" OR "def", awk with print "true"