[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

help using ~~



Paul,

  I'm trying out pattern extraction, but I'm not getting what I
want.  What am I doing something wrong?  Here is what I want to
do:

 Given the file name 

    b0302001.lisp

  I want to convert it to

    d0302001.lisp
    p0302001.lisp

  I need to do this for a large number of files.

  Here's what I tried

    ; echo <={~~ (b0302001.lisp) b???????.lisp}
    0 3 0 2 0 0 1
    ; echo <= {~~ (b0302001.lisp) b*.lisp}
    
    ;


  The first try extracted what I wanted but in the wrong form. I
expected the results to be

    0302001

  not

    0 3 0 2 0 0 1

  The second try didn't extract anything.  Why not?


  -- gregoir