I have two files. One of them defines a set of pairs of numerical values ββas follows ( fileA ):
1 asm 2 assert 3 bio 4 bootasm 5 bootmain 6 buf 7 cat 8 console 9 defs 10 echo
Another file contains a bunch of values, as shown below ( fileB ):
bio types bio defs bio param bio spinlock bio buf bootasm asm bootasm memlayout bootasm mmu bootmain types bootmain elf bootmain x86 bootmain memlayout cat types cat stat cat user
I want to write a script that replaces the values ββin file B with the corresponding numbers from file A. It does not matter if it generates a new file or modifies an existing file B.
Any ideas? Thanks
source share