linux find命令鲜为人知的用法(多目录查找)

 

第一种用法(多目录搜索): 

      # find mediatek/ frameworks/ system/ external/  -iname "*sqlite*.c"

 

 find 其实是可以多个目录查找某个文件的。如上所示。

 

 

第二种用法(多文件搜索+多目录搜索):

 # find mediatek/ frameworks/ system/ external/  -iname "*sqlite*.c" -o -iname "*sqlite*.cpp" -o -iname "*sqlite*.java"
mediatek/frameworks/base/tests/database/src/android/database/sqlite/cts/SQLiteFullExceptionTest.java
mediatek/frameworks/base/tests/database/src/android/database/sqlite/cts/SQLiteProgramTest.java
mediatek/frameworks/base/tests/database/src/android/database/sqlite/cts/SQLiteExceptionTest.java
mediatek/frameworks/base/tests/database/src/android/database/sqlite/cts/SQLiteConstraintExceptionTest.java
mediatek/frameworks/base/tests/database/src/android/database/sqlite/cts/SQLiteStatementTest.java
mediatek/frameworks/base/tests/database/src/android/database/sqlite/cts/SQLiteDoneExceptionTest.java
mediatek/frameworks/base/tests/database/src/android/database/sqlite/cts/SQLiteDiskIOExceptionTest.java
mediatek/frameworks/base/tests/database/src/android/database/sqlite/cts/SQLiteClosableTest.java
mediatek/frameworks/base/tests/database/src/android/database/sqlite/cts/SQLiteOpenHelperTest.java
mediatek/frameworks/base/tests/database/src/android/database/sqlite/cts/SQLiteMisuseExceptionTest.java
mediatek/frameworks/base/tests/database/src/android/database/sqlite/cts/SQLiteQueryBuilderTest.java
mediatek/frameworks/base/tests/database/src/android/database/sqlite/cts/SQLiteCursorTest.java
mediatek/frameworks/base/tests/database/src/android/database/sqlite/cts/SQLiteDatabaseTest.java
mediatek/frameworks/base/tests/database/src/android/database/sqlite/cts/SQLiteAbortExceptionTest.java
mediatek/frameworks/base/tests/database/src/android/database/sqlite/cts/SQLiteDatabaseCorruptExceptionTest.java
mediatek/frameworks/base/tests/database/src/android/database/sqlite/cts/SQLiteQueryTest.java
mediatek/external/sqlite/custom/sqlite3_android_custom.cpp
frameworks/base/core/jni/android_database_SQLiteConnection.cpp
frameworks/base/core/jni/android_database_SQLiteCommon.cpp
frameworks/base/core/jni/android_database_SQLiteGlobal.cpp
frameworks/base/core/jni/android_database_SQLiteDebug.cpp
frameworks/base/core/java/android/database/sqlite/SQLiteDatabaseLockedException.java
frameworks/base/core/java/android/database/sqlite/SQLiteStatementInfo.java
frameworks/base/core/java/android/database/sqlite/SQLiteAccessPermException.java
frameworks/base/core/java/android/database/sqlite/SQLiteCustomFunction.java
frameworks/base/core/java/android/database/sqlite/SQLiteDoneException.java
frameworks/base/core/java/android/database/sqlite/SQLiteMisuseException.java
frameworks/base/core/java/android/database/sqlite/SQLiteProgram.java
frameworks/base/core/java/android/database/sqlite/SQLiteAbortException.java
frameworks/base/core/java/android/database/sqlite/SQLiteDiskIOException.java
frameworks/base/core/java/android/database/sqlite/SQLiteCantOpenDatabaseException.java
frameworks/base/core/java/android/database/sqlite/SQLiteTransactionListener.java
frameworks/base/core/java/android/database/sqlite/SQLiteDebug.java
frameworks/base/core/java/android/database/sqlite/SQLiteConstraintException.java
frameworks/base/core/java/android/database/sqlite/SQLiteCursorDriver.java
frameworks/base/core/java/android/database/sqlite/SQLiteBindOrColumnIndexOutOfRangeException.java
frameworks/base/core/java/android/database/sqlite/SqliteWrapper.java
frameworks/base/core/java/android/database/sqlite/SQLiteOutOfMemoryException.java
frameworks/base/core/java/android/database/sqlite/SQLiteDatabaseConfiguration.java
frameworks/base/core/java/android/database/sqlite/SQLiteCursor.java
frameworks/base/core/java/android/database/sqlite/SQLiteSession.java
frameworks/base/core/java/android/database/sqlite/SQLiteQuery.java
frameworks/base/core/java/android/database/sqlite/SQLiteFullException.java
frameworks/base/core/java/android/database/sqlite/SQLiteClosable.java
frameworks/base/core/java/android/database/sqlite/SQLiteGlobal.java
frameworks/base/core/java/android/database/sqlite/SQLiteStatement.java
frameworks/base/core/java/android/database/sqlite/SQLiteReadOnlyDatabaseException.java
frameworks/base/core/java/android/database/sqlite/SQLiteQueryBuilder.java
frameworks/base/core/java/android/database/sqlite/SQLiteConnectionPool.java
frameworks/base/core/java/android/database/sqlite/SQLiteOpenHelper.java
frameworks/base/core/java/android/database/sqlite/SQLiteDatabase.java
frameworks/base/core/java/android/database/sqlite/SQLiteBlobTooBigException.java
frameworks/base/core/java/android/database/sqlite/SQLiteConnection.java
frameworks/base/core/java/android/database/sqlite/SQLiteException.java
frameworks/base/core/java/android/database/sqlite/SQLiteDatatypeMismatchException.java
frameworks/base/core/java/android/database/sqlite/SQLiteTableLockedException.java
frameworks/base/core/java/android/database/sqlite/SQLiteDatabaseCorruptException.java
frameworks/base/core/java/android/database/sqlite/SQLiteDirectCursorDriver.java
frameworks/base/core/tests/coretests/src/android/database/sqlite/SQLiteCursorTest.java
frameworks/opt/mms/src/java/com/google/android/mms/util/SqliteWrapper.java
frameworks/ex/common/java/com/android/common/content/SQLiteContentProvider.java
external/sqlite/dist/sqlite3.c
external/sqlite/dist/orig/sqlite3.c
external/sqlite/android/sqlite3_android.cpp
external/webkit/Source/WebCore/storage/IDBSQLiteBackingStore.cpp
external/webkit/Source/WebCore/platform/sql/chromium/SQLiteFileSystemChromiumPosix.cpp
external/webkit/Source/WebCore/platform/sql/chromium/SQLiteFileSystemChromium.cpp
external/webkit/Source/WebCore/platform/sql/chromium/SQLiteFileSystemChromiumWin.cpp
external/webkit/Source/WebCore/platform/sql/SQLiteFileSystem.cpp
external/webkit/Source/WebCore/platform/sql/SQLiteTransaction.cpp
external/webkit/Source/WebCore/platform/sql/SQLiteAuthorizer.cpp
external/webkit/Source/WebCore/platform/sql/SQLiteDatabase.cpp
external/webkit/Source/WebCore/platform/sql/SQLiteStatement.cpp
external/javasqlite/src/main/native/sqlite_jni.c

 

 

 

 

=======================

此文以后会不断更新 有关于find命令的 特殊但又很实用的用法。

 

  • 2
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值