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 check the date in unix?

553


What is a filter in unix? Give an example.

543


What is piping?

542


What are internal and external commands in unix?

467


Explain what is inode?

554






How do I find the port number of pid in unix?

483


What is grep|sort give example?

531


What is unix and its features?

564


What are the various ids in unix processes?

523


What is unix full form?

498


What uses unix operating system?

512


In unix, what is echo used for?

593


I have one flat file,in this file how many columns are there i don't know,but one ename column is there , just i want to cut the surname, so how to cut the surname, any one know the answer please guide me ? ename ----- tapan kumar nayak bala murugan kutal chkrobarthy biswo My output is like that OUTPUT ------ nayak murugan chakrobarthy biswo

2974


List some features of unix.

548


What a pipe?

578