Recursively find files in folder
find .//. ! -name . -print | grep -c //
Count of directories
find . -type d | wc -l
Count of directories (depth 1)
find . -maxdepth 1 -type d | wc -l
Count of files (depth 1)
find . -maxdepth 1 -type f | wc -l
Delete files that are called Zone.Identifier
find . -name "*:Zone.Identifier" -type f -delete
No comments:
Post a Comment