my bbedit goes to 11 - project file/folder listing tip
just discovered that toggling the open/close triangle of the top-level folder of a project in the 'view files' view CLOSES all open sub folders... very useful. bruce https://lh5.googleusercontent.com/-26cJGEJy21o/VEwUUNbQl9I/AEY/CNYmZdKwmKE/s1600/Screen%2BShot%2B2014-10-25%2Bat%2B2.17.11%2BPM%2Bcopy.jpg -- 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: Hoe to run multi file searches as a script or macro
Good afternoon, On 24/10/14 at 2:49 AM -0700, Dave dave.live...@gmail.com wrote: But Mac OS X no longer includes gnu grep, more's the pity. They replaced it with the BSD version. There are a number of differences, the most significant one being the lack of a -P option. Is that something recent? I'm stuck at 10.7, and I get: $ grep -V grep (GNU grep) 2.5.1 [I can't use the new BBE either. :-( I'm looking at some new hardware for that reason alone.] Charlie -- Charlie Garrison garri...@zeta.org.au github.com/cngarrison metacpan.org/author/CNG O ascii ribbon campaign - stop html mail - www.asciiribbon.org http://www.ietf.org/rfc/rfc1855.txt -- 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: Hoe to run multi file searches as a script or macro
Good afternoon, On 24/10/14 at 1:29 PM -0700, mmb21003...@gmail.com wrote: *Ok so it is ctrl return, my mistake (old macs never used to use the ctrl key as a **modifier!)* I've never had to use CTRL, just press ENTER. *Got the results using Perl but as it is rusty, I need to work on getting a direc**tory list and then executing the script on each file, can't remember how to process more than one file at a time or use wildcards.* Which results? The OP said: 2. Put the output found (results) into one document so they are all together (prefixed by document path where they were found) Tell us what you *really* want to achieve and I can probably suggest a better solution. Based on the above requirement, my original suggestion using grep is still the best solution, short of re-inventing the wheel. Charlie -- Charlie Garrison garri...@zeta.org.au github.com/cngarrison metacpan.org/author/CNG O ascii ribbon campaign - stop html mail - www.asciiribbon.org http://www.ietf.org/rfc/rfc1855.txt -- 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: Hoe to run multi file searches as a script or macro
Good afternoon, On 24/10/14 at 4:37 AM -0700, mmb21003...@gmail.com wrote: I can't get it working with the -f parameter, nothing is returned, but if I put regex inline then it is ok. As Dave pointed out; that might be due to different version of grep; read the docco at the link he supplied (assuming you have current OS). I think it is probably better to go the applescript route. Not if you want the search to actually finish while you're still at work. Really, you could not have described grep any better; it's the tool you want; re-inventing a perfectly good tool makes no sense. I am actually using BBEdit v11 on x.10 but had a similar problem on mavericks. The simple multi file find can probably be scripted to repeat itself, I had initially tried using process lines containing ... but this deletes all the non matching. Sure it can be scripted. But will take much longer to write that script, and will take **MUCH** longer to run that script. The time it takes you to read the grep docco will be less than the time it takes to re-invent grep. I do have some basic perl knowledge so may be able to do it using that instead, passing the files in as parameters, but they are in different nested folders. Yep, Perl is much better suited (close to its original design purpose), but it's still not needed. It's overkill for the described problem. Of course, the real problem may be different than the described problem, in which case my suggestions could be very wrong. Combine grep with xargs, and I'd be *VERY* surprised if you need any scripting at all. Eg. the need to delete matched files (discussed earlier) would simply be: grep -R -l find this string in/this/path/ | xargs rm That command WILL delete all matched files (so be careful); should be interactive though, the following will force delete: grep -R -l find this string in/this/path/ | xargs rm -f BTW, how do I get commands to run in the Unix worksheet, cmd enter does not do anything ? (I need to RTFM). Yep, RTFM, cmd-enter does not do anything. Just press enter. Charlie -- Charlie Garrison garri...@zeta.org.au github.com/cngarrison metacpan.org/author/CNG O ascii ribbon campaign - stop html mail - www.asciiribbon.org http://www.ietf.org/rfc/rfc1855.txt -- 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: Hoe to run multi file searches as a script or macro
CAN WE PLEASE CORRECT THE Hoe to How for all of us INNOCENT BYSTANDERS?? On Oct 25, 2014, at 8:27 PM, Charlie Garrison wrote: Good afternoon, On 24/10/14 at 2:49 AM -0700, Dave dave.live...@gmail.com wrote: But Mac OS X no longer includes gnu grep, more's the pity. They replaced it with the BSD version. There are a number of differences, the most significant one being the lack of a -P option. Is that something recent? I'm stuck at 10.7, and I get: $ grep -V grep (GNU grep) 2.5.1 [I can't use the new BBE either. :-( I'm looking at some new hardware for that reason alone.] Charlie -- Charlie Garrison garri...@zeta.org.au github.com/cngarrison metacpan.org/author/CNG O ascii ribbon campaign - stop html mail - www.asciiribbon.org http://www.ietf.org/rfc/rfc1855.txt -- 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.