up sort bazar
This commit is contained in:
parent
efab572e8d
commit
99ff26adf2
17653
.pnp.cjs
generated
Executable file
17653
.pnp.cjs
generated
Executable file
File diff suppressed because one or more lines are too long
2042
.pnp.loader.mjs
generated
Normal file
2042
.pnp.loader.mjs
generated
Normal file
File diff suppressed because it is too large
Load Diff
@ -19,17 +19,25 @@ mkdir -p "${dst_dir}"
|
||||
# Déplacer des fichiers depuis le répertoire actuel vers le nouveau dossier
|
||||
for i in $(seq -f "%03g" ${start_num} ${end_num}); do
|
||||
src_file="${src_base_name}${i}.jpg"
|
||||
src_file_zero="${src_base_name}0${i}.jpg"
|
||||
dst_file="${dst_dir}/${src_file}"
|
||||
|
||||
if [ -f "/home/poule/encrypted/stockage-syncable/photos/imageries/gopro/hugin_assemblages_script_output/${src_file}" ]; then
|
||||
mv -- "/home/poule/encrypted/stockage-syncable/photos/imageries/gopro/hugin_assemblages_script_output/${src_file}" "${dst_file}"
|
||||
mv "/home/poule/encrypted/stockage-syncable/photos/imageries/gopro/hugin_assemblages_script_output/${src_file}" "${dst_file}"
|
||||
echo "Déplacé ${src_file} -> ${dst_file}"
|
||||
# else
|
||||
# echo "Fichier '${src_file}' introuvable."
|
||||
elif [ -f "/home/poule/encrypted/stockage-syncable/photos/imageries/gopro/hugin_assemblages_script_output/${src_file_zero}" ]; then
|
||||
mv "/home/poule/encrypted/stockage-syncable/photos/imageries/gopro/hugin_assemblages_script_output/${src_file_zero}" "${dst_file}"
|
||||
echo "Déplacé ${src_file_zero} -> ${dst_file}"
|
||||
else
|
||||
|
||||
echo "Fichier '${src_file}' introuvable."
|
||||
fi
|
||||
done
|
||||
|
||||
echo "dossier de destination:
|
||||
$dst_dir"
|
||||
|
||||
ls -l $dst_dir |wc -l
|
||||
|
||||
# supprimer les fichiers pto
|
||||
# bash /home/poule/encrypted/stockage-syncable/www/development/html/scripts/hugin-gopro-fusion/remove_pto_batch.sh $start_num $end_num
|
||||
bash /home/poule/encrypted/stockage-syncable/www/development/html/scripts/hugin-gopro-fusion/remove_pto_batch.sh $start_num $end_num
|
||||
|
@ -1,15 +1,15 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Définir le répertoire d'entrée et le répertoire de sortie
|
||||
in_folder="/home/poule/encrypted/stockage-syncable/photos/imageries/gopro/bazar"
|
||||
in_folder="/home/poule/encrypted/stockage-syncable/photos/imageries/gopro/hugin_assemblages_script_output_essai"
|
||||
|
||||
out_folder="/home/poule/encrypted/stockage-syncable/photos/imageries/gopro/INBOX_a_assembler/sequences_from_bazar"
|
||||
|
||||
# Boucler sur tous les files dans le répertoire d'entrée
|
||||
for files in "$in_folder/"*; do
|
||||
fichier="$in_folder/${files##*/}"
|
||||
# Vérifier si le fichier est un fichier GP*.JPG ou GF*.JPG
|
||||
if [[ $fichier == *"GP*" || $fichier == *"GF*" ]]; then
|
||||
|
||||
if [[ $fichier == *"assemblage_*" || $fichier == *"assemblage_*" ]]; then
|
||||
# Extraire le nombre de séquence à partir du nom de fichier
|
||||
seq_num=$(echo "$fichier" | awk -F '[_'] '{print $3}')
|
||||
|
||||
@ -22,7 +22,7 @@ for files in "$in_folder/"*; do
|
||||
# Boucler durch tous les fichiers subséquents dans le répertoire d'entrée
|
||||
for nextfile in "$in_folder/"*; do
|
||||
# Vérifier si le prochain fichier est également un fichier GP*.JPG ou GF*.JPG
|
||||
if [[ $nextfile == *"GP*" || $nextfile == *"GF*" ]]; then
|
||||
if [[ $nextfile == *"assemblage_*" || $nextfile == *"assemblage_*" ]]; then
|
||||
# Extraire le prochain nombre de séquence à partir du nom de fichier
|
||||
next_seq_num=$(echo "$nextfile" | awk -F '[_'] '{print $3}')
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user