Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

bash awk or

# 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: #bash #awk
ADD COMMENT
Topic
Name
9+4 =