Hi
On a Debian linus server I'm running this simple SQL script, that takes text from a database, and puts it into a file.
But becourse of newlines i am having trouble reading the file.
When I do a "more" on it, i get this.
when I "vi" the file, I can se the etire text
Does anyboddy know how i can get this into linux text format?
/LHG
On a Debian linus server I'm running this simple SQL script, that takes text from a database, and puts it into a file.
Code:
echo "select andet from vagt where vagtdato = CURDATE();" > $tmpdir/Vagt
Vagt1=`mysql -h localhost -u itdrift -ppass itdrift < $tmpdir/Vagt > $tmpdir/t`
But becourse of newlines i am having trouble reading the file.
When I do a "more" on it, i get this.
Code:
andet
\nKl. 00.45 - urner
when I "vi" the file, I can se the etire text
Code:
andet
kl. 21.45 - updated_account. viklende.^M\n^M\nKl. 00.05 - dapteren, men der Jeg kan også se, atmes^M\n^M\nKl. 00.45 - urner
Does anyboddy know how i can get this into linux text format?
/LHG