LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 943|回复: 0

请教如何在CSH里面读取文件的一行?

[复制链接]
发表于 2007-9-22 23:47:19 | 显示全部楼层 |阅读模式
在用CSH 写的一个SCRIPT中,用sed -n "$num p" file 来读取FILE的第$num line.but I can not get the correct result if this line I will read incluing some special characters ,such as {,/*,*/ and so on. So what is the matter?Can anyone here give me a answer?
   Thanks.
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表