Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

awk or

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

awk AND OR

AND &&
OR ||
e.g.
margin=180
cat Eenrgy.dat | awk -v marg="$margin" '{if($1>marg || $1<60) print $0}' > youfile.dat
					^assing envirimntal varible to awk   
Comment

PREVIOUS NEXT
Code Example
Shell :: remove thunar with its dependency 
Shell :: site:stackoverflow.com git clone specific folder 
Shell :: How to zero pad numbers in file names in Bash? 
Shell :: angular new site 
Shell :: raspberry install latest kernel 
Shell :: printing arguments in a script 
Shell :: remove memcached ubuntu 
Shell :: how to revert git apply patch 
Shell :: how to change the terminal start in directory 
Shell :: getAll on channel dev.fluttercommunity.plus/package_info 
Shell :: Non-base32 digit found 
Shell :: eval assignment 
Shell :: kali linux php reverse shell location 
Shell :: docker php fpm xsl 
Shell :: linux function return 
Shell :: sudo install awk 
Shell :: BertinAm github 
Shell :: btrfs get disk utilization for subdirectory 
Shell :: update aur packages archlinux 
Shell :: screenshot with annotation 
Shell :: promtail multiline 
Shell :: uninstall maps 
Shell :: rust kill command 
Shell :: script inside script bash 
Shell :: ffmpeg linux capture desktop 
Shell :: docker force new build without cache 
Shell :: powershell datetime to string 
Shell :: shortcut for finder in mac 
Shell :: bash measure execution time 
Shell :: sudo: add-apt-repository: command not foun 
ADD CONTENT
Topic
Content
Source link
Name
5+8 =