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

List the distributions of unix.

508


Explain file system in unix.

512


What is unix orphan process?

552


What is meant by the term super user?

498


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

513






How to give execute permission for a file in unix?

493


How to make a new directory in unix?

538


What is the significance of the superuser?

525


What is directory unix?

505


What are the features of unix?

484


Is unix a kernel or os?

501


How do you delete a file in unix?

498


What is the architecture of unix operating system?

508


How to stop an infinite loop in unix?

500


How do we change file access permissions?

530