* [9fans] replica/pull wildcards
@ 2007-01-23 18:37 Skip Tavakkolian
2007-01-23 18:44 ` Russ Cox
0 siblings, 1 reply; 6+ messages in thread
From: Skip Tavakkolian @ 2007-01-23 18:37 UTC (permalink / raw)
To: 9fans
wouldn't it be useful if pull -s/-c paths took wildcards? i keeping wanting
to do:
replica/pull -v -s 'lib/face/48x48x1/?' /dist/replica/network
is there another way?
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [9fans] replica/pull wildcards
2007-01-23 18:37 [9fans] replica/pull wildcards Skip Tavakkolian
@ 2007-01-23 18:44 ` Russ Cox
2007-01-24 18:35 ` rog
0 siblings, 1 reply; 6+ messages in thread
From: Russ Cox @ 2007-01-23 18:44 UTC (permalink / raw)
To: Fans of the OS Plan 9 from Bell Labs
> wouldn't it be useful if pull -s/-c paths took wildcards? i keeping wanting
> to do:
>
> replica/pull -v -s 'lib/face/48x48x1/?' /dist/replica/network
>
> is there another way?
maybe it should.
in this particular example you can
cd /
replica/pull -v -s^(lib/face/48x48x1/?) /dist/replica/network
russ
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [9fans] replica/pull wildcards
2007-01-23 18:44 ` Russ Cox
@ 2007-01-24 18:35 ` rog
2007-01-24 18:38 ` Russ Cox
0 siblings, 1 reply; 6+ messages in thread
From: rog @ 2007-01-24 18:35 UTC (permalink / raw)
To: 9fans
russ wrote:
> cd /
> replica/pull -v -s^(lib/face/48x48x1/?) /dist/replica/network
just nit picking, but i think you meant
replica/pull -v -s lib/face/48x48x1/? /dist/replica/network
as globbing is done after concatenation.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [9fans] replica/pull wildcards
2007-01-24 18:35 ` rog
@ 2007-01-24 18:38 ` Russ Cox
2007-01-24 19:03 ` Skip Tavakkolian
2007-01-24 19:30 ` rog
0 siblings, 2 replies; 6+ messages in thread
From: Russ Cox @ 2007-01-24 18:38 UTC (permalink / raw)
To: Fans of the OS Plan 9 from Bell Labs
> russ wrote:
> > cd /
> > replica/pull -v -s^(lib/face/48x48x1/?) /dist/replica/network
>
> just nit picking, but i think you meant
>
> replica/pull -v -s lib/face/48x48x1/? /dist/replica/network
>
> as globbing is done after concatenation.
that's too bad. that being the case, i meant:
d=(lib/face/48x48x1/?)
replica/pull -v -s^$d /dist/replica/network
as each directory needs to be the argument of a separate -s.
russ
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [9fans] replica/pull wildcards
2007-01-24 18:38 ` Russ Cox
@ 2007-01-24 19:03 ` Skip Tavakkolian
2007-01-24 19:30 ` rog
1 sibling, 0 replies; 6+ messages in thread
From: Skip Tavakkolian @ 2007-01-24 19:03 UTC (permalink / raw)
To: 9fans
> d=(lib/face/48x48x1/?)
> replica/pull -v -s^$d /dist/replica/network
and this from geoff:
echo replica/pull -v -s^(`{ls -d /lib/face/48x48x1/?| sed 's;^/; ;'}) /dist/replica/network
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [9fans] replica/pull wildcards
2007-01-24 18:38 ` Russ Cox
2007-01-24 19:03 ` Skip Tavakkolian
@ 2007-01-24 19:30 ` rog
1 sibling, 0 replies; 6+ messages in thread
From: rog @ 2007-01-24 19:30 UTC (permalink / raw)
To: 9fans
> > as globbing is done after concatenation.
>
> that's too bad.
it's actually an important feature, which you
use when you do:
$home/src/*.c
and also enables this:
/usr/^(rog forsyth chris)^/src/*.c
which i'm sure you know, russ, but isn't perhaps
too obvious to newer users of rc.
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2007-01-24 19:30 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-01-23 18:37 [9fans] replica/pull wildcards Skip Tavakkolian
2007-01-23 18:44 ` Russ Cox
2007-01-24 18:35 ` rog
2007-01-24 18:38 ` Russ Cox
2007-01-24 19:03 ` Skip Tavakkolian
2007-01-24 19:30 ` rog
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).