Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Content-Class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Subject: RE: Obscene content in cygwin file. Date: Fri, 7 Jan 2005 15:42:58 -0500 Message-ID: <94BF3137C62D3E4CAED7E97F876585F04C2B34@pauex2ku08.agere.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: From: "Williams, Gerald S \(Jerry\)" To: X-OriginalArrivalTime: 07 Jan 2005 20:42:58.0584 (UTC) FILETIME=[78E9D180:01C4F4F9] Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id j07KhKDY029248 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 /usr/sbin/strfile $ which tr /usr/bin/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 stuff.... -- Adolf Hitler, quoted by Dr. Giesing in Nuremberg trial ==> 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 gsw -- 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/