批踢踢實業坊
›
精華區
beta
FreeBSD
關於我們
聯絡資訊
返回上層
發信人
gigaftp <
[email protected]
>,
看板
FreeBSD
標 題
Re: vi 如何存第 10 ~ 20 行至另一檔案
發信站
Giga News Service (Wed Apr 16 12:49:48 2003)
轉信站
Ptt!news.ntu!spring!news.nctu!newsfeed.media.kyoto-u.ac.jp!newsgate.cu
※ 引述 edtx (
[email protected]
) 之銘言
> 請教一下, 在 shell 下面 不進入 vi
> 若想存一個文字檔第 n ~ m 行的資料到另一檔案
> 有工具可以做到嗎??
這個簡單,要貼 n~m 行 x = m - n + 1 head -m txtfile | tail -x > outfile -- GIGA WebNews (
http://webnews.giga.net.tw/)