Hi
I have a text file, with some line brakes, I would like to remove thiese and make a singel line.
ex.
I have a text file that looks like this
>cat /usr/text.txt
line1 test3
line2
test2
>
I need it to go into one line in a variable
something like this
a=`cat /usr/text.txt|<remove line brakes, and replace them with "">`
>echo $a
line1 test3 line2 test2
>
any help is appreciated.
/Larshg
I have a text file, with some line brakes, I would like to remove thiese and make a singel line.
ex.
I have a text file that looks like this
>cat /usr/text.txt
line1 test3
line2
test2
>
I need it to go into one line in a variable
something like this
a=`cat /usr/text.txt|<remove line brakes, and replace them with "">`
>echo $a
line1 test3 line2 test2
>
any help is appreciated.
/Larshg