Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create moverestorations.sh #305

Merged
merged 3 commits into from
Feb 21, 2024
Merged

Create moverestorations.sh #305

merged 3 commits into from
Feb 21, 2024

Conversation

muthusalami
Copy link
Collaborator

script that moves older transcription disc restorations into a directory and creates a readme.txt file

script that moves older transcription disc restorations into a directory and creates a readme.txt file
echo "==============================" >> "$readme_file"

# identify old & new wav file
for wav_file in $wav_files; do
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do you confirm this works for packages with multiple wav files in the restoration folder?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yup. it considers multiple wav files with suffixes(?) like SDA255_1.wav and SDA255_01.wav.

attached is the readme that the script produces that logs the file move to the 'restoration_old' directory

oldrestoration_readme.txt

-moved variables in double quotes
-added checks restoration_old directory and oldrestoration_readme.txt
-added -n flag when wav files are moved
-removed interaction and now loops over input directories
provide script usage instruction if no input provided
@dericed dericed merged commit 64b3910 into mediamicroservices:master Feb 21, 2024
@muthusalami muthusalami deleted the moverestorations branch May 6, 2024 20:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants