From: Roman Neuhauser <neuhauser@bellavista.cz>
To: zsh-users@sunsite.dk
Subject: Re: how to?
Date: Tue, 27 Aug 2002 12:34:27 +0200 [thread overview]
Message-ID: <20020827103427.GJ21595@freepuppy.bellavista.cz> (raw)
In-Reply-To: <20020823133510.2B8EC5B5@mercea.net>
> From: Scott Lipcon <slipcon@mercea.net>
> To: zsh-users@sunsite.dk
> Subject: how to?
> Date: Fri, 23 Aug 2002 09:35:10 -0400
>
> Here's something I figure is possible in zsh, but I don't know how -
> I'd like to be able to do an ls in a directory of source code while
> its being built, and basically say: show me all the .c files for which
> there doesn't exist a .o file. Right now I'm using:
>
> ls -1 *.[co] | cut -f 1 -d"." | uniq -c | grep 1
>
> but there has to be a zsh way to do that without 3 pipes. Any ideas?
This made me look in the uguide, and looks like there's a variation
of this is (requires EXTENDED_GLOB):
% print *.c~f*
it works in this form, but isn't usable for the original task.
Neither my copy of zsh manual nor user guide mention that this
shouldn't work, but it doesn't:
roman@freepuppy ~/tmp/foo 1030:0 > ls
bar.c bar.o baz.c baz.o foo.c
roman@freepuppy ~/tmp/foo 1031:0 > ls *.c~f*
bar.c baz.c
roman@freepuppy ~/tmp/foo 1032:0 > ls *.c~*.o
bar.c baz.c foo.c
roman@freepuppy ~/tmp/foo 1033:0 >
could anyone explain this to me?
--
FreeBSD 4.6-STABLE
12:19PM up 6 days, 18:12, 19 users, load averages: 0.04, 0.07, 0.02
next prev parent reply other threads:[~2002-08-27 10:35 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-08-23 13:35 Scott Lipcon
2002-08-23 15:14 ` Phil Pennock
2002-08-23 15:59 ` Bart Schaefer
[not found] ` <20020823202218.A13113@globnix.org>
2002-08-24 3:47 ` Bart Schaefer
2002-08-24 21:56 ` Phil Pennock
2002-08-25 5:27 ` Bart Schaefer
2002-08-25 22:47 ` Phil Pennock
2002-08-27 10:34 ` Roman Neuhauser [this message]
2002-08-27 17:20 ` Phil Pennock
2002-08-27 18:00 ` Roman Neuhauser
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20020827103427.GJ21595@freepuppy.bellavista.cz \
--to=neuhauser@bellavista.cz \
--cc=zsh-users@sunsite.dk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).