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
Why unix is secure than windows?
How do you delete a file in unix?
What is the root directory in unix?
Explain Sticky bit?
How to restrict NULL value in UNIX
What unix is mac os based on?
What is unix structure?
Is a directory unix?
Explain some of the fundamental concepts of unix?
What is .login file in unix?
What is the significance of the superuser?
Explain how do we change file access permissions?
Is unix cli or gui?
What are system variables in unix?
How zip the file in unix?