You can customize the values of "dir1" and "dir2" in the script to your input and output directories. # Remove leading zeros from the last element # Split the components of the name by underscores (_) NAME_IN="$(basename "$FILENAME" ".$EXTENSION")" # Find the base filename, excluding extension Here's an example of a bash script that should be capable.Ĭreate a file "renamer.bash" with the following content #!/usr/bin/env bashįor FILENAME in "$DIRECTORY_IN"/*."$EXTENSION" do
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |