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 move a background job to forward?

931


What uses unix?

970


What is meant by the term super user?

869


Is unix os free?

917


Explain a path in unix.

958


How would you identify daemons in unix?

992


What is buffer header unix?

876


Is windows built on unix?

1025


What are hidden files in unix?

998


How to change the directory in unix?

1005


How do you delete a file in unix?

988


Is unix a programming language?

989


What are my options if I want to turn on security with a non-root server ID in a UNIX® environment?

960


What is standard unix streams ?

1076


How the Kernel handles the fork() system call in traditional Unix and in the System V Unix, while swapping?

933