Horje
bash vlookup function Code Example
bash vlookup function
# Example usage:
awk 'FNR==NR{a[$1]=$2; next}; {if($9 in a) {print $0, "\t"a[$9];} else {print $0, "\tNA"}}' 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).




Shell

Related
stop google process linux Code Example stop google process linux Code Example
gdal 0 1 raster to binary Code Example gdal 0 1 raster to binary Code Example
forever run python script Code Example forever run python script Code Example
dual boot kali linux isnt showing Code Example dual boot kali linux isnt showing Code Example
pip missingno Code Example pip missingno Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
14