-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmetdat.sh
More file actions
28 lines (25 loc) · 722 Bytes
/
Copy pathmetdat.sh
File metadata and controls
28 lines (25 loc) · 722 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/bin/bash
# To make executable, modify permissions of the script with: chmod u+x metdat.sh
# Image metadata extraction utility
sleep 0.5
echo ''
echo 'Metadata Extraction Utility'
sleep 0.5
echo '(c) Devon M. 2026'
sleep 0.5
# File Selection
echo ''
read -p 'Input filepath: ' file_name
# Output Type Selection
echo ''
echo 'Select Output Type'
echo ''
echo '(1.) Standard Output'
echo '(2.) Exit'
echo ''
read -p '' output_type
case $output_type in
1 ) echo ''; exec exiftool $file_name; sleep 0.5; exec '/home/devon/Bash/metdat.sh';;
2 ) echo ''; echo 'Terminating Script...'; sleep 0.5; exec '/home/devon/Bash/hud.sh';;
* ) echo ''; echo 'Invalid selection'; sleep 0.5; exec '/home/devon/Bash/metdat.sh';;
esac