Suppose i have one column with data smith
the o/p should be smith,john, michale how we do in unix?

Submitted by: Administrator
Suppose they are asking for displaying just one of the
columns in a directory, make a note of that column number
as it appears when we do a ls -lrt. Then we can use awk to
just display the one columns as o/p.

If column number is n, then do this:

ls -lrt | awk '{print $n}'
Submitted by: Administrator

Read Online Unix General Job Interview Questions And Answers