> -----Original Message----- > From: AMORE,JUAN (HP-Roseville,ex1) [mailto:[EMAIL PROTECTED]] > Sent: Thursday, October 04, 2001 7:20 PM > To: Beginners@Perl. Org (E-mail) > Cc: Juan Amore (E-mail); AMORE,JUAN (HP-Roseville,ex1) > Subject: Do's anyone know of a perl script which prints only sentence > line s containing either a period "." question"?" > > > > Hello, > Do's anyone know of a perl script which prints only sentence lines > containing either a period "." question"?" > and a "," comma.
Not sure what you mean by "sentence" lines, but to print lines containing those chars you can use the one-liner: $ perl -ne 'print if /[.?,]/' -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]