關於資料流> - Linux

By Hardy
at 2011-01-18T21:01
at 2011-01-18T21:01
Table of Contents
大家好
小弟是shell script的新手
想要問一下
我今天如果有一個用sed修改完後的資料
如果下的command是:sed "format" test.txt > test.txt
也就是原來的檔名要一樣
但是這樣寫的話,test.txt最後會變成一片空白
請問應該要怎麼寫才是正確的寫法?
謝謝各位版友的指教
--
~宅男的四個徵兆~
∠□ ○ ! * \○/ ★ (○ ?
╦╦└□ " ○□═ □ □>
║║√√ ╦══╦ ∥ |\
一回家就上PTT 每天想正妹 以當好人為樂 忘記正妹虧欠自己
--
小弟是shell script的新手
想要問一下
我今天如果有一個用sed修改完後的資料
如果下的command是:sed "format" test.txt > test.txt
也就是原來的檔名要一樣
但是這樣寫的話,test.txt最後會變成一片空白
請問應該要怎麼寫才是正確的寫法?
謝謝各位版友的指教
--
~宅男的四個徵兆~
∠□ ○ ! * \○/ ★ (○ ?
╦╦└□ " ○□═ □ □>
║║√√ ╦══╦ ∥ |\
一回家就上PTT 每天想正妹 以當好人為樂 忘記正妹虧欠自己
--
Tags:
Linux
All Comments

By Blanche
at 2011-01-21T04:39
at 2011-01-21T04:39

By John
at 2011-01-24T05:21
at 2011-01-24T05:21

By Tristan Cohan
at 2011-01-28T10:44
at 2011-01-28T10:44

By George
at 2011-01-29T04:16
at 2011-01-29T04:16

By Franklin
at 2011-01-30T08:09
at 2011-01-30T08:09

By Aaliyah
at 2011-01-31T22:55
at 2011-01-31T22:55

By Anthony
at 2011-02-05T19:43
at 2011-02-05T19:43

By Damian
at 2011-02-10T13:22
at 2011-02-10T13:22
Related Posts
makefile 問題

By Dorothy
at 2011-01-18T01:20
at 2011-01-18T01:20
geexbox

By Hedda
at 2011-01-16T23:07
at 2011-01-16T23:07
gcc 4.4.3 的 optimizations 數量??

By Jake
at 2011-01-16T17:47
at 2011-01-16T17:47
Google OS能擊敗Linux的10大理由

By Linda
at 2011-01-16T14:45
at 2011-01-16T14:45
Win7與CentOS 5.5雙系統問題

By Emma
at 2011-01-16T14:34
at 2011-01-16T14:34