[Solved] Replace characters 92-97 in position “x” on line
[ad_1] this one-liner should work: awk ‘NR==FNR{a[$1]=substr($0,92,5);next}($1 in a) {$0=substr($0,1,92) a[$1] substr($0,97)}1’ file file2 1 [ad_2] solved Replace characters 92-97 in position “x” on line