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 install unix on windows 10?
Why unix terminals are called dummy terminals?
What is difference between find and grep in unix?
What are the essential features of the unix operating system?
What are the file permissions and access modes in unix?
Describe the concept of “region”.
What is the significance of the superuser?
Explain the importance of directories in a unix system
Is unix more secure than windows?
How do we change file access permissions?
Name the key features of the korn shell.
Explain what are the unix system calls for i/o?
What is the role of the kernel in unix?
Explain the method of changing file access permission?
What is the home directory in unix?