Search Results

Search: Posts Made By: Peter Roday
1,231
Posted By Akshay Hegde
awk 'FNR==NR{ a[$1] = $2; next} { for(i in...
awk 'FNR==NR{ a[$1] = $2; next} { for(i in a)gsub(i, a[i]) }1' string_list_file file > outfile

Here is example to start


akshay@db-3325:/tmp$ cat string_list_file
foo bar
jack john
me you...
Showing results 1 to 1 of 1

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