Premise: I often get files from colleagues that I need to work on. Often times, these files have spaces in the names. Working with these files at the command line or in scripts can be tedious.
Possible solutions:
With the rename
program (on nix systems), I can easily rename these files, eg:
$ rename --sanitize --lower-case *
I recently found that rename
can actually just create a link to the original file, leaving the original filename unchanged:
$ rename --sanitize --lower-case --symlink *
Question: What are the (potential) pros/cons of these two methods?
For example, it seems that creating a bunch of symlinks has the drawback of making my filesystem 'messier', but renaming the files has the draw back of trying to match up the files that I'm using with my colleagues (whether I'm redistributing my code or just communicating "I did [analysis] on [file_x.csv]").
Additional info:
Generally I'm the only person actively working on these files, but it is important that my work be archived so that other people can refer back to it or re-analyze the data in any way of their choosing. I work in an academic setting, so, in principle, the raw data and my methods should be archived indefinitely.