solaris下grep用法,该怎么处理
solaris下grep用法
#! /usr/bin/csh
a="/home/aa/1.txt"
s=`echo $a | egrep "[0-9]\+"`
echo $s
在linux下可以正常使用 显示 1
但是在solaris下却没有用,solaris下的grep应该怎么用
------解决方案--------------------
不用谢。。。我也是在Solaris执行的
#! /usr/bin/csh
a="/home/aa/1.txt"
s=`echo $a | egrep "[0-9]\+"`
echo $s
在linux下可以正常使用 显示 1
但是在solaris下却没有用,solaris下的grep应该怎么用
------解决方案--------------------
不用谢。。。我也是在Solaris执行的