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 check the date in unix?
What is a filter in unix? Give an example.
What is piping?
What are internal and external commands in unix?
Explain what is inode?
How do I find the port number of pid in unix?
What is grep|sort give example?
What is unix and its features?
What are the various ids in unix processes?
What is unix full form?
What uses unix operating system?
In unix, what is echo used for?
I have one flat file,in this file how many columns are there i don't know,but one ename column is there , just i want to cut the surname, so how to cut the surname, any one know the answer please guide me ? ename ----- tapan kumar nayak bala murugan kutal chkrobarthy biswo My output is like that OUTPUT ------ nayak murugan chakrobarthy biswo
List some features of unix.
What a pipe?