Search Results

Search: Posts Made By: Corona688
2,072
Posted By Corona688
awk is often used for this as so: awk...
awk is often used for this as so:

awk 'NR==FNR { A[$1]=$2 ; next } ; $1 in A { $1=A[$1] } 1' file1 file2

The NR==FNR section loads all lines in file1 into the array A as A["aa"]="M", etc. The...
Showing results 1 to 1 of 1

 
All times are GMT -4. The time now is 03:47 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy