find

find

英語單詞
find是linux命令,它将檔案系統内符合expression的檔案列出來。你可以指要檔案的名稱、類别、時間、大小、權限等不同資訊的組合,隻有完全相符的才會被列出來。find根據下列規則判斷path和expression,在命令列上第一個-(),!之前的部分為path,之後的是expression。還有指DOS命令find,Excel函數find等。
  • 中文名:
  • 外文名:
  • 别名:
  • 英文名:find
  • 解釋:是linux 命令
  • 相關:expression

分類

linux 命令 find

名稱:find

用法:find path -option [ -print ] [ -exec -ok command ] {} ;

使用說明:

expression 中可使用的選項有二三十個之多,在此隻介紹最常用的部分。

-exec:對搜索的結構指令指定的shell命令。注意格式要正确:"-exec 命令 {} ;"。注意“{}” 與;之間有空格。

-mount,-xdev : 隻檢查和指定目錄在同一個檔案系統下的檔案,避免列出其它檔案系統中的檔案

-amin -n : 在最近的 n 分鐘内被讀取過

-amin +n : 在 n 分鐘之前被讀取過

-anewer file : 比檔案 file 更晚被讀取過的檔案

-atime -n : 在最近的 n 天内讀取過的檔案

-atime +n : 在 n 天前讀取過的檔案

-cmin -n : 在最近的 n 分鐘内被修改過

-cmin +n : 在 n 分鐘前被修改過

-cnewer file :比檔案 file 更新的檔案

-ctime -n : 在最近的 n 天内修改過的檔案

-ctime +n : 在 n 天前修改過的檔案

-empty : 空的檔案-gid n or -group name : gid 是 n 或是 group 名稱是 name

-ipath p,-path p : 路徑名稱符合 p 的檔案,ipath 會忽略大小寫

-name name,-iname name : 檔案名稱符合 name 的檔案。iname 會忽略大小寫

-size n[cwbkMG] : 檔案大小 為 n 個由後綴決定的數據塊。其中後綴含義為:

b: 代表 512 位元組的區塊(如果用戶沒有指定後綴,則默認為 b)

c: 表示字節數

k: 表示 kilo bytes (1024字節)

w: 字 (2字節)

M:兆字節(1048576字節)

G: 千兆字節 (1073741824字節)

-type c : 檔案類型是 c 的檔案。

d: 目錄

c: 字型裝置檔案

b: 區塊裝置檔案

p: 具名貯列

f: 一般檔案

l: 符号連結

s: socket

-pid n : process id 是 n 的檔案

你可以使用 () 将運算式分隔,并使用下列運算。

exp1 -and exp2

! expr

-not expr

exp1 -or exp2

exp1,exp2

範例:

将目前目錄及其子目錄下所有延伸檔名是c的檔案列出來。

#find . -name "*.c"

将目前目錄其其下子目錄中所有一般檔案列出

# find . -ftypef

将目前目錄及其子目錄下所有最近 20天内更新過的檔案列出

# find . -ctime -20

查當前目錄下的所有普通文件

#find . -type f -exec ls -l {} ;

DOS 命令 find

名稱:find

作用:在文件中搜索字符串。

用法:FIND [/V] [/C] [/N] [/OFF[LINE]] "string" [[drive:][path]filename[ ...]]

參數:

/V 顯示所有未包含指定字符串的行。

/C 僅顯示包含字符串的行數。

/N 顯示行号。

/I 搜索字符串時忽略大小寫。

/OFF[LINE] 不要跳過具有脫機屬性集的文件。

"string" 指定要搜索的文字串,

[drive:][path]filename

指定要搜索的文件。

如果沒有指定路徑,FIND 将搜索鍵入的或者由另一命令産生的文字。

Excel 函數 find

Find函數用來對原始數據中某個字符串進行定位,以确定其位置。Find函數進行定位時,總是從指定位置開始,返回找到的第一個匹配字符串的位置,而不管其後是否還有相匹配的字符串。

使用語法

FIND(find_text,within_text,start_num)

Find_text 是要查找的文本。

Within_text 是包含要查找文本的文本。

Start_num 指定開始進行查找的字符。within_text 中的首字符是編号為 1 的字符。如果忽略 start_num,則假設其為 1。

注意

使用 start_num 可跳過指定數目的字符。例如,假定使用文本字符串“AYF0093.YoungMensApparel”,如果要查找文本字符串中說明部分的第一個“Y”的編号,則可将 start_num 設置為 8,這樣就不會查找文本的序列号部分。FIND 将從第 8 個字符開始查找,而在下一個字符處即可找到 find_text,于是返回編号 9。FIND 總是從 within_text 的起始處返回字符編号,如果 start_num 大于 1,也會對跳過的字符進行計數。

