-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
14 additions
and
1 deletion.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,15 @@ | ||
# mass_rename | ||
This BASH script is for mass renaming and moving of files. This can be helpful if you have a lot of media files that need to imported into applications such as Jellyfin. | ||
This BASH script is for mass renaming and moving of files. | ||
|
||
### Why this maybe useful | ||
Need to rename media files for use in an application such as; PLEX, Jellyfin, etc.. | ||
Want torename picuture from trip so you can group them together | ||
|
||
Basic code | ||
``` | ||
ls | while read line | ||
do echo $line | ||
mv "$line" "$(echo -e "$line" |sed -e 's///' -e 's///' )" | ||
done | ||
``` | ||
This will subsittute the oldname for the new name. |