I'm trying to make an extremely simple script named 'findm' in my /usr/local/bin that looks like this:
Code:
#!/bin/bash
find -mindepth 1 -iname '*$1*'
As you can see, I want to be able to run 'findm some_argument' while in a shell in any directory.
The problem I'm having is that this script only works when I'm in my top most home directory. Any directory lower than that and the script returns no results. Any help would be appreciated. Thanks.