推 storyofwind: 你的某一行是某一特定字串還是特定第幾行? 05/27 01:25
→ storyofwind: sorry我發現我問了一個很蠢的問題,應該是特定行數XD 05/27 01:26
→ qingmo: 這個我只能想到按鍵精靈。。 05/27 11:30
→ dickyman: 特定第幾行... GOOGLE都只找到程式碼... 05/27 16:08
→ eva19452002: 這種太過特殊的需求,我都會寫支小程式解決 05/27 17:56
推 wuliou: 你這種罕見需求多半要自己寫script解的 05/27 20:07
推 tools241: Google[windows下安裝 UnxUtils -- 仿 unix/linux 命令] 05/28 12:29
→ tools241: 假設(利用grep.exe及sed.exe)找file的第3行: 05/28 12:52
→ tools241: grep "." -n file |grep "^3:" |sed -e "s/^[0-9]*://" 05/28 12:53
→ tools241: 說明:grep "^" -n file 會在每一行前加 行號: 05/28 13:01
→ tools241: grep "^3:" 會找到第行;利用sed將開頭的 行號: 去掉 05/28 13:02