Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

awk or

awk '{
	if ( $2 == "abc" || $2 == "def") {
    	print "blah"
    }
}'
Comment

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"
Comment

PREVIOUS NEXT
Code Example
Shell :: copy files from another branch git 
Shell :: install zabbix 
Shell :: sed match newline 
Shell :: install postman arch linux 
Shell :: git hub set up 
Shell :: apache uninstall ubuntu ssh 
Shell :: clone docker image 
Shell :: jenkins local 
Shell :: error installing cocoapods mac 
Shell :: docker commands 
Shell :: scp 
Shell :: gatsby-plugin-feed-generator 
Shell :: sharegate powershell exclude file type 
Shell :: he5 command line 
Shell :: install mvc 5.2.4 nugget console 
Php :: php check folder exists and create 
Php :: check if session is started php 
Php :: laravel version check 
Php :: php artisan serve port 
Php :: brew remove php 
Php :: how to get file extension in laravel 
Php :: date now php 
Php :: blade number format by comma 
Php :: the_post_thumbnail add class 
Php :: php artisan route scan 
Php :: Delete Query with Where Condition in Codeigniter 
Php :: wordpress wp_query orderby random 
Php :: twig replace char 
Php :: laravel request all except token 
Php :: php get file contents 
ADD CONTENT
Topic
Content
Source link
Name
4+9 =