i have one column with data smith
john
michale
the o/p should be smith,john,michale how we do in unix
Answer Posted / b k roy
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}'
Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
How to log out in unix?
Does windows 10 have unix?
How is windows different from unix?
What is a unix shell?
What are the main features of unix operating system?
Enlist common shells with their indicators.
What are the essential features of the unix operating system?
Who developed unix operating system?
briefly describe the shell's responsibilities?
What are different types of files in unix?
What are the various ids in unix processes?
Does mac use unix?
How would you display the last line of a file?
List some features of unix.
What is af_unix?