Hello
I need help for the accomplishment of a script. Of the result of the list of files in a directory unix, that they are different every day I have to refill different fields in another pattern file and redirecct to a final file
In other words
ls -1
pepe.g123
john.g456
tom.g789
hello I,m field1 hello I,m pepe
hello I,m field2 hello I,m g123
hello I,m field3 -----------> hello I,m john
bye field4 bye g456
bye field5 bye tom
bye field6 bye g789
I am doing it with a loop(for) of the name of file and later with the commands (sed) and (cut) but I find solve limitations that I am not to solve. I don’t know well the command (awk), I’m sure will help me yo solve the problem.
Thanks in advance