如果 find_text 是空文本 (),則 FIND 則會返回數值1。

Find_text 中不能包含通配符。

如果 within_text 中沒有 find_text,則 FIND返回錯誤值#VALUE!。

如果 start_num 不大于 0,則 FIND返回錯誤值#VALUE!。

如果 start_num 大于 within_text 的長度,則 FIND 返回錯誤值#VALUE!。

應用示例

A2=“廣東省東莞市東城區…”,A3=“黑龍江省哈爾濱市…”; 對含有不同地方的數據,利用“Find”函數,非常簡單地确定“省”出現的位置。

詳細解釋

公式“=FIND(省,A2)”中,“省”表示要查找的文本為“省”,(實際使用中,也可以很長的一串字符)。要找查找的對象是A2單元格的内容“廣東省東莞市東城區…”,因為沒有指定起始位置,所以系統從第一位開始。返回的“3”,表示“省“字在第三位。

而公式“=FIND(省,A3)”中,“黑龍江省哈爾濱市…”則返回4。

與Find類似,Search函數也有相同的功能。它們的區别是,Find區分大小寫,而Search不分大小寫(當被查找的文本為英文時)。

另外,在Excel中,對文本進行處理的很多函數都提供了一個特别用來處理雙字節字符(如中文,日文)的函數,一般是在原函數後加“B”,如FIND,就有一個FINDB。LEFT,相對應的就是LEFTB等。其實,我們在實際應用中,使用不帶“B”的函數就足夠了。如果你想使用帶“B”的函數,則要特别注意,尤其是在組合運用函數時,其中一個函數使用帶“B”的形式,則其它有帶“B”形式的函數,全部都要使用其帶“B”的形式,否則結果極可能是錯的。

find的用法歸納

⒈ 用作及物動詞,主要用于下列句型:⑴ 後接名詞或代詞。如:Where did you find it? 你是在什麼地方找到它的?You’d better try and find another job. 你最好設法另找一份工作。You’ll find the answers at the back of the book. 在書後你可找到答案。⑵ 後接複合結構 (名詞的複合結構、形容詞的複合結構、現在分詞的複合結構、過去分詞的複合結構、不定式的複合結構等等)。如:We find the story (to be) very interesting. 我們發現這個故事很有趣。I found the boy hiding behind the door. 我發現這個小男孩躲在門後。He found the city much changed. 他發現這個城市發生了巨大的變化。I didn’t find her an easy woman to workwith. 我發現她不好共事。

注意:後接不定式的複合結構時,主要是 to be,偶爾可見 to do型。另外有時也接帶先行詞 it 的複合結構。如:

He found it hard to finish the work in time. 他發現要及時完成這項工作很困難。⑶ 後接that-後接從句。如:Now he found that he could relax a little. 現在他發現可以放松一下了。Newton found that all masses attract each other.牛頓發現所有物質都互相吸引。He found that she was a cheat. =He found her to be a cheat. 他發現她是個騙子。⑷ 可以帶雙賓語,雙賓語交換位置時用介詞for。如:Please find me my key. =Please find my key for me. 請給我找到我的鑰匙。試比較。如:We found him a good teacher. 我們發現他是位好老師 (我們發現他是位好老師複合賓語,=We found that he was a good teacher)。We found him a good job. 我們為他找了份好工作 (雙賓語,=We found a goodjob for him)。

⒉ 用于find oneself,表示“發現自己 (處于某種狀态)”或“不知不覺或突然…”。如:Suddenly I found myself face to face withthe man. 突然我發現自己面對面跟這個人站在一起。突然我發現自己面對面He returnedto England to find himself famous. 他回到英國,發現自己竟出了名。

⒊ 注意區别 find 與find out:前者指偶然地“發現”、或通過實驗而“發現”、或通過尋找而“找到”等 (參見以上各例);而後者則指通過調查或觀察詢問等而“查明情況或事實真相”。如:

” We must find out the truth of the matter. 我們必須查明事實真相。We must find out where he lives. 我們必須查明他住在什麼地方。有時find out中的out可以省略。如:Please find (out) what time they are coming. 請了解一下他們什麼時候來。4. 是終止性動詞,一般不與一段時間連用。如:正:I found it a long time ago. 這個東西我找到很久了。誤:I (have) found it

c++函數

c++函數 std::Find

需要頭文件: #include [1]

int Find(TCHARch) const;

int Find(LPCTSTRlpszSub) const;

int Find(TCHARch,intnStart) const;

int Find(LPCTSTRpstr,intnStart) const;

Parameters

ch

要查找的字符.

lpszSub

要查找的子字符串.

nStart

要查找的字符或子串首字符的位置索引.

pstr

被查找的父字符串.

Return Value

返回被查找字符(串)的位置索引; 未找到則返回-1.

