[9fans] replica/pull wildcards - Plan9

This is a discussion on [9fans] replica/pull wildcards - Plan9 ; 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?...

+ Reply to Thread
Results 1 to 6 of 6

Thread: [9fans] replica/pull wildcards

  1. [9fans] replica/pull wildcards

    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?


  2. Re: [9fans] replica/pull wildcards

    > 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

  3. Re: [9fans] replica/pull wildcards

    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.


  4. Re: [9fans] replica/pull wildcards

    > 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

  5. Re: [9fans] replica/pull wildcards

    > 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


  6. Re: [9fans] replica/pull wildcards

    > > 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.


+ Reply to Thread