Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The script will read each row in the CSV and store the value in the first and second columns as "%a" and "%b", respectively.* It will look within the "bliss_david_papers" folder for a file matching the value of %a. If it finds a match, it changes the filename to the value of %b before moving on to the next row in the CSV.

*The first part of the command only explicitly assigns the variable name "%a" to the first column and provides no variable name for the second column. The system will automatically assign the next alphabetical character (%b, in this case) to the second column, and only the first column's variable letter needs to be provided.

Python

For more complicated jobs, you can write a simple script in Python that will parse a file list and manipulate each item. You will need to install a Python 3 code editor (I use Spyder, installed as part of Anaconda) to write and execute your script.

...