I need to delete recursive subfolders in a single lineFor one subfolder:find folder -name subfolder -exec rm -r {} \;orfind folder -name subfolder -type d -exec rm -r {} \;But in the case of several subfolders in a single line? (subfolder1, subfolder2 or foo, bar, dummy....)Update:I found the solution in stackoverflowfind folder \( -name 'foo*' -or -name 'bar' -or -name 'dummy*' \) -exec rm -r {} \;
delete recursive subfolders with find
linux;command line;find;rm;recursive
What I would do :find folder -name subfolder[0-9]* -exec rm -r {} \;using a globor find folder \( -name 'foo' -o -name 'bar' -o name 'base' \) -exec rm -r {} \;