Created
January 6, 2023 17:35
-
-
Save RobCranfill/f10180d818f6e64d1d4286bf86a633cf to your computer and use it in GitHub Desktop.
Back up and document work from a circuitpython thumb drive
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# copy work files from thumbdrive to a folder here | |
# params: {new folder name} | |
NEWFOLDER="$1" | |
mkdir "$NEWFOLDER" | |
cp /mnt/f/*py "$NEWFOLDER" | |
ls -Al /mnt/f/lib >>"$NEWFOLDER"/liblist.text | |
tree /mnt/f/ >>"$NEWFOLDER"/dirtree.text |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment