Re: Extract string found in line
The longer string is like this: - [27/Mar/2014:11:06:59 -0700] GET /public/search/?q=lunch+time+boot+vamp HTTP/1.1 200 18045 http://www.example.com/public/minion/edit/177304; Mozilla/5.0 (Linux; U; Android 4.3; en-us; SCH-I535 Build/JSS15J) AppleWebKit/534.30 (KHTML, like Gecko) Version/4.0 Mobile Safari/534.30 On Sun, May 11, 2014 at 9:05 PM, Christopher Stone listmeis...@suddenlink.net wrote: On May 11, 2014, at 14:36, Lee Hinde leehi...@gmail.com wrote: I am parsing apache log files. This is the grep pattern I'm using: GET /public/search/\?q=(\w|\+|\.|-)+ __ Hey Lee, When making these kinds of requests it's always better if you provide an actual sample of the data you're working with. Just looking at it I could say: Find: .*(GET /public/search/\?q=(\w|\+|\.|-)+).* Replace: \1 But I'd much rather see the data and actually test my solution. For that matter this seems like a job for a Perl filter. -- Best Regards, Chris -- This is the BBEdit Talk public discussion group. If you have a feature request or would like to report a problem, please email supp...@barebones.com rather than posting to the group. Follow @bbedit on Twitter: http://www.twitter.com/bbedit --- You received this message because you are subscribed to the Google Groups BBEdit Talk group. To unsubscribe from this group and stop receiving emails from it, send an email to bbedit+unsubscr...@googlegroups.com. To post to this group, send email to bbedit@googlegroups.com. -- This is the BBEdit Talk public discussion group. If you have a feature request or would like to report a problem, please email supp...@barebones.com rather than posting to the group. Follow @bbedit on Twitter: http://www.twitter.com/bbedit --- You received this message because you are subscribed to the Google Groups BBEdit Talk group. To unsubscribe from this group and stop receiving emails from it, send an email to bbedit+unsubscr...@googlegroups.com. To post to this group, send email to bbedit@googlegroups.com.
Re: Need script or method to create a sitemap or site index
Yes, you're correct. The original author (me) was asking how to create hierarchical html sitemaps. :-) On Wednesday, December 11, 2013 7:19:57 AM UTC-8, Greg Raven wrote: I thought the original poster was asking about creating hierarchical HTML site maps. On Wednesday, December 11, 2013 6:19:44 AM UTC-8, T Burger wrote: Folks, I do not do it in BBedit, instead I use Sitemap Automator to create my sitemap files. You give it a url and it builds a sitemap for it. https://www.macupdate.com/app/mac/20569/sitemap-automator Maybe this will do what you want. Thanks, Ted *** Ted Burger t...@tobsupport.com * www.tobsupport.com -- This is the BBEdit Talk public discussion group. If you have a feature request or would like to report a problem, please email supp...@barebones.com rather than posting to the group. Follow @bbedit on Twitter: http://www.twitter.com/bbedit --- You received this message because you are subscribed to the Google Groups BBEdit Talk group. To unsubscribe from this group and stop receiving emails from it, send an email to bbedit+unsubscr...@googlegroups.com. To post to this group, send email to bbedit@googlegroups.com.
Re: Need script or method to create a sitemap or site index
If I can step back a bit, what is the typical purpose of automatically generated sitemap files? When I create site maps, I do so by hand in HTML, including only the relevant (main, important, or section-entry) pages, organized by navigational logic -- which is not always the same as the directory organization of the site files. I assume that these auto-sitemap or index tools being discussed here strictly follow the directory organization and include everything (or everything down to a certain level you specify), right? Does this have something to do with submitting those files to search engines for indexing... or just as a starting point for hand-crafting a sitemap for your visitors... or are there other uses I'm not aware of? Lawrence San Business Writing: Santhology.com Cartoon Stories for Thoughtful People: Sanstudio.com On Mon, May 12, 2014 at 1:28 PM, BBunny fran...@cherman.com wrote: Yes, you're correct. The original author (me) was asking how to create hierarchical html sitemaps. :-) On Wednesday, December 11, 2013 7:19:57 AM UTC-8, Greg Raven wrote: I thought the original poster was asking about creating hierarchical HTML site maps. On Wednesday, December 11, 2013 6:19:44 AM UTC-8, T Burger wrote: Folks, I do not do it in BBedit, instead I use Sitemap Automator to create my sitemap files. You give it a url and it builds a sitemap for it. https://www.macupdate.com/app/mac/20569/sitemap-automator Maybe this will do what you want. Thanks, Ted *** Ted Burger t...@tobsupport.com * www.tobsupport.com -- This is the BBEdit Talk public discussion group. If you have a feature request or would like to report a problem, please email supp...@barebones.com rather than posting to the group. Follow @bbedit on Twitter: http://www.twitter.com/bbedit --- You received this message because you are subscribed to the Google Groups BBEdit Talk group. To unsubscribe from this group and stop receiving emails from it, send an email to bbedit+unsubscr...@googlegroups.com. To post to this group, send email to bbedit@googlegroups.com. -- This is the BBEdit Talk public discussion group. If you have a feature request or would like to report a problem, please email supp...@barebones.com rather than posting to the group. Follow @bbedit on Twitter: http://www.twitter.com/bbedit --- You received this message because you are subscribed to the Google Groups BBEdit Talk group. To unsubscribe from this group and stop receiving emails from it, send an email to bbedit+unsubscr...@googlegroups.com. To post to this group, send email to bbedit@googlegroups.com.
Re: Extract string found in line
Here's a little Applescript snippet that works in BBEdit: find src=\([a-zA-Z0-9\\=\\\.\\-_]+)/([a-zA-Z0-9\\=\\\.\\-_]+)\ searching in imgDocRef options {search mode:grep, starting at top:false} with selecting match set imgSrc to grep substitution of \\1 set imgName to grep substitution of \\2 Don't know if it works in anything else. On May 11, 2014, at 3:36 PM, Lee Hinde wrote: I am parsing apache log files. This is the grep pattern I'm using: GET /public/search/\?q=(\w|\+|\.|-)+ works fine. But I want to extract just the text that matches that string and lose all the rest of the line. How would I do that? -- This is the BBEdit Talk public discussion group. If you have a feature request or would like to report a problem, please email supp...@barebones.com rather than posting to the group. Follow @bbedit on Twitter: http://www.twitter.com/bbedit --- You received this message because you are subscribed to the Google Groups BBEdit Talk group. To unsubscribe from this group and stop receiving emails from it, send an email to bbedit+unsubscr...@googlegroups.com. To post to this group, send email to bbedit@googlegroups.com. -- This is the BBEdit Talk public discussion group. If you have a feature request or would like to report a problem, please email supp...@barebones.com rather than posting to the group. Follow @bbedit on Twitter: http://www.twitter.com/bbedit --- You received this message because you are subscribed to the Google Groups BBEdit Talk group. To unsubscribe from this group and stop receiving emails from it, send an email to bbedit+unsubscr...@googlegroups.com. To post to this group, send email to bbedit@googlegroups.com.
Re: Need script or method to create a sitemap or site index
They used to be in vogue for giving visitors more-or-less direct access to each page in a site. They were particularly useful back in the days when search engines were just getting started and you wanted to make certain that each page was linked somewhere. IIRC, we were still running OS 9 back then. Of course, back then BBEdit offered the ability to create a one-page linked listing of all pages in a site (no hierarchy), using the page titles. Was sorry to see that one go, too. These utilities were also helpful for seeing each of your page titles at once, as this helped make certain you didn't have pages with generic or missing titles, and if you had a page-naming scheme, the incorrectly-named pages would stand out so you could fix them. On Monday, May 12, 2014 12:16:19 PM UTC-7, San wrote: If I can step back a bit, what is the typical purpose of automatically generated sitemap files? When I create site maps, I do so by hand in HTML, including only the relevant (main, important, or section-entry) pages, organized by navigational logic -- which is not always the same as the directory organization of the site files. I assume that these auto-sitemap or index tools being discussed here strictly follow the directory organization and include everything (or everything down to a certain level you specify), right? Does this have something to do with submitting those files to search engines for indexing... or just as a starting point for hand-crafting a sitemap for your visitors... or are there other uses I'm not aware of? Lawrence San Business Writing: Santhology.com Cartoon Stories for Thoughtful People: Sanstudio.com On Mon, May 12, 2014 at 1:28 PM, BBunny fra...@cherman.com javascript:wrote: Yes, you're correct. The original author (me) was asking how to create hierarchical html sitemaps. :-) On Wednesday, December 11, 2013 7:19:57 AM UTC-8, Greg Raven wrote: I thought the original poster was asking about creating hierarchical HTML site maps. On Wednesday, December 11, 2013 6:19:44 AM UTC-8, T Burger wrote: Folks, I do not do it in BBedit, instead I use Sitemap Automator to create my sitemap files. You give it a url and it builds a sitemap for it. https://www.macupdate.com/app/mac/20569/sitemap-automator Maybe this will do what you want. Thanks, Ted *** Ted Burger t...@tobsupport.com * www.tobsupport.com -- This is the BBEdit Talk public discussion group. If you have a feature request or would like to report a problem, please email sup...@barebones.com javascript: rather than posting to the group. Follow @bbedit on Twitter: http://www.twitter.com/bbedit --- You received this message because you are subscribed to the Google Groups BBEdit Talk group. To unsubscribe from this group and stop receiving emails from it, send an email to bbedit+un...@googlegroups.com javascript:. To post to this group, send email to bbe...@googlegroups.comjavascript: . -- This is the BBEdit Talk public discussion group. If you have a feature request or would like to report a problem, please email supp...@barebones.com rather than posting to the group. Follow @bbedit on Twitter: http://www.twitter.com/bbedit --- You received this message because you are subscribed to the Google Groups BBEdit Talk group. To unsubscribe from this group and stop receiving emails from it, send an email to bbedit+unsubscr...@googlegroups.com. To post to this group, send email to bbedit@googlegroups.com.