rm -rf argument list too long code example
Example: rm argument list toot long
# To delete files when we receive the message "argument list is too long"
# This is the non recursive version
find . -maxdepth 1 -name "*.pdf" -print0 | xargs -0 rm
# To delete files when we receive the message "argument list is too long"
# This is the non recursive version
find . -maxdepth 1 -name "*.pdf" -print0 | xargs -0 rm