[[Email protected]awk]#seq Ten|Xargs-N2>file[[Email protected]awk]#seq Ten-1 1|Xargs-N2>File1[[email protected]awk]#Cat file1 23 45 67 89 Ten[[Email protected]awk]#Catfile1Ten 98 76 54 32 1[[Email protected]awk]#Cat file|awk '{print $}'13579[[Email protected]awk]#Catfile1 |awk '{print $}'97531[[Email protected]awk]#Cat file|awk '{print $}'>File3[[email protected]awk]#Catfile1 |awk '{print $}'>File4[[email protected]awk]# paste File3 file41 93 75 57 39 1[[Email protected]awk]# Paste File3 file4|TR "\ t" " "1 93 75 57 39 1[[Email protected]awk]# Paste File3 file4|TR "\ t" " ">File5[[email protected]awk]#CatFile51 93 75 57 39 1[[Email protected]awk]#awk '1' file1 23 45 67 89 Ten[[Email protected]awk]#awk '1'file1Ten 98 76 54 32 1[[Email protected]awk]#awk '1'file1 file1Ten 98 76 54 32 1Ten 98 76 54 32 1[[Email protected]awk]#awk '{print NR}' filefile1123456789Ten[[Email protected]awk]#awk '{print NR,FNR}' filefile11 12 23 34 45 56 17 28 39 4Ten 5[[Email protected]awk]# [[email protected]awk]#awk 'Nr==fnr{a[nr]=$1}nr!=fnr{print a[fnr],$2}' filefile11 93 75 57 39 1[[Email protected]awk]#
Shell script, an awk array of how to handle multiple files.