...
>having hard time to escape quotes and double quotes.
>
>Any ideas?
The quick answer is: Do it as a function, not as an alias. The bash
documentation is pretty clear that aliases are pretty much TBA (which of
course begs the question as to why they were ever included...), and that
anything you can do with an alias, you can do with a function, but the
converse does not hold. In particular, and unlike in (t)csh, you cannot
pass arguments to a bash alias (except, of course, at the end).
The less-quick answer is: It can be done (as long as you don't need to pass
"internal" arguments), but it gets ugly and weird. Having grown up on tcsh
(and still preferring it to bash, although I end up using bash when I'm in
an environment that doesn't have tcsh installed), I, perversely, still like
aliases and have devoted time (way too much time, in fact) to building ways
to handle the ugly quoting problems. I won't go into it here (at least not
now), since it is so ugly (and, ultimately, pointless), but it is/was fun
putting it together.
--
Debating creationists on the topic of evolution is rather like trying to
play chess with a pigeon --- it knocks the pieces over, craps on the
board, and flies back to its flock to claim victory.