Translate

delete all the .jpg files in a folder and the subfolders

 Issue:

    When i use "rm ./*" to delete files, the issue is "bash: /usr/bin/rm: Argument list too long".

    

Solution:

    find . -maxdepth 2 -type f -name "*.jpg" -delete




No comments:

Post a Comment