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 move a background job to forward?
What uses unix?
What is meant by the term super user?
Is unix os free?
Explain a path in unix.
How would you identify daemons in unix?
What is buffer header unix?
Is windows built on unix?
What are hidden files in unix?
How to change the directory in unix?
How do you delete a file in unix?
Is unix a programming language?
What are my options if I want to turn on security with a non-root server ID in a UNIX® environment?
What is standard unix streams ?
How the Kernel handles the fork() system call in traditional Unix and in the System V Unix, while swapping?