centos linux如何使用find排除文件夹或目录查找?
网友回复
find 搜索目录 !排除目录可写多个,示例如下:
#!/bin/bash find /data/ ! -path "/proc/*" ! -path "/home/*" -type f -size +500M | sort -rh|xargs ls -lh | awk '{ print $9 ": " $5 }'
centos linux如何使用find排除文件夹或目录查找?
网友回复
find 搜索目录 !排除目录可写多个,示例如下:
#!/bin/bash find /data/ ! -path "/proc/*" ! -path "/home/*" -type f -size +500M | sort -rh|xargs ls -lh | awk '{ print $9 ": " $5 }'