我有一個文本文件名爲 「文件1」 包含以下數據:UNIX grep命令
apple
appLe
app^e
app\^e
現在給出的命令是:
1.)grep app[\^lL]e file1
2.)grep "app[\^lL]e" file1
3.)grep "app[l\^L]e" file1
4.)grep app[l\^L]e file1
output in 1st case : app^e
output in 2nd case :
apple
appLe
app^e
output in 3rd case :
apple
appLe
app^e
output in 4th case :
apple
appLe
app^e
爲什麼這麼..?
請幫忙..!
你的問題到底是什麼? – gnur 2011-02-03 17:09:31
你期待輸出是什麼? – 2011-02-03 17:09:39