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
How to remove the first line/header from a file in Unix?
What are the hidden files in unix?
How can you edit a large file without opening it in unix?
What is unix kernel?
How to find the path in unix?
How to check logs in unix?
Suppose I have one column with data smithjohnmichale the o/p should be smith,john, michale how we do in unix?
What is tilde unix?
What is called in unix?
Which data structure is used to maintain the file identification?
In what way the Fault Handlers and the Interrupt handlers are different?
Is windows unix based?
What does cd mean in unix?
How do I grep multiple patterns in unix?
How to calculate the number of words in a file?