Extract specific lines from a VERY large text file
-
I use Proshow to create slide shows from photograpgs. The file that Proshow creates is a just plain text file but very large. The one I am working on at the moment has about 1.2 million line of text a small part is shown below
cell[331].customTransition.transId=2
cell[331].customTransition.includeGlobalCaptions=1
cell[332].imageEnable=1
cell[332].nrOfImages=1
cell[332].images[0].image=image/Flower 9283p copy.jpg
cell[332].images[0].imageEnable=1
cell[332].images[0].name=Flower 9283p copyWhat I would like to be able to do is to extract a list of all the images files used in their correct order. The lines I want all have this format
cell[###].images[0].image=image/xxxxxxxx.jpg
where xxxxxxx is the actual file name as above and will vary as will ###. In all this show used 356 images. I was looking at how to isolate all lines containing the string .image=image/ and write them to a new file or delete all the lines that do not contain this string.
So two questions
-
How can I extract all 356 lines from this master file and remove the rest
-
Wouldl the extraction routine run in a reasonable time given the size of the original file.
Any help suggestions as to how to go about this would be most welcome.
John
-
-
Sorry to have asked I have just found it is very easy to do with the search all function and then cut and paste the results
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login