linux命令怎么返回一个文件中指定的文本

sh/bash/dash/ksh/zsh等Shell脚本
回复
dengfangwen
帖子: 9
注册时间: 2010-11-21 22:43

linux命令怎么返回一个文件中指定的文本

#1

帖子 dengfangwen » 2014-02-07 22:14

比如文件中有下列文字:

the number is 100;

linux命令如何实现只返回100
5tn3we
帖子: 1
注册时间: 2009-07-22 0:24

Re: linux命令怎么返回一个文件中指定的文本

#2

帖子 5tn3we » 2014-02-07 22:59

用 find | grep 组合命令,find 命令的参数我不记得了。。。自己看一下 man 吧~
头像
eexpress
帖子: 58428
注册时间: 2005-08-14 21:55
来自: 长沙

Re: linux命令怎么返回一个文件中指定的文本

#3

帖子 eexpress » 2014-02-07 23:19

你这啥条件都没啊。100能代表啥特征?
● 鸣学
回复