I have a control file – cntl.txt
2
3
5
Data file – data.txt
red
blue
yellow
green
violet
orange
I need to reading the lines matching from control file, here the output expected is:
blue
yellow
violet
awksedtext processing
I have a control file – cntl.txt
2
3
5
Data file – data.txt
red
blue
yellow
green
violet
orange
I need to reading the lines matching from control file, here the output expected is:
blue
yellow
violet
Best Answer
Example of a very inefficient solution:
I report also a good solution I learned tonight: