- Code: Select all
string="$1"
length=$(echo ${#string})
if [ $length -gt 150 ]
then
exit 0
fi
exit 1
It seems as it should work, but long file names still seem to not get flagged. Any ideas of how to accomplish this?
Moderator: Mr_Noodle
string="$1"
length=$(echo ${#string})
if [ $length -gt 150 ]
then
exit 0
fi
exit 1