Obscene content in cygwin file.

Williams, Gerald S (Jerry) gsw@agere.com
Fri Jan 7 21:09:00 GMT 2005

OK, anybody still reading this thread probably already knows how to
do this, but just in case, here's what you need to do to clean up
your fortune files (other than just deleting them):

First, make sure you have the tools you need and double-check that
the "offensive" files are in plaintext:

$ ls /usr/sbin/strfile
$ which tr
$ cd /usr/share/fortune
$ head -3 fortunes2-o limerick
==> fortunes2-o <==
Would you please have another look at my nose and put in that cocaine
                -- Adolf Hitler, quoted by Dr. Giesing in Nuremberg

==> limerick <==
A bad little girl in Madrid,
A most reprehensible kid,
        Told her Tante Louise

Then to properly encode and mark the offensive files as such:

$ cd /usr/share/fortune
$ mv fortunes2-o fortunes2-o.orig
$ mv limerick limerick-o.orig
$ rm fortunes2-o.dat limerick.dat
$ tr A-Za-z N-ZA-Mn-za-m < fortunes2-o.orig > fortunes2-o
$ tr A-Za-z N-ZA-Mn-za-m < limerick-o.orig > limerick-o
$ /usr/sbin/strfile -x fortunes2-o
$ /usr/sbin/strfile -x limerick-o
$ rm fortunes2-o.orig limerick-o.orig


Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

More information about the Cygwin mailing list