From 8fa7e501a88325103628363ce94943fcb355dd11 Mon Sep 17 00:00:00 2001 From: andre Date: Tue, 20 Jan 2026 18:03:07 +0100 Subject: [PATCH] rootfs/home/andre/.bashrc aktualisiert --- rootfs/home/andre/.bashrc | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/rootfs/home/andre/.bashrc b/rootfs/home/andre/.bashrc index b220df6..eb60b6c 100644 --- a/rootfs/home/andre/.bashrc +++ b/rootfs/home/andre/.bashrc @@ -284,6 +284,15 @@ BG_LIGHTCYAN="\e[48;5;14m" BG_WHITE="\e[48;5;15m" BG_NO="\e[0;00m" +Insta360Pictures() { + for instafile in `ls | egrep -i "^[0-9a-z]+_[0-9]+\.[0-9]+_[0-9]+\.jp[e]*g"` + do + timestamp=$(echo "$instafile" | sed 's/.*_\([0-9]*\)\.jpg/\1/') + timestamp_sec=$(($timestamp / 1000)) + # Datum formatieren und in EXIF schreiben + exiftool -overwrite_original -DateTimeOriginal="$(date -d @${timestamp_sec} '+%Y:%m:%d %H:%M:%S')" $instafile + done +} AddTimeDateToPictures() { J=$1