我有一句台词
MOD record for (Batch Upload Base Interest Slab Version: Online Services) Appl: GU我需要打印批量上传基本利息板版本。
Starting string (
End string :我如何实现这一点。请帮帮忙
发布于 2013-06-25 19:46:47
awk可以做到
awk -F"[(:]" '{print $2}'-F"[(:]"将分隔符设置为:或( (快乐的脸!)。测试
$ echo "MOD record for (Batch Upload Base Interest Slab Version: Online Services) Appl: GU" | awk -F"[:(]" '{print $2}'
Batch Upload Base Interest Slab Version发布于 2013-06-25 19:47:56
试试这个..。
$ input=(Batch Upload Base Interest Slab Version: Online Services) Appl:
$ startString=${x#*(}
$ outputstring=${y%:*}
$ echo $outputstringhttps://stackoverflow.com/questions/17296410
复制相似问题