I have 2 files: A.txt, B.txt
Both these files contain the letter NODE in them.
I want to replace NODE in each of the files with A_NODE and B_NODE in A.txt and B.txt, respectively.
I know there is a for loop and sed involved, but not able to figure this one out. Any suggestions?
I was thinking:
for file in *; do sed -i 's/NODE/$file.NODE/g' file; done