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
In unix, what is echo used for?
How unix is different from other operating systems?
Is mac built on unix?
How do I run a shell script in unix?
What is unix full form?
What are the benefits of running processes in the background?
Define a single-user system.
How do I search for a grep file in unix?
What is the full meaning of unix?
Explain superblock in unix.
Is unix still around?
Describe the concept of “region”.
What are the various ids in unix processes?
What is pattern matching in unix?
What is dev null in unix?