精華區beta FreeBSD 關於我們 聯絡資訊
每兩行就要搞掉一行? 試看看這個,把後面的 /etc/passwd 改成要處理的檔名。 awk '{if (FNR % 2) {print $0}}' /etc/passwd 鐵漢柔情 <[email protected]> wrote: > 請問如何讓一個具大的文字檔每兩行就刪除一行,在Unix下要怎麼下指令, -- * Gea-Suan Lin (public key: http://infomath.nctu.edu.tw/~gslin/key.txt) * If you cannot convince them, confuse them. -- Harry S Truman