Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

bash print line if column value is in column of another file

# Example usage:
awk 'FNR==NR{a[$1]=$1; next}; $8 in a {print $0;}' input_file_1 input_file_2
# This command prints rows from input_file_2 if the value in a specific
#	field of input_file_2 is found in a specific column of input_file_1.
#	With these specific numbers, this function prints the row from 
#	input_file_2 if the value in column 8 is present in column 1 of 
#	input_file_1.
Comment

PREVIOUS NEXT
Code Example
Shell :: docker image with wget 
Shell :: Yarn .gitignore for Zero Installs 
Shell :: brownie delete account 
Shell :: remove user from sudoers 
Shell :: gpg change password 
Shell :: grep process id 
Shell :: serverless not using aws profile 
Shell :: git track lfs 
Shell :: how to check if virtualization in enable on linux 
Shell :: port kill ubuntu 
Shell :: how to delete images older than x days from docker hub 
Shell :: heroku clear build cache 
Shell :: bash generate random number between 1 10 
Shell :: install bunjs 
Shell :: add upstream in git 
Shell :: install github desktop on arch linux 
Shell :: xcode print long string 
Shell :: pg_hba.conf location ubuntu 18.04 
Shell :: store ls into array bash 
Shell :: chrome ubuntu 
Shell :: how to use sed output to overwrite existin file 
Shell :: vscode display all extensions 
Shell :: * branch master - FETCH_HEAD 
Shell :: Failed to execute child process “python” (No such file or directory) 
Shell :: check git connfig 
Shell :: sleep command bash 
Shell :: apartheid linux 
Shell :: bash try catch 
Shell :: gitignore doesnt delte remote files 
Shell :: conda linux 
ADD CONTENT
Topic
Content
Source link
Name
4+4 =