Dear Clive, dear Tom,
Thanks for your time!
The solution:
mudafct() { find . -name "*" -mtime -$1; }
alias muda='mudafct'
seems to works inside .bashrc file! (Just 'seems' because I did not
reboot, just typed in a terminal and it worked great!)
Thanks both,
Beco.
To: [email protected]
Subject: Re: Bash argument expanded inside alias
From: Clive Standbridge <[email protected]>
Date: Tue, 13 Mar 2012 15:49:52 +0000
> does not work to do what your intuition imagine what I want it to do?
Hi Beco,
It doesn't work because aliases don't take arguments.
You can use a shell function instead. For example,
muda()
{
find . -name "*" -mtime -$1
}
--
Cheers,
Clive
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]
Archive:
http://lists.debian.org/caluyw2yfe8axdtnfx3ydhmep1aq7_c0sndwba+clvm_tck0...@mail.gmail.com