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
Explain a path in unix.
Is android unix based?
How to move files from one directory to other in unix?
What is the chief difference between the –v and –x option s to set?
You have a file called tonky in the directory honky. Later you add new material to tonky. What changes take place in the directory, inode, and file?
What is the procedure to configure MC/SG Cluster services in HP-UX 11i v3 OS Environment?
How do you determine and set the path in unix?
How can you count the number of characters and lines in a file?
What is a directory?
What are states that the page can be in, after causing a page fault?
Where is unix used today?
Write a script that prints out date information in this order: time, the day of week, day number, month, year(sample output: 17:34:51 pdt sun 12 feb 2012)
What is a unix file?
What is buffer header unix?
Is a directory unix?