find指令
[hadoop@localhost 桌面]$ find . -name "*.sh" -print
./sh10.sh
./scripts/sh01.sh
./scripts/sh02.sh
./sh03.sh
[hadoop@localhost 桌面]$ find . -iname "*.sh" -print
./sh10.sh
./scripts/sh01.sh
./scripts/sh02.sh
./sh12.Sh
./sh03.sh
[hadoop@localhost 桌面]$ find . \( -name "*.txt" -o -name "*.sh" \) -print
./sh10.sh
./regular_express.txt
./scripts/sh01.sh
./scripts/sh02.sh
./out.txt
./sh03.sh
正则表达式
[hadoop@localhost 桌面]$ find . ! -name "*.sh" -print
.
./regular_express.txt
./文档软件
./文档软件/hadoop-1.1.2-1.i386.rpm
./文档软件/鸟哥的Linux私房菜 基础学习篇(第三版).pdf
./文档软件/jdk-6u13-linux-i586.zip
./文档软件/supmax800_nt.zip
./scripts
./scripts/.sh03.sh.swp
./add
./google-chrome.desktop
./netbeans-7.3.1.desktop
./out.txt
./sh12.Sh
./.ttput.swp
./jdk-6u13-linux-i586.bin
./add~
./passwd
find . -maxdepth 3 -type f -print
find . -mindepth 3 -type f -print
find . -type f/l/d/c/b/s/p
[hadoop@localhost 桌面]$ find . -name "*.sh" -print
./sh10.sh
./scripts/sh01.sh
./scripts/sh02.sh
./sh03.sh
[hadoop@localhost 桌面]$ find . -iname "*.sh" -print
./sh10.sh
./scripts/sh01.sh
./scripts/sh02.sh
./sh12.Sh
./sh03.sh
[hadoop@localhost 桌面]$ find . \( -name "*.txt" -o -name "*.sh" \) -print
./sh10.sh
./regular_express.txt
./scripts/sh01.sh
./scripts/sh02.sh
./out.txt
./sh03.sh
正则表达式
[hadoop@localhost 桌面]$ find . ! -name "*.sh" -print
.
./regular_express.txt
./文档软件
./文档软件/hadoop-1.1.2-1.i386.rpm
./文档软件/鸟哥的Linux私房菜 基础学习篇(第三版).pdf
./文档软件/jdk-6u13-linux-i586.zip
./文档软件/supmax800_nt.zip
./scripts
./scripts/.sh03.sh.swp
./add
./google-chrome.desktop
./netbeans-7.3.1.desktop
./out.txt
./sh12.Sh
./.ttput.swp
./jdk-6u13-linux-i586.bin
./add~
./passwd
find . -maxdepth 3 -type f -print
find . -mindepth 3 -type f -print
find . -type f/l/d/c/b/s/p