[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Bash argument expanded inside alias



On Tue, 13 Mar 2012 11:34:12 -0300, rcb wrote:

(no html, please)

> Dear Debian users,
> 
> Anyone knows why this command:
> 
> :~$ alias muda='find . -name "*" -mtime -$1'

(...)

> does not work to do what your intuition imagine what I want it to do?

It's not the alias but the command itself.

***
alias muda='find . -name "*" -mtime $1'
***

And pass the negative value "-n" as argument (e.g., "muda -2")

Greetings,

-- 
Camaleón


Reply to: