On Wed, Nov 17, 1999 at 01:54:43PM -0000, David Meagher wrote:
[...snip...]
> alias findfile='find / -name "$2" -print
[...snip...]
> it wouldn't work
RTFM. From man bash:
There is no mechanism for using arguments in the
replacement text, as in csh. If arguments
are needed, a shell function should be used.
Add this to your .bashrc:
function findfile
{
find / -name "$1" -print
}
Later,
Kenn
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!