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 get the last word from a line in Unix file?

959


What are positional parameters in unix?

1027


Elucidate on the different ids used in the unix process?

956


What is file structure in unix?

927


What is unix for?

917


How to remove the last line/trailer from a file in Unix script?

1015


What is unix pattern?

912


What is .login file in unix?

1014


How do I run a ksh script in unix?

973


Explain kernal and shell?

1075


Explain different types of Unix systems.

961


How to remove the directory in unix?

915


What are special characters in unix?

878


How to terminate a shell script if statement?

1056


Which unix shell is best?

975