Page 1 of 1

How To Extract a 1 Sentence Quote From Large Text File

Posted: Tue May 18, 2004 2:44 pm
by enliteneer
I have lots of Zip files that each contains a text file. The text file
has ONE sentence with quotes around it. I would like to
(if possible) have TextPipe open the zip files, extract the text file,
find and extract just the quote. Repeat for all files.

Is there a simple (built-in) way of doing this? do I need to use
special pattern matching filters?

Posted: Wed May 19, 2004 1:57 pm
by DataMystic Support
TextPipe won't unzip the files, but you can use a command line version of zip to do this for you.

Then you need to use TextPipe's pattern matching to extract the quoted string, and write it out (to a new file?)

An example would help.

Example text with a embedded quote that needs to be xtracted

Posted: Fri May 28, 2004 4:34 am
by enliteneer
For example, Ive cut and pasted the contents of a text file. The
other text files are identical except for the zipname, quote and date
on lines 10, 12 and 14 respectively.

I would like to create a game list by extracting the title for each
text file and placing (just the title) to a new file. It seems like
textpipe is meant to do these types of repatiitive tasks, just not
sure how it works!

.------------------------------------------------------------.
| _ _ |
| _ __ ___ __ _ _ __ ___ ___ __| | | __ |
| | '_ ` _ \ / _` | '_ ` _ \ / _ \ / _` | |/ / |
| | | | | | | (_| | | | | | | __/| (_| | < |
| |_| |_| |_|\__,_|_| |_| |_|\___(_)__,_|_|\_\ |
| |
| http://www.mame.dk/ |
>------------------------------------------------------------<
| proudly presents gladiatr.zip for your mame |
| |
| "Gladiator (US)" |
| is copyrighted by |
| Taito America Corporation 1986 |
>------------------------------------------------------------<
| You may have this game ROM ONLY if you are legally |
| entitled so. By "legally entitled" we mean: |
| |
| You own the actual arcade or gamepak of a ROM you |
| are downloading. Under the copyright laws of the |
| U.S., you are entitled to own a backup of any |
| software you have paid for. Since ROMS can't be |
| duplicated (not without special hardware), ROM |
| images are provided to the public as a service. |
| |
| Remember, the purpose of an emulator is to preserve |
| games (so that they don't dissappear), to have all |
| your games on your PC (so that you don't tie up the |
| family TV) and to keep a backup of games you own in |
| case the game (or arcade/home console) fails or |
| have already failed. |
| |
| It's for educational purposes only (in case you are an |
| emulator programmer). |
| |
| You will NEVER sell these ROMS for profit. Most game |
| companies don't mind the distribution of their game's |
| ROMS because they no longer exist, but they WILL |
| mind if someone sells them. |
| |
| You will NOT distribute ROMS together with emulators |
| as a package. And again, NO selling. |
| |
| You will NEVER hold mame.dk (including its parent |
| company, webmasters, employees, staff or anybody |
| else related to this website) or our webhosts |
| responsible for any damage caused to your system, |
| for any legal actions taken against you for not |
| obeying the above stated rules, or for any other reason. |
| |
| mame.dk has not dumped the ROMS on this website, |
| and our purpose is to provide a service to the |
| Internet and gaming community. No harm is being |
| done to game companies, as the ROMS on this |
| website are of games that are no longer for sale, |
| from which game companies can no longer profit. |
`------------------------------------------------------------ยด

Posted: Fri May 28, 2004 9:30 am
by DataMystic Support
When you purchase TextPipe we'll be happy to help with this very simple text extraction.