函數參數

函數中的參數是叠代器指向的值 不是其在容器中的位置

Example

// First example demonstrating

//CString::Find(TCHAR ch)

String s("abcdef");

ASSERT(s.Find('c') == 2);

ASSERT(s.Find("de") == 3);

// Second example demonstrating

// String::Find(TCHAR ch,int nStart)String str("The stars are aligned");

int n = str.Find('e',5)

;ASSERT(n == 12);

在 while 循環中,count 變量會通過自增來記錄 five 在 vector 容器 numbers 中的發現次數。循環表達式調用 find(),在 start_iter 和 end_iter 定義的範圍内查找 five。find() 返回的叠代器被保存在 start_ter 中,它會覆蓋這個變量先前的值。最初,find() 會搜索 numbers 中的所有元素,因此 find() 會返回一個指向 five 的第一個匹配項的叠代器。

英語

英漢釋義

及物動詞vt.

1. 找到,尋得;發現;碰上[O1][+(that)]

Newton found that all masses attract each other.

牛頓發現所有的物質都相互吸引。

I've found the book I was hunting for.

我已找到了我曾搜尋的那本書。

⒉ 發現...處于某種狀态[O][O2][O4][O7][O8][O9][+(that)]

You will find it a difficult book.

你會覺得這是本難以讀懂的書。

I found the job boring.

我發現這工作令人厭煩。

He found the door closed.

他發現門關着。

We found him waiting for us at the station.

我們看到他在車站等我們。

The day I got back,I found a note on my desk.

我回家的那天發現書桌上有張字條。

⒊ (物體)達到;自然地形成

Rivers find their way to the sea.

江河流入大海。

⒋ (設法)得到

I hope you will find time to come see me some afternoon.

我希望哪天下午你會有時間來看我。

⒌ 知道...是有的;見到...存在[W][O][O4]

You won't find many students learning Latin now.

現在你見不到很多學生學習拉丁文。

This kind of bird is only found in Asia.

這鳥兒隻有亞洲有。

⒍ 裁決;判定[W][O8]

The court found him guilty.

法庭判他有罪。

⒎ 供應,供給

The father has to find food and clothing for his children.

父親得供給孩子衣食。

An uncle found the money for his education.

一位叔叔出錢供他讀書。

不及物動詞vi.

1. 裁決,判決

The jury found against the defendant.

陪審團作出了對被告不利的判決。

⒉ 發現獵物

名詞n.

1. 發現

That was a great archaeological find.

那是一次了不起的考古發現。

⒉ 發現物

find

1. 查找

⒉ 尋找,發現

find v. 尋找,發現

find的用法與搭配

1.表示“找到”,其後可接雙賓語;若雙賓語交換位置用介詞for引出間接賓語。如:

Can you find me a hotel?=Can you find a hotel for me? 你能給我找一家旅館嗎?

We found him a good job.=We found a good job for him. 我們為他找了份好工作。

比較下面一句(found 後為複合賓語):

We found him a good teacher. (=We found that he was a good teacher.) 我們發現他是位好老師。

2.表示“發現”時,其後可接各種形式的複合結構:

(1)賓語+名詞作賓語補足語。如:

You’ll find it a difficult book. 你會發現它是一本難懂的書。

有時可在賓語補足語前加上to be。如:

You’ll find it to be a difficult book. 你會發現它是一本難懂的書。

(2)賓語+形容詞作賓語補足語。如:

He found the room empty. 他發現房間是空的。

I found the book easy. 我覺得這書讀起來比較容易。

有時可在賓語補足語前加上to be。如:

We find the story (to be) very interesting. 我們發現這個故事很有趣。

(3)賓語+副詞作賓語補足語。如:

Did you find her in? 你發現她在家嗎?

I went to her house but I found her out. 我到她家發現她不在家。

用作賓語補足語的副詞通常隻能是in,out,up,down,upstairs,downstairs等表示處所的副詞小品詞,而不能是其他普通副詞。

(4)賓語+不定式作賓語補足語。如:

He found the patient to be a small boy. 他發現病人是一個小男孩。

用作賓語補足語的不定式通常為to be(且通常可以省略),但當find用于被動語态時,可以用其他動詞。如:

Her blood was found to contain poison. 她的血液裡被發現有毒。

He was found to have helped himself to public money. 他被發現挪用了公款。

(5)賓語+現在分詞作賓語補足語。如:

I found him lying on the floor. 我發現他躺在地闆上。

I found him standing at the door. 我發現他正站在門口。

(6)賓語+過去分詞作賓語補足語。如:

He found the door locked. 他發現門鎖上了。

He found the city much changed. 他發現這個城市發生了巨大的變化。

(7)賓語+介詞短語作賓語補足語。如:

