Application to place single space with % between each line
Linux - GeneralThis forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Hello!
I have an odd question:
Is there an application that will take a text file with MANY (1000+) single line entries (quotes) and place a single blank line between each entry, and a % on that blank line?
For example (shortened):
Hello there
Hi
Well Hello
Yup
Would look like this:
Hello there
%
Hi
%
Well Hello
%
Yup
?
I am under the impression this is the format I need to add a file of quotes to fortune. If I am wrong, then how would I go about getting my 1000+ line quote file to be picked by fortune?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.