grep help
I am trying to remove a date string from an SQL file. I have ,'\d\d\d\d\-\d\d\-\d\d \d\d:\d\d:\d\d', as the string I wish to replace with , It does not like that. I assume I have to \- because - is a character grep uses Thanks -- -- You received this message because you are subscribed to the BBEdit Talk discussion group on Google Groups. To post to this group, send email to bbedit@googlegroups.com To unsubscribe from this group, send email to bbedit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/bbedit?hl=en 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
Re: grep help
On 5 aug. 2012, at 06:20, Steven katesglad...@gmail.com wrote: I am trying to remove a date string from an SQL file. I have ,'\d\d\d\d\-\d\d\-\d\d \d\d:\d\d:\d\d', as the string I wish to replace with , It does not like that. I assume I have to \- because - is a character grep uses Your question is somewhat incomplete, but let me try. The question would improve if you give a sample of the string you are looking for ('2012-08-05 15:53:08', with or without the quotes?), and a clear indication what it should be replaced with (''). 1) Make sure that 'grep' is checked in the find window. 2) Try '[[:digit:]]{4}-[[:digit:]]{2}-[[:digit:]]{2} [[:digit:]]{2}:[[:digit:]]{2}:[[:digit:]]{2}' as the search string. - [[:digit:]] is a character class that contains all digits. I find this more readable than \d, but that would work too. - [[:digit:]]{4} searches for exactly 4 digits in a row. - the rest are literals. Hope this helps, Maarten -- -- You received this message because you are subscribed to the BBEdit Talk discussion group on Google Groups. To post to this group, send email to bbedit@googlegroups.com To unsubscribe from this group, send email to bbedit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/bbedit?hl=en 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
Re: Working with ePub: generate .toc and .opf files?
Good morning, On 4/08/12 at 2:32 AM -0700, Eelco Deuling deulingee...@gmail.com wrote: I was wondering if there is a way to generate the .toc and .opf files with BBEdit: I think this could be done with a shell script or a regex text factory that wraps a list (based on file extensions or tags) but I do not know enough to make it work. Is there someone that could help me with this? It would be great if I could use only BBEdit. One of the best things about BBEdit is the way it leverages scripting languages. And Perl is great at things like this due to the CPAN; which has things like EBook::Tools: https://metacpan.org/module/EBook::Tools Use that to make a 'unix script' in BBEdit which creates the files for you. I can supply an example perl script (use as template for unix script) but I don't know enough about epubs to help with that part. Charlie -- Ꮚ Charlie Garrison ♊ garri...@zeta.org.au O ascii ribbon campaign - stop html mail - www.asciiribbon.org 〠 http://www.ietf.org/rfc/rfc1855.txt -- -- You received this message because you are subscribed to the BBEdit Talk discussion group on Google Groups. To post to this group, send email to bbedit@googlegroups.com To unsubscribe from this group, send email to bbedit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/bbedit?hl=en 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
Re: BBEdit, Preview PHP
I have site setted up properly, but all I get is a blank page even when i just try to use simple echo command. All works properly in browser, but not in BBEdit Preview :( On Sunday, August 5, 2012 5:06:59 AM UTC+2, Kendall Conrad wrote: For PHP previews I believe you just need to setup the site in the preferences. I'm still on BBEdit 9 so can't tell you exactly where the setting is, but it shouldn't be hard to find. I don't generally use the preview for PHP files so I can't say 100% if this will work, but pretty sure I've seen others discuss it on this group list. -Kendall On Saturday, August 4, 2012 5:56:11 PM UTC-4, Marin Knezović wrote: Greetings, I'm new to BBEdit, using it just for a day, and BBEdit-s autocomplete blow my mind. Best autocompletion from any editor I've tried. Using PHP + CodeIgniter and it works like a charm. But since I'm new to editor, I have some really silly problems, so I was hoping to get some help in this group :) When I go to Markup - Preview in BBEdit, previewing PHP files doesn't work. It only shows my PHP code. Any chance I can set localhost so I can actually preview my PHP? In preferences I don't see any settings for localhost or similar. And a nother question... BBEdit schemes. Downloaded a few, and some simply don't work. After googling about this issue, I found that some work just for HTML or CSS, etc. I wanted to use monokai scheme for PHP, found one, but it can't be used for PHP files. Any tutorial on making schemes so I can adjust Monokai for PHP as well?:) Thank you for reply(ies) in advance, Marin Knezovic :) -- -- You received this message because you are subscribed to the BBEdit Talk discussion group on Google Groups. To post to this group, send email to bbedit@googlegroups.com To unsubscribe from this group, send email to bbedit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/bbedit?hl=en 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
How to run a python script with arguments?
What is the fastest way of editing and then running a python script using bbedit? Ultimately, I just want a keyboard shortcut to run what I'm currently working on. -- -- You received this message because you are subscribed to the BBEdit Talk discussion group on Google Groups. To post to this group, send email to bbedit@googlegroups.com To unsubscribe from this group, send email to bbedit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/bbedit?hl=en 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
Re: How to run a python script with arguments?
Good afternoon, On 5/08/12 at 1:59 PM -0700, mandaris mandaris.mo...@gmail.com wrote: What is the fastest way of editing and then running a python script using bbedit? Ultimately, I just want a keyboard shortcut to run what I'm currently working on. I use Cmd-R to run perl scripts; should work for python scripts too; just ensure valid shebang. If script uses any relative paths, ensure you save it before running. Charlie -- Ꮚ Charlie Garrison ♊ garri...@zeta.org.au O ascii ribbon campaign - stop html mail - www.asciiribbon.org 〠 http://www.ietf.org/rfc/rfc1855.txt -- -- You received this message because you are subscribed to the BBEdit Talk discussion group on Google Groups. To post to this group, send email to bbedit@googlegroups.com To unsubscribe from this group, send email to bbedit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/bbedit?hl=en 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
Re: How to run a python script with arguments?
Good afternoon, On 5/08/12 at 1:59 PM -0700, mandaris mandaris.mo...@gmail.com wrote: What is the fastest way of editing and then running a python script using bbedit? Ultimately, I just want a keyboard shortcut to run what I'm currently working on. I didn't read the subject line; where are the arguments coming from? A terminal shell or bbedit worksheet are probably easiest; but there are other options like AppleScript wrappers to gather arguments first. Charlie -- Ꮚ Charlie Garrison ♊ garri...@zeta.org.au O ascii ribbon campaign - stop html mail - www.asciiribbon.org 〠 http://www.ietf.org/rfc/rfc1855.txt -- -- You received this message because you are subscribed to the BBEdit Talk discussion group on Google Groups. To post to this group, send email to bbedit@googlegroups.com To unsubscribe from this group, send email to bbedit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/bbedit?hl=en 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
Re: BBEdit, Preview PHP
If you can preview php from your local server in a browser, then it should also preview in BBEdit. I recommend you contact support. Ken marin.knezo...@gmail.com wrote on 8/5/12 9:02 AM I have site setted up properly, but all I get is a blank page even when i just try to use simple echo command. All works properly in browser, but not in BBEdit Preview :( -- Orange County Website Design http://simplelives.com -- -- You received this message because you are subscribed to the BBEdit Talk discussion group on Google Groups. To post to this group, send email to bbedit@googlegroups.com To unsubscribe from this group, send email to bbedit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/bbedit?hl=en 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