Forum Discussion

em23's avatar
em23
Level 4
16 years ago
Solved

RegEx help

I want to back up a few files, and split these into separate streams. The way my files are split up are into A-Z. I was wondering if the following would work.

NEW_STREAM
/myfiles/[A-PM]*
NEW_STREAM
/myfiles/[PN-ZZ]*

or does it need to be /[AA-PM]* and /[PN-ZZ]*
  •  Include letters in small case then, Unixes are case-sensitive
  •  DOCUMENTATION: Clarification of the use of wildcards in a policy's file list.
    http://seer.entsupport.symantec.com/docs/275578.htm

    There is a difference in behavior when using wildcards in the file list for Windows versus UNIX clients.  UNIX clients will allow file lists to contain a "*" wildcard for subdirectories.  This option is not available for Windows clients.  The wildcard can only be used in the file name portion of the file list.

    The main point of this document is that wildcards cannot be used in intermediate paths on a file list for Windows clients. They can be used for UNIX clients.  Wildcards on intermediate paths will work for exclude and include lists for both client types.
  • Sorry! I did forget to mention this was a Unix client.
  •  Include letters in small case then, Unixes are case-sensitive
  • right, but these need to be upper-case. what i'm backing up are in upper case. i just wanted to know if that format was correct syntax.
  • Mouse didn't touch your syntax.  My understanding is that brackets only cover a SINGLE character, so I think to split up the "P's," you would need something more like...

    NEW_STREAM
    /myfiles/[A-O]*
    /myfiles/P[A-M]*
    NEW_STREAM
    /myfiles/P[N-Z]*
    /myfiles/[Q-Z]*

    ....as a policy list.  

    DISCLAIMER: I'm not 100% sure that will actually work.  Fortunately, this is free advice, so I don't have to be 100% sure.  ;-)
  • I don't know what was the target for these wildcards, but they are intended for single character, you are 100% correct  
  • that worked too! thank you CRZ!

    and you are correct. his was not an answer, but more guidance on proper setup.