Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

awk or statement

# Basic syntax:
||

# Example usage:
awk '{if ($2=="abc" || $2=="def") print "true"}' input_file
# Where:
#	- this prints true if the second field equals "abc" OR "def"
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #awk #statement
ADD COMMENT
Topic
Name
9+8 =