I am trying to create an alias for tcsh. I would like to find a program in ports (FreeBSD ports).
So far I made an alias, which works, but finds only ports which end in *port_name. I would like it to search for *port_name*. Can you tell why my example does not work?
alias najdi 'echo /usr/ports/*/*\!:1* | sed -e "y/ /\n/"'
.
najdi port_name
finds: *port_name
expected: *port_name*
SOLUTION: I switched to this: (it is also case in-sensitive)
alias portfind 'cd /usr/ports && make quicksearch name=\!:1 | grep Path'

ports-mgmt/psearch, does the same with more options. – Carpetsmoker Mar 7 at 12:07