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
What does ls mean in unix?
What are unix options?
What are the types of unix operating system?
What is the difference between a single dot and double dot in unix?
How to check the date in unix?
What is path variable in unix?
What is the difference between soft link and hard link in Unix operating system ?
What is directory unix?
What was unix originally written for?
What are conditions on which deadlock can occur while swapping the processes?
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 meant by the term super user?
How to remove files in unix?
What is the full meaning of unix?
Is unix only for supercomputers?