In fact, I want to print the second column of different files where the first column contains the name of these files.
The command is
awk '$1==file1' {print $2++} file1
Well Iwant to do this for many files by replacing file1 with a variable item $filename.
Thank you.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.