|
You can try awk programming as below:
awk '{ for(x=2;x<=NF;x++) print $1, $x }' filename
By using the above you could read all your files and get the output from these files with each word written in a separate line. Try out and let us know for further needs.
|