Possible Duplicate:
How to pass parameter to alias?How to pass parameter to alias?
I am trying to shorten the find
command, but getting an error:
$ alias f='find . -name $1 -print'
$ f JobConf.java
find: paths must precede expression: JobConf.java
Usage: find [-H] [-L] [-P] [-Olevel] [-D help|tree|search|stat|rates|opt|exec] [path...] [expression]
How can I make this work?