Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: is there a way to use *.{txt,zip,tbz,dmg} if one or more might be missing?
- X-seq: zsh-users 24029
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: TJ Luoma <luomat@xxxxxxxxx>
- Subject: Re: is there a way to use *.{txt,zip,tbz,dmg} if one or more might be missing?
- Date: Sun, 7 Jul 2019 17:10:49 -0700
- Cc: Zsh Users <zsh-users@xxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=N4u+mz0TqtHtxrioKhPj9wNLAI6d2+z0xiPzQCZ6K9k=; b=WArl0Ap6grGV4Es8l5A7N0eDMvOdHxglk/2CXjEkGLG4BBld66Nsqd9/aYkcdvfits 9/Y3gwVFSvcuM4l9VDs5RGsQR3SHdKRBRI345xwi+bD/hsUwEgNYUuZp2UYLj1ph7IoO f1QM4Vzb33uUp5pEJkRMJV/We8IaFPs3Eq0mzbstKrHuVNnS0MQq6YeiViH+uaY03DsK s7qhhmGgxxL3Z0Nv+yt79AQkEFo2yUhY6sJ9B7EK5ckV2SReCdnftmmvcZF/AYjkFr/v 1Z3oOePjX7hYHzKRo7M2MA4IGwoWTthwzu1ZLXPQjXHFArDtptmEwFElb+etox2A5LOh vDZA==
- In-reply-to: <CADjGqHvD+NwA3XxrG_OgJ06Zdi5frpVC6VCqKKZ1bWpHwtpshA@mail.gmail.com>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- List-unsubscribe: <mailto:zsh-users-unsubscribe@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <CADjGqHvD+NwA3XxrG_OgJ06Zdi5frpVC6VCqKKZ1bWpHwtpshA@mail.gmail.com>
On Sun, Jul 7, 2019 at 4:28 PM TJ Luoma <luomat@xxxxxxxxx> wrote:
>
> Is there a way to do basically the same thing, but tell `mv` "if is at
> least one file with any of these extensions, then move to ~/dir/" ?
Use an alternation pattern instead of brace expansion:
mv -vn *.(txt|zip|tbz|dmg) ~/dir/
Messages sorted by:
Reverse Date,
Date,
Thread,
Author