Sprinkler Systems Uhaul move Lawn care Roses and trees Ford Parts Chrysler Parts Lake Powell New IPod Touch Apps New IPhone Apps IPhone Apps IPad Information IPad Apps Android APPS Android Games APPS Android Systems Android Tablets APPS and Beyond Smartphone Apps Smartphone Games Apps Repair and Tools Tablet PC Car Sharing Car Leasing Tabler Pc Fly Fishing Toyota Cars Vacation Rentals Stock market NYSE SSE Stock Freight & Shipping News Gluten Lactose Gout My Coupon Life Campgrounds Check Outdoor Kitchen Design and Redoo Bath Remodeling Palm Springs Las Vegas Vacation Tipps Lake Powell Boating Homes for lease Electric and green Car Blog Pearls and diamonds Whatsapp and forget SMS Blog, What is Whatsapp App Renovation Blog Condo for rent or lease Solar Panel Solar Energie Sun Power Blog Truck for Sale Reconstruction Blog
Computers » cn.bbs.comp.linux » shell编程--读取文件的问题
shell编程--读取文件的问题 [message #194292] Mi, 19 April 2006 08:02
lilopg.bbs  
请问如何按行读取文件,


--

代理个性礼品定制 ,只有你想不到的,没有我做不到的

尼卡天津大学唯一代理。

享受校园价格。

QQ:40010829,欢迎咨询

http://www.51show.net.cn/10/xyjg.asp
※ 来源:.天大求实BBS http://bbs.tju.edu.cn [FROM: 202.113.13.188]
Re: shell编程--读取文件的问题 [message #194296 ] Mi, 19 April 2006 08:28
wishing.bbs  
打印第五行

wishing [at] wishing:~/test$ awk "{if( NR==5) print}" int80.c
#include "linux/kernel.h"
wishing [at] wishing:~/test$ sed -n 5p int80.c
#include "linux/kernel.h"
wishing [at] wishing:~/test$

【 在 lilopg.bbs [at] bbs.tju.edu.cn.no.spam (我有一所大房子!!) 的大作中提到: 】
: 请问如何按行读取文件,
--

※ 来源:·饮水思源 bbs.sjtu.edu.cn·[FROM: 220.248.0.189]
Vorheriges Thema:杀人凶手安排警察到家里“调查”?
Nächstes Thema:一个贪吃蛇的程序--Gtk练手
Gehe zu:
  


aktuelle Zeit: Sa Mai 26 12:05:43 CEST 2012

Insgesamt benötigte Zeit, um die Seite zu erzeugen: 0,02559 Sekunden
.:: Startseite - Hinweise - Impressum ::.

Powered