I have been trying all day with no success to get bash to receive arguments: the closest reference to this I could find is:
How to pass parameters to an alias?
if i execute:
rename -v -n 's/^the.//' *
it does exactly what I need, but I would like to turn into into an alias that received "the." string at run time. Is there a way of doing this?
Please any ideas would be welcome!
I have tried this, but with no success:
alias rp="_rp(){ rename 's/"$1"//' *; unset -f _rp; }; _rp"