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 would you display the last line of a file?
What is a unix shell?
How many root directories exist in unix?
Define a single-user system.
What are the three major components of any unix system?
Does windows use unix?
Does windows 10 have unix?
What is the core of unix operating system?
How does unix work?
What is unix directory structure?
What are the basic responsibilities of a shell?
How to create files in unix?
What is unix portability?
I want to invest in learning things that will get me good jobs in future. But wondering if Unix knowledge is something that is a MUST have or is it better to do any Data-warehouse tool (cognos, Qclik view, ETL etc..). Please suggest me.
What is a regular file in unix?