Update README.md & Fix #2
All checks were successful
/ test (push) Successful in 17s

This commit is contained in:
Aroy-Art 2024-03-06 15:46:44 +01:00
parent 933d3207db
commit e787514fc5
Signed by: Aroy
GPG key ID: 583642324A1D2070
2 changed files with 13 additions and 3 deletions

View file

@ -27,7 +27,7 @@ def replace_backslash(directory):
if __name__ == "__main__": if __name__ == "__main__":
# Check if the correct number of command-line arguments is provided # Check if the correct number of command-line arguments is provided
if len(sys.argv) != 2: if len(sys.argv) != 2:
print("Usage: python script_name.py <directory_path>") print("Usage: python rename_backslash.py <directory_path>")
else: else:
directory_path = sys.argv[1] # Get the directory path from command-line argument directory_path = sys.argv[1] # Get the directory path from command-line argument

View file

@ -10,6 +10,8 @@ This repo holds most of my random small scripts, configs, paws(blobs)
* [Cura](#cura) * [Cura](#cura)
* [Materials](#materials) * [Materials](#materials)
* [Clas Ohlsson's PLA](#clas-ohlssons-pla) * [Clas Ohlsson's PLA](#clas-ohlssons-pla)
* [Python Scripts](#pythonscripts)
* [rename_backslash.py](#rename_backslash.py)
* [Shell Scripts](#shellscripts) * [Shell Scripts](#shellscripts)
* [24-bit-color.sh](#24-bit-colorsh) * [24-bit-color.sh](#24-bit-colorsh)
* [rsync-incremental-backups.sh](#rsync-incremental-backupssh) * [rsync-incremental-backups.sh](#rsync-incremental-backupssh)
@ -26,8 +28,16 @@ This repo holds most of my random small scripts, configs, paws(blobs)
The material config file for Clas Ohlsson's PLA Materials The material config file for Clas Ohlsson's PLA Materials
## Python Scripts
### rename_backslash.py
A script to replace backslashes(\) with in filenames within a directory and its sub-directories.
## Shell Scripts ## Shell Scripts
This folder has a loot of diffrent shell scripts for everything from automating stuff to toys.
### 24-bit-color.sh ### 24-bit-color.sh
This script echoes a bunch of 24-bit color codes to the terminal to demonstrate its functionality and test color support of terminals. This script echoes a bunch of 24-bit color codes to the terminal to demonstrate its functionality and test color support of terminals.