Take the 2-minute tour ×


share|improve this question
add comment

1 Answer

Use find tool with maxdepth option:

find LOG-PATH -maxdepth 1 -regextype "posix-egrep" -regex '.*/PS.*' -type f -exec rm {} \;
share|improve this answer
add comment

Your Answer


