harry71194
August 18th, 2009, 02:13 AM
Okay, hi. When I execute a fortune, it puts out into many lines into IRC, despite the length and screensize.
I run the command
/exec -o fortune -s | sed 's/\t//g' | sed 's/\n//g'
That SHOULD remove all the newlines, that cause my fortune to look like this, right?
21:12:36 You can't erase a dream, you can only wake me up.
21:12:36 -- Peter Frampton
See, even though I remove the newline character, \n, it still makes 2 or more lines. (the removal of \t is so I do not get an error in some rooms).
So help me exec fortune all into 1 message please! :) I have tried everything to fix it.
Thanks in advance.
I run the command
/exec -o fortune -s | sed 's/\t//g' | sed 's/\n//g'
That SHOULD remove all the newlines, that cause my fortune to look like this, right?
21:12:36 You can't erase a dream, you can only wake me up.
21:12:36 -- Peter Frampton
See, even though I remove the newline character, \n, it still makes 2 or more lines. (the removal of \t is so I do not get an error in some rooms).
So help me exec fortune all into 1 message please! :) I have tried everything to fix it.
Thanks in advance.