I found a nice tip to search for a given port:
# echo /usr/ports/*/*portname*
If the string is found, it echos where and if not it says "echo: No match". I tried putting that into a script as follows:
//fport.sh
If I run the script and the string is found it outputs it but if not I get the following:
# sh ./fport blabla
/usr/ports/*/*blabla*
So my question is what is the difference here? Why am I getting different output?
# echo /usr/ports/*/*portname*
If the string is found, it echos where and if not it says "echo: No match". I tried putting that into a script as follows:
//fport.sh
Code:
#!/bin/sh
echo /usr/ports/*/*$1*
If I run the script and the string is found it outputs it but if not I get the following:
# sh ./fport blabla
/usr/ports/*/*blabla*
So my question is what is the difference here? Why am I getting different output?