Advertisement
mayankjoin3

identify corrupt images jpg unix ubuntu terminal command line

Jun 14th, 2022
1,287
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.24 KB | None | 0 0
  1. FILES="/var/www/html/*"
  2. cd "/var/www/html/"
  3. for f in $FILES
  4. do
  5.   echo "Processing $f file..."
  6.   # take action on each file. $f store current file name
  7.   #cat "$f"
  8.   identify -verbose "$f" | sed -n '/.*Pixels: /s///p' >>report.txt
  9. done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement