How do I print a second column in Unix?

Đạt Michio

New member
How do I print a second column in Unix?
Answer
We can also print multiple columns and insert our custom string in between columns. For example, to print the permission and filename of each file in the current directory, use the following set of commands: $ ls -l | awk ‘{ print $1 ” : ” $8 }’ -rw-r–r– : delimited_data.
 

Tìm kiếm

Back
Top