Tech Remove jpg files with conditions via bash kevin-tofu January 17, 2023 1 min read for f in ./*.jpg do echo $f echo ${#f} if [ ${#f} -gt 20] then rm $f fi done Continue Reading Previous Previous post: Password Creation using htpasswd to Do Basic Authentication or Digest authentication on ubuntuNext Next post: Cannot find name process Error in TypeScript Related News Troubleshooting Around Cert-Manager Troubleshooting Around Cert-Manager Check CPU info Check CPU info Install Japanese Input on Ubuntu Install Japanese Input on Ubuntu Usability of Amazfit and Zepp App Usability of Amazfit and Zepp App