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 create files in unix?
Which mode executes the fault handler?
How to create a blank file in unix?
What are the bits that support the demand paging?
Describe file systems in unix?
Is mac unix based?
Where is unix operating system used?
How is unix different from windows?
How the Kernel handles the fork() system call in traditional Unix and in the System V Unix, while swapping?
How to give execute permission for a file in unix?
How do you sort in unix?
How to move a background job to forward?
What is the ‘nohup’ in unix?
Is windows unix based?
How do you change directories in unix?