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 the Kernel handles the fork() system call in traditional Unix and in the System V Unix, while swapping?
Explain what is a fifo?
What is difference between unix and windows operating system?
Explain piping.
What is necessary before running a shell script from the terminal?
How to check logs in unix?
How unix is used?
Is it possible to count number char, line in a file; if so, How?
How to remove the last line/trailer from a file in Unix script?
What is inode in unix operating system?
What are the criteria for choosing a process for swapping out of the memory to the swap device?
How do I run a unix script?
What is difference between ssh v1 and ssh v2?
What scheme does the Kernel in Unix System V follow while choosing a swap device among the multiple swap devices?
What do you understand by the term kernel?