Re: FYI - regex to list installed WO frameworks

2012-09-11 Thread Kieran Kelleher
Nice. Seems like the winner to me. Fastest and shortest command that functionally works on my machine. :) find /Library/Frameworks -name *.jar | perl -n -e '/(.+).framework\/Resources\/Java\/(\1).jar/ print $1.framework\n' On Sep 11, 2012, at 12:53 AM, Alexis Tual alexis.t...@gmail.com

Re: FYI - regex to list installed WO frameworks

2012-09-11 Thread Kieran Kelleher
Interesting that Q's one had a single .framework entry at the start of the results, which I thought was a mistake since it was different to the others, but it wasn't. I discovered there is a single .framework actually there in /Library/Frameworks - must be from some messed up ant build testing

Re: FYI - regex to list installed WO frameworks

2012-09-11 Thread Maik Musall
Hi, if the frameworks all are in the main directory, this is shorter :-) find /Library/Frameworks -path *framework/Resources/Java/*.jar | cut -d/ -f4 | sort -u Maik Am 11.09.2012 um 14:56 schrieb Kieran Kelleher kelleh...@gmail.com: Nice. Seems like the winner to me. Fastest and shortest

Re: FYI - regex to list installed WO frameworks

2012-09-11 Thread Kieran Kelleher
Clever one! That is the shortest so far :) On Sep 11, 2012, at 9:15 AM, Maik Musall m...@selbstdenker.ag wrote: Hi, if the frameworks all are in the main directory, this is shorter :-) find /Library/Frameworks -path *framework/Resources/Java/*.jar | cut -d/ -f4 | sort -u Maik Am

Re: FYI - regex to list installed WO frameworks

2012-09-11 Thread Bastian Triller
or use ls: $ ls -1 /Library/Frameworks/*.framework/Resources/Java/*.jar|cut -d/ -f4|sort -u Am Dienstag, den 11.09.2012, 09:30 -0400 schrieb Kieran Kelleher: Clever one! That is the shortest so far :) On Sep 11, 2012, at 9:15 AM, Maik Musall m...@selbstdenker.ag wrote: Hi, if the

Re: FYI - regex to list installed WO frameworks

2012-09-11 Thread Kieran Kelleher
The power of unix :) On Sep 11, 2012, at 11:01 AM, Bastian Triller bastian.tril...@gmail.com wrote: or use ls: $ ls -1 /Library/Frameworks/*.framework/Resources/Java/*.jar|cut -d/ -f4|sort -u Am Dienstag, den 11.09.2012, 09:30 -0400 schrieb Kieran Kelleher: Clever one! That is the

FYI - regex to list installed WO frameworks

2012-09-10 Thread Kieran Kelleher
[Just sharing a cryptic command so future me never forgets it :) ] There might be a shorter, more efficient command, but anyway, this works. It lists WebObjects frameworks currently installed in your OS X /Library/Frameworks by looking for paths matching the pattern

Re: FYI - regex to list installed WO frameworks

2012-09-10 Thread Bastian Triller
jfc@ul30a:~$ ls -1 /opt/Apple/Local/Library/Frameworks/*.framework/Resources/Java/*.jar ; find --version ; for regextype in emacs posix-{awk,basic,egrep,extended} ; do echo $regextype ; find /opt/Apple/Local/Library/Frameworks/ -regextype $regextype -iregex

Re: FYI - regex to list installed WO frameworks

2012-09-10 Thread Kieran Kelleher
Here is the output of the original 3-stage command - I was curious if anyone could produce the same output with a shorter command (purely as a fun exercise :) ) kieran@kieranmacpro ~ find /Library/Frameworks -name *.jar | egrep (.+).framework/Resources/Java/(\1).jar | sed -E

Re: FYI - regex to list installed WO frameworks

2012-09-10 Thread Alexis Tual
Hi Kieran, I thought awk could do it, but it can't handle grouping, so perl to the rescue (aka the fun) : find . -name *.jar | perl -n -e '/(.+).framework\/Resources\/Java\/(\1).jar/ print $1.framework\n' Cheers, Alex 2012/9/11 Kieran Kelleher kelleh...@gmail.com Here is the output of the

Re: FYI - regex to list installed WO frameworks

2012-09-10 Thread Q
find /Library/Frameworks -regex .*/\([^\.]*\)\.framework/Resources/Java/\1.jar -execdir sh -c 'echo {} | sed s/jar$/framework/' \; On 11/09/2012, at 12:38 PM, Kieran Kelleher kelleh...@gmail.com wrote: Here is the output of the original 3-stage command - I was curious if anyone could