切割文字檔案,有沒有sed以外的方法? - Linux

By Sierra Rose
at 2010-10-15T17:23
at 2010-10-15T17:23
Table of Contents
如果我想把一個有一萬行的文字檔案切隔成十個一千行
直覺方法是
sed -n '1,1000p' a.txt > 1.txt
sed -n '1001,2000p' a.txt > 2.txt
....以此類推
請問有更好的方式嗎?
感謝!
--
Tags:
Linux
All Comments

By Suhail Hany
at 2010-10-18T10:54
at 2010-10-18T10:54

By Suhail Hany
at 2010-10-21T08:16
at 2010-10-21T08:16
Related Posts
請問linux有哪些簡單的系統管理套件

By Bethany
at 2010-10-15T16:55
at 2010-10-15T16:55
couldn't find package

By Kyle
at 2010-10-15T16:17
at 2010-10-15T16:17
偽裝成 .. 的木馬資料夾

By Donna
at 2010-10-15T14:01
at 2010-10-15T14:01
如何設定qt creator 2.0.1能開發KDE 程式?

By Irma
at 2010-10-15T12:07
at 2010-10-15T12:07
emesene 2.0 (PPA-20100920)問題

By Blanche
at 2010-10-15T07:43
at 2010-10-15T07:43