find . -name "*"
or more advanced
find . -print | grep -E -- 'jpg|png'
for candidate in `find . -print | grep -E -- 'jpg|png'`; do
echo "the next file is $candidate"
done
size=$(wc -c < file.txt)
This is in bytes.
type=$(file -b --mime-type file.txt)
Notes
image/jpeg
image/png
Numeric
if (( $size >= 614400 )); then
echo 'hello world'
fi
String
if [ "$a" = "$b" ]; then
echo 'hello world'
fi