Answers

Question and Answer:

  Home  Unix General

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

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}'

 170 views

More Questions for you: