当前位置: 代码迷 >> Solaris >> solaris上grep用法
  详细解决方案

solaris上grep用法

热度:2413   发布时间:2013-02-26 00:00:00.0
solaris下grep用法
#! /usr/bin/csh
a="/home/aa/1.txt"
s=`echo $a | egrep "[0-9]\+"` 
echo $s

在linux下可以正常使用 显示 1
但是在solaris下却没有用,solaris下的grep应该怎么用

------解决方案--------------------------------------------------------
不用谢。。。我也是在Solaris执行的