Suppose i have one column with data smith
john
michale
the o/p should be smith,john, michale how we do in unix?
Submitted by: AdministratorSuppose 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}'
Submitted by: Administrator
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}'
Submitted by: Administrator
Read Online Unix General Job Interview Questions And Answers
Top Unix General Questions
☺ | What is the difference between NFS 3 and NFS 4? What are new features added in NFS4? |
☺ | Using Unix command how to display no of records in oracle? |
☺ | What is difference between SSH V1 and SSH V2? What are drawbacks of SSH V2? |
☺ | How to know the ip address of user system? |
☺ | How to list all the hidden files? |
Top OS Unix Categories
☺ | Unix IPC Interview Questions. |
☺ | Unix General Interview Questions. |
☺ | Unix System Calls Interview Questions. |
☺ | Unix Threads Interview Questions. |