We found her in tears. 我們發現她在哭泣。

We found the map quite out of date. 我們發現這地圖已完全過時。

另外還要注意“find+形式賓語it+賓語補足語”結構。如:

I find it easy to get on with her. 我發現她很容易相處。

He found it easy to earn extra money. 他發現賺點外快很容易。

I found it interesting being back at school again. 我發現再次回到學校很有意思。

3.其後有時可接 that從句。如:

I found that the book was very interesting. 我發現這本書很有趣。

They found that he was no longer working there. 他們發現他已經不在那兒工作了。

He found (that) no one could answer his question. 他發現沒有人能回答他的問題。

When he arrived,he found that she had gone. 當他到達時,他發現她已經走了。

後接 that從句時,隻要句型适合且不影響原意,有時可轉換成複合結構,如上面的前面兩句可轉換為:

I found the book very interesting.

They found him no longer working there.

但是,上面的最後兩句不适合這種轉換,因為從句中用了情态動詞或完成時态。

英英釋義

n.

a productive insight

同義詞: discovery breakthrough

the act of discovering something

同義詞: discovery uncovering

v.

come upon, as if by accident; meet with

"We find this idea in Plato"

同義詞: happen chance bump encounter

discover or determine the existence, presence, or fact of

同義詞: detect observe discover notice

come upon after searching; find the location of something that was missed or lost

"Did you find your glasses?"; " I cannot find my gloves!"

同義詞: regain

establish after a calculation, investigation, experiment, survey, or study

"find the product of two numbers"

同義詞: determine find out ascertain

come to believe on the basis of emotion, intuitions, or indefinite grounds

"I find him to be obnoxious"

同義詞: feel

perceive or be contemporaneous with

同義詞: witness see

get something or somebody for a specific purpose

同義詞: line up get hold come up

make a discovery, make a new finding

同義詞: discover

make a discovery

同義詞: discover

obtain through effort or management

decide on and make a declaration about

"find someone guilty"

同義詞: rule

receive a specified treatment (abstract)

"These aspects of civilization do not find expression or receive an interpretation"

同義詞: receive get obtain incur

perceive oneself to be in a certain condition or place

get or find back; recover the use of

同義詞: recover retrieve regain

succeed in reaching; arrive at

accept and make use of one's personality, abilities, and situation

"My son went to Berkeley to find himself"

同義詞: find oneself

專輯介紹

基本信息

專輯名:Find

歌手::SS501

Find 封面

發行時間::2008年07月23日

地區::韓國

語言::韓語

發行公司:DSP Entertainment

專輯曲目:

01.與你呼吸

02.你是我的天堂

03.FIND

04.謝謝你(vocal 賢重)

05.你是我的天國(inst.)

06.FIND (inst.)

07.我愛你X5

08.謝謝你(accoustic ver.)

專輯介紹

搜狐娛樂訊 男子5人組合SS501的金賢重發表了單曲。正在日本活動中的SS501,為了這段空白期令不少國内的歌迷們覺得可惜,于是發表了單曲專輯《你是我的天國》。接着4日金賢重又發表了第二張單曲《謝謝》。

特别是,這次單曲計劃的結尾的《FIND》是以具有強烈号召力的聲音來吸引歌迷。并且,這次專輯收錄了MBC”我們結婚了”中金賢重&;皇甫夫婦的愛的主題曲,還有一首是金賢重的SOLO歌曲《謝謝你》最初的版本和Acoustic版本。

SS501數碼單曲專輯以總共8首歌曲和30多張的寫真集構成,《FIND》最初計劃限定2萬張,但是7月24日專輯發行之前在預定的地方全部都斷貨,所以追加了1萬張。

《Find》歌詞

(中文翻譯)

賢重)對我來說 對我來說 也變的誠懇的心

讓我怎麼辦 讓我怎麼辦

亨俊)那麼渺茫 那麼渺茫的愛情

絕對放棄不了的真心 就是你

永生)要站在這裡找回你的笑容

讓你傷心而流下的眼淚 我會幫你全部抓住

不會讓我忘記你那透明的愛情

一定要重新找回我們的愛

奎鐘) 如果沒有你 如果沒有你 我還能做的很好麼?

連做夢都一向是兩個人來着

政玟) 像你的 像你的時間

是絕對無法放棄的迷戀的真心

永生)要站在這裡找回你的笑容

讓你傷心而流下的眼淚 我會幫你全部抓住

不會讓我忘記你那透明的愛情

一定要重新找回我們的愛

在空洞的愛裡 燃燒的悲傷

很清楚的知道還無法在我心中把你移出

直到流下的眼淚把剩下的記憶也淹沒

我的愛必須隻找你

上一篇:燕之坊

下一篇:360一鍵root工具

相關詞條

相關搜索

其它詞條