Hello
I've been Googling for this for over half an hour, and still can't get this alias to work :-/
I'd like to add an alias "lld" to only list directories:
Code:
# cat /etc/bash.bashrc
[...]
#BAD alias lld = 'ls -l | egrep '^d''
#BAD alias lld = 'ls -l | egrep \'^d\''
#BAD alias lld = "ls -l | egrep '^d'"
#BAD alias lld = "ls -l | egrep \'^d\'"
#BAD alias lld = "ls -l | egrep '\'^d'\'"
I make sure I log off and log back on, but I'm still getting "No command 'lld' found, did you mean:".
Does someone know how to add an alias that includes a quote, or an alternative to eqrep that doesn't require quotes altogether?
Thank you.