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

What is unix portability?

513


What is architecture of unix operating system?

488


What is unix and shell scripting?

519


How to print/display the last line of a file in Unix?

557


What is the symbol in unix?

498






Define a process group.

543


Give a brief idea about representation of devices in unix.

534


How to list directories in unix?

555


Is unix the first operating system?

505


What is the difference between nfs 3 and nfs 4?

546


What is the home directory in unix?

493


How to calculate the number of words in a file?

516


Explain about shell aritmetic operators and functions?

577


What does ls lrt in unix?

499


How to know the ip address of user system?

553