first commit

This commit is contained in:
Roger Sikorski 2022-07-21 14:32:56 +02:00
commit 101635fdbd
4 changed files with 40 additions and 0 deletions

12
.editorconfig Normal file
View File

@ -0,0 +1,12 @@
# EditorConfig is awesome: https://EditorConfig.org
# top-most EditorConfig file
root = true
[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

5
.vscode/settings.json vendored Normal file
View File

@ -0,0 +1,5 @@
{
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true,
"editor.formatOnPaste": false
}

3
README.md Normal file
View File

@ -0,0 +1,3 @@
# README.md
Preperation script for gopro media files

20
gopro-preh.sh Executable file
View File

@ -0,0 +1,20 @@
#!/bin/bash
mkdir -p pics
mkdir -p lrv
mkdir -p videos
rm -f ./*.THM
mv ./*.JPG pics/ 2>/dev/null
mv ./*.LRV lrv/ 2>/dev/null
mv ./*.MP4 videos/ 2>/dev/null
echo "Rename all *.LRV to *.mp4"
cd lrv/ || exit
for f in *.LRV; do
mv -- "$f" "${f%.LRV}.mp4" 2>/dev/null
done
echo ""
echo "Script done"
echo ""