Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

bash vlookup equivalent

# Example usage:
awk 'FNR==NR{a[$1]=$2; next}; {if($9 in a) {print $0, "	"a[$9];} else {print $0, "	NA"}}' input_file_1 input_file_2
# This command does a VLOOKUP-type operation between two files using awk. With
#	the numbers above, column 1 from input_file_1 is used an a key in an array
#	with column 2 of input_file_1 as the match for the key. Column 9 of input
#	_file_2 is then compared to the keys from input_file_1 and any matches
#	return the associated match from input_file_1 (here, column 2).
Comment

PREVIOUS NEXT
Code Example
Shell :: usb sound card not working ubuntu 
Shell :: Créer un installateur Windows 
Shell :: double dollar sign bash 
Shell :: how to install modules from requirement.txt 
Shell :: pocketsphinx install error 
Shell :: how to unstash git stash 
Shell :: install qt4-qmake ubuntu 
Shell :: how to remove nvm 
Shell :: react native init 
Shell :: download bangla font ubuntu 
Shell :: neovim install wsl 
Shell :: foreach bash 
Shell :: extract file extension bash 
Shell :: install chrome in ubuntu 16.04 using terminal 
Shell :: how to check crontab list 
Shell :: kill all process at port 
Shell :: search not working windows 11 
Shell :: install virtualbox ubuntu 20 wsl command line 
Shell :: create gitignore 
Shell :: sdkman install 
Shell :: your github oauth token for github.com contains invalid characters 
Shell :: git log graph oneline 
Shell :: docker sleep infinity 
Shell :: bash return every nth line 
Shell :: bash write 
Shell :: npm forever 
Shell :: windows cd to another drive 
Shell :: s3cmd install 
Shell :: install neovim ubuntu 
Shell :: install zsh hyper mac 
ADD CONTENT
Topic
Content
Source link
Name
9+4 =