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 get the last word from a line in Unix file?
What are positional parameters in unix?
Elucidate on the different ids used in the unix process?
What is file structure in unix?
What is unix for?
How to remove the last line/trailer from a file in Unix script?
What is unix pattern?
What is .login file in unix?
How do I run a ksh script in unix?
Explain kernal and shell?
Explain different types of Unix systems.
How to remove the directory in unix?
What are special characters in unix?
How to terminate a shell script if statement?
Which unix shell is best?