※ 引述《cantakeyeofu.bbs@ptt.cc (不看你的眼)》之銘言:
: (剛開始接觸linux沒幾天@@)
: 如果我正在檢視一個很大的文字檔 假設叫做temp.txt
: 現在我想要把裡面所有有 hello 這個字元的那幾行都找出來
: 並且 寫入到另一個檔案temp2.txt去
: 請問我這樣寫錯在哪裡呢? 謝謝
: grep 'hello'temp.txt > temp2.txt
你的輸出結果跟你預期的有什麼不一樣嗎?
希望你的 "hello" 跟 temp.txt 之間有空格 @_@
--
Tian Jen,Li
Department of Computer Science and Software Engineering
Ming Chuan University
http://www.csie.mcu.edu.tw/~skyman
--
╔═══╗ 記得 ╭──── bbs.csie.mcu.edu.tw ───────────╮
║ 神話 ║ 來逛逛!│ The First IPv6 Ready BBS 歡迎各位的光臨! │
╚═══╝● < From: 163.25.148.41 │
﹊ ﹨︽ ╰──────────────────────────╯