LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   Creating String from words in a file (https://www.linuxquestions.org/questions/programming-9/creating-string-from-words-in-a-file-755351/)

deepakthaman 09-15-2009 09:20 AM

Creating String from words in a file
 
Hi i have a file called search.txt

Which contains text like

Car
Bus
Cat
Dog

Now i have to create a string from the file which should look like

Car,Bus,Cat,Dog

( appending , is essential part) String must be stored in some variable so i can pass it as argument to some other command.

Thnx in advance

crabboy 09-15-2009 09:24 AM

Please post your thread in only one forum. Posting a single thread in the most relevant forum will make it easier for members to help you and will keep the discussion in one place. This thread is being closed because it is a duplicate.

http://www.linuxquestions.org/questi...a-file-755350/


All times are GMT -5. The time now is 03:17 PM.