i have one column with data smith
john
michale
the o/p should be smith,john,michale how we do in unix

Answer Posted / madhusudhanan.s

Inside a file save 3 names column wise
then type the below command

tr "\n" "," < <filename>

Is This Answer Correct ?    22 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why was unix invented?

481


What is the difference between an absolute path and a relative path in unix?

546


What is pattern matching in unix?

490


What is the symbol in unix?

508


What is page fault? Its types?

534






What are drawbacks of ssh v2?

541


What does unix .profile contains?

599


What does the swapping system do if it identifies the illegal page for swapping?

664


What is regular file in unix?

477


What is meant by the term nohup?

510


What is necessary before running a shell script from the terminal?

474


Is unix portable?

565


Which data structure is used to maintain the file identification?

514


Is unix a programming language?

508


What is the full meaning of unix?

496