Thursday, October 13, 2016

Cross Platform File Automation

Here are the guidelines I use whenever I have an automated task where the files may end up on an OS other than the one created.


  • Keep the names as short as possible
  • Use YYYYMMDD for dates - this makes things easier to sort later
  • Symbols 
    • I only use the underscore - if any at all
    • Spaces - can interfere with scripting
    • File system deliminator: . / \
    • Punctuation: . , ! ? : ; 
    • Grouping: () | , ' " `
    • Commenting: ! # - < >
    • Math % ^ * - + = /
    • System variables % $
    • Programmatic operators: ` ~ $ & |
    • Special use: @ 
I know there are more examples but I think you get the point. Someone scripts in java, the other in bash or PowerShell - each RegEx can be picky - 

No comments:

Post a Comment

Reflecting on Service

I was US Army Airborne Field Artillery - Target Acquisition. I never was in combat, so I don't think of myself as a veteran, but I do th...