shell script using exiftool in BASH to extract camera details for image files

#!/bin/bash
# 
#   shell script using exiftool to get EXIF info from pictures - run in ORIGINAL directory - john 24oct2016
# 
#   /usr/bin/exiftool # tool can be downloaded or installed... YMMV, works in MacOSX and Linux
# 
#####    execute script in directory with jpg or RAW image files that contain EXIF data
#
for x in `ls *`
    do
    #
    exiftool $x > exifinfo-$x.txt
    #
    #  each camera type captures different EXIF data, you'll need to adjust this exemption list based on the output
    #
    cat exifinfo-$x.txt| grep -E -v '(Brightness|Timezone|ISO2|Zone|Bracket|Image|Artist|Crop|Sensitivity|Preview|Difference|Shift|MIME|Tuning|Clarity|Serial|Mode|Modify|Distance|Confusion|Gain|Tune|Phase|CFA|Depth|Hyper|Light|Mega|Red|Blue|GPS|Normal|TIFF|Jpg|Binary|Sub|Memory|Original|File|Directory|Sensing|Size|Power|Multi|Raw|Contrast|Vari|Retouch|Max|Compression|Exit|Comment|Primary|MCU|Version|Shot|Position|Picture|Black|Control|Points|Expansion|Zoom|Toning|Hue|Filter|Format|Min|Color|Quality|Levels|Flash|Scene|Other|Planar|Resolution|Copyright|Strip|Balance|Bits|Stops|Samples|Software|Orientation|Byte|Make|Savings|Scale|Configuration|Detected|Assist|Recommended|Sharpness|Sensor|VRD|Ambience|Thumbnail|Categories|Continuous|Live|Firmware|RGGB|Aspect|Warning|Photometric|Slow|Units|Bulb|Measured|Range|Tone|Interoperability|Aberration|Auto|Target|Compensation|Rotate|Base|Self|Point|Rating|Owner)'  > base-exif-$x.txt
    #
    done
###################
#  optional below
###################
mkdir ../EXIFINFO
mv exifinfo-*.txt ../EXIFINFO
mv base-exif-*.txt ../EXIFINFO


ebook:
Full Size
Jeep Buyer's
Guide
ebook:
Practical Suggestions
for Microsoft
Windows
Linux Tackles Microsoft
12 hour Video Course by john:
The Art of Linux System Administration
published by O'Reilly Media
Study Guide for the LPIC-2 Certification Exams
search for:
on the internet, or:
JohnMeister.com-fotos
LinuxMeister-Linux
BibleTech-
Bible overview


An overview of Biblical history:
"Promises and Prophets"

Wagoneers

FULL SIZE JEEPS

JeepMeister
"Jeep is America's
only real sports car."
-Enzo Ferrari


MeisterTech
Diesels +

One Page Overview of Linux Commands

click for an image of the 5 essential Linux commands

An Intro to Linux
AMSOIL product guide,
or, AMSOIL web, or 1-800-956-5695,
use customer #283461

Amsoil dealer since 1983
purchase AMSOIL
at Midway Auto on SR9 in Snohomish,
or at Northland Diesel in Bellingham, WA


SJ - 1962-1991

XJ - 1984-2001

WJ - 1999-2004

KJ - 2002-2007

WK - 2005-2010

Find the recommended
AMSOIL synthetics
for your Jeep

CJ-10A - 1984-1986

Jeepsters

MJ - 1984-1992

Willys - 1946-1965

Other Jeeps (FC)