Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
FW: Setting GLOB_DOTS for a single command
- X-seq: zsh-users 27355
- From: <agkozak@xxxxxxxxx>
- To: <zsh-users@xxxxxxx>
- Subject: FW: Setting GLOB_DOTS for a single command
- Date: Sat, 20 Nov 2021 21:11:16 -0800
- Archived-at: <https://zsh.org/users/27355>
- In-reply-to: <CAMP9c5mXzK=HHqZjwJdRSraf_LF3vLp0chMjpD-VnaurZ3z2Wg@mail.gmail.com>
- List-id: <zsh-users.zsh.org>
- References: <CAMP9c5mXzK=HHqZjwJdRSraf_LF3vLp0chMjpD-VnaurZ3z2Wg@mail.gmail.com>
- Thread-index: AQGzUjPO3JnbKTALB3aNT7MlDdmOqaxWhyOA
Zach Riggle wrote:
> I recently learned about GLOB_DOTS, which is pretty useful in some scenarios, e.g.
>
> echo *(md-1)
>
> To show all files modified within the last day. However, in some cases I want to see hidden files (e.g. ./.foo) as well. The globdots option is excellent for > this!
> Is there an easy way to set this for a single expression?
Have you tried
echo *(Dmd-1)
? I think that may be what you're looking for.
Alex
Messages sorted by:
Reverse Date,
Date,
Thread,
Author