Hello.

Here is a quick run down of what I'm facing.

$ alias all='ls -la'
$ all /var/log

This works because it's the as typing:

$ ls -la /var/log

but

$ alias ald='all|egrep ^d'
$ ald /var/log

does not work because it's the same as typing:

$ ls -la|egrep ^d /var/log

which is out of order. Is it possible to construct the alias in such a way that I make 
this happen?

$ ls -la /var/log|egrep ^d

The alias would look something like this (as I imagine it in my head):

$ alias ald='ls -la $1|egrep ^d'


Hopefully I've made some sense and someone can give me a yes or no.

Thanks,
Chris.


-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]
https://www.redhat.com/mailman/listinfo/redhat-list

Reply via email to