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 / david

file1 contain the data like ....
john smith michael


so
cat file1 |tr ' ' ','
or
cat file1 |sed 's/ /,/g'



this will really help you dear ....

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to remove the first line/header from a file in Unix?

1105


What are the hidden files in unix?

1123


How can you edit a large file without opening it in unix?

949


What is unix kernel?

983


How to find the path in unix?

1094


How to check logs in unix?

1070


Suppose I have one column with data smithjohnmichale the o/p should be smith,john, michale how we do in unix?

928


What is tilde unix?

1086


What is called in unix?

960


Which data structure is used to maintain the file identification?

999


In what way the Fault Handlers and the Interrupt handlers are different?

1016


Is windows unix based?

990


What does cd mean in unix?

979


How do I grep multiple patterns in unix?

1073


How to calculate the number of words in a file?

1021