Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

How to install unix on windows 10?

1002


Why unix terminals are called dummy terminals?

1038


What is difference between find and grep in unix?

932


What are the essential features of the unix operating system?

918


What are the file permissions and access modes in unix?

964


Describe the concept of “region”.

921


What is the significance of the superuser?

975


Explain the importance of directories in a unix system

1042


Is unix more secure than windows?

844


How do we change file access permissions?

1111


Name the key features of the korn shell.

980


Explain what are the unix system calls for i/o?

909


What is the role of the kernel in unix?

1008


Explain the method of changing file access permission?

942


What is the home directory in unix?

916