I have several files:
test1.log
test2.log
test3.log
test.txt
test.txt contains:
./test1.log
./test2.log
./test3.log
I want to be able to use my:
test.txt
with
xargs -a test.txt ......
to rename
test1.log
test2.log
test3.log
to .txt files:
test1.txt
test2.txt
test3.txt
Is there a way of doing so with rename,sed,sub,or awk?