Linuxshell裡對文字檔斷行 - LinuxOlivia · 2011-12-15Table of ContentsPostCommentsRelated Posts 請問在shell中,如何對一個文字 對其中的每一行以固定長度斷行? 我查了awk和printf 還是悟不出來 感謝! -- LinuxAll CommentsQuanna2011-12-16直接用(或shell間接叫用) php 或 python 之類的語言看你有裝個哪個或擅長哪個,perl或C/Java檔然也可以Anthony2011-12-17vi -> gqip (看你有沒有悟性了)George2011-12-17fold -w 80 foo.txt 試試... 不過對 UTF-8 處理不是很好Quintina2011-12-18fmt ? http://en.wikipedia.org/wiki/FmtOlga2011-12-22非常感謝大家!看起來最快解法是fold和fmt, vi的我查到是用gq和ip組合,研究中,有提示嗎? :pRelated Posts[姬] HIME 討論版上線!Can't type chinese筆電ALSA:semephore not ready在區網列印到Linux CUPS失敗QWinFF-易用易自訂的影音轉檔軟體
All Comments