Ok, it sounds a little "newbieish"...
I'm trying to create a fortune db. I have a looong text file, with every citation separated by a blank line.
Then, my problem is to use sed to substitute every blank line in the file with a percent symbol.
I tried in the following way :
sed 's/\n/%/gi' ~/source
(redirecting it to "~/dest" to obtain the db).
I've tried other regexp, but no-one did work.
So, the question is, what's the right one?
Thank you in advance for any help given.