Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: ZSH Find command replacement
- X-seq: zsh-users 18701
- From: Michal Politowski <mpol@xxxxxxxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Re: ZSH Find command replacement
- Date: Mon, 7 Apr 2014 09:59:13 +0200
- In-reply-to: <20140405065357.GC25618@tarsus.local2>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mail-followup-to: zsh-users@xxxxxxx
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <FD768579-53CF-43FF-B3C4-10B95E362322@pitt.edu> <20140405065357.GC25618@tarsus.local2>
On Sat, 5 Apr 2014 06:53:57 +0000, Daniel Shahaf wrote:
> Aki Hoji wrote on Fri, Apr 04, 2014 at 16:18:58 -0400:
> > recently switched to ZSH. I have a quick question. What is the shortest ZSH command equivalent of a following command ?
> >
> > find . -ctime -1 -type d -exec mv {} /foo/ ;
[...]
> I added a '--' for safety (in case a filename begins with a minus),
> but that's not specific to zsh; the 'find' version needs it too
> (as in, '-exec mv -- {} ... ;').
Actually it doesn't, as the paths find will give to mv will start with
'./' here, so any minus in a filename won't be at the start of an argument.
--
Michał Politowski
Talking has been known to lead to communication if practiced carelessly.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author