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
What does pipe do in unix?
If we are terminated at the middle of the program execution in UNIX,what will happen to the program, it will continue running r terminate r the o/p will be send to your mail?
What does cp mean in unix?
How does unix file system work?
Name the different file types available with unix.
What is meant by the term nohup?
What are the pros of executing processes in the background?
Is a directory unix?
How to create a blank file in unix?
What are the phases of swapping a page from the memory?
What is unix environment?
How would you identify daemons in unix?
Is android unix based?
Explain file system in unix.
Where is unix used today?