I need to select for example:
- Column 2 of row 7.
- Column 3 of row 8.
- Columns 1 and 3 of row 11.
of a specific file and place the result in another file.
This is what I have tried so far:
sed -n -e '7p' -e '8p' -e '11p' Old_File | awk '{printf("%s %s %s\n", $2, $3, $1);}' > New_File.
Awk alone can get it done: