Fortune - ignore option
I like fortune, and it's fun having them come up when I open a terminal window, but yesterday I was given a fortune (under wisdom of all things) from the turd Arthur Balfour. I WILL NOT have that a$$hat in my fortunes.
Reading the man page, I saw that there is an -i option for ignore, which appears to be used with the -m option (pattern). I've tried a few things, but I'm really not sure how to use this two options together. I've tried: Code:
$ fortune -i -m Balfour |
I think you'll have to edit the file(s) to remove the quotes that you don't want to see.
Simple enough to do. Using the wisdom file as an example: Quote:
Then run "strfile wisdom" to create the .dat file (see man strfile) |
Quote:
Edit: Just so that you know - it worked perfectly! Thank you very much! |
So if you're the problem with the world will adding you to my ignore list (like a little girl) work? :rolleyes:
|
recompiling the database?
not sure about that. first of all, the '-i' option means Quote:
I think what you want is either not possible with fortune, or you have to come up with some regex that says "NOT Balfour": Quote:
|
Quote:
The first line in the Description in the man page: Quote:
|
Quote:
|
All times are GMT -5. The time now is 08:50 AM. |