Re: Wildcards
For directories, try:
ls -lF | grep "/$"
or:
ls -l | grep "^d"
You could create an alias for this in your .bash_profile as "lsd":
alias lsd='ls -lF | grep "/$"'
For executables, try:
ls -lF | grep "*$"
And alias it as "lsx":
alias lse='ls -lF | grep "*$"'
Do a "man ls" and "man grep" and experiment with some of the other
options.
On Sun 07-Jun-1998 09:56PM, timothy@smasher.rs.itd.umich.edu wrote
concerning "Wildcards":
> Is there a wildcard type thing to indicate all directories, or all
> files etc? Like "dir /ad" in dos. And is there anything as cool as a wildcard
> for file modes like all executeables?
> Thanks,
> Timothy
>
> ----------------------------------
> E-Mail: timothy@smasher.rs.itd.umich.edu
> Date: 07-Jun-98
> Time: 21:53:56
>
> This message was sent by XFMail.
> Powered by GNU/Linux 2.0.
> ----------------------------------
>
>
> --
> To UNSUBSCRIBE, email to debian-user-request@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
--
dL
--
To UNSUBSCRIBE, email to debian-user-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Reply to:
- References:
- Wildcards
- From: timothy@smasher.rs.itd.umich.edu