On Jun 18, 2007, at 11:31 PM, Malcolm Fitzgerald wrote:
I know how to do "port search foo" but that will only work on application names. I'd like to search the long descriptions. How is that done?malcolm
Rather than struggling to do the search in UNIX, an editor is better suited for the task. You can grab the info using the Terminal, send it to a temporary file, open it in your favorite editor, then do a grep search for whatever pattern you need...
I.m not quite sure what platform you are working on, but on OS X the editor extra-ordinaire is BBEdit, so from my Bash Terminal I can the command listed on any one of the lines from ( 1 ) thru ( 7 ).
Line ( 7 ) is the easiest to use... [2007.19.06](12:47PM) -> [username] ~( 1 ) $ port info long_description:apache >> ~/Desktop/ port_long_descriptions.txt;open -a /Applications/BBEdit.app ~/Desktop/ port_long_descriptions.txt
[2007.19.06](12:47PM) -> [username] ~( 2 ) $ fpath=~/Desktop/port_long_descriptions.txt ; port info long_description:apache >> $fpath ; open -a /Applications/BBEdit.app $fpath
[2007.19.06](12:47PM) -> [username] ~( 3 ) $ apath=/Applications/BBEdit.app ; fpath=~/Desktop/ port_long_descriptions.txt ; port info long_description:apache >> $fpath ; open -a $apath $fpath
OR if you only need it temporarily : [2007.19.06](12:47PM) -> [username] ~( 4 ) $ port info long_description:apache >> /tmp/ port_long_descriptions.txt;open -a /Applications/BBEdit.app /tmp/ port_long_descriptions.txt
[2007.19.06](12:47PM) -> [username] ~( 5 ) $ fpath=/tmp/port_long_descriptions.txt ; port info long_description:apache >> $fpath ; open -a /Applications/BBEdit.app $fpath
[2007.19.06](12:47PM) -> [username] ~( 6 ) $ apath=/Applications/BBEdit.app ; fpath=/tmp/ port_long_descriptions.txt ; port info long_description:apache >> $fpath ; open -a $apath $fpath
OR( 7 ) $ fsubj=apache ; apath=/Applications/BBEdit.app ; fpath=/tmp/ port_long_descriptions.txt ; port info long_description:$fsubj >> $fpath ; open -a $apath $fpath
These work very well for me on OS X.You could convert it into a small shell script if you think you might use it now and then...
Hope this helps ! Bill Hernandez Plano, Texas --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See <URL:http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx " from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx