Answers for "find file type bash"

1

find file type linux script

#! /bin/sh
if [ -f "$1" ] && [ "`file -b --mime-type \"$1\"`" = "image/jpeg" ]; then
    echo "Good type for the file (JPEG)"
fi
Posted by: Guest on January-20-2021

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language