2014-01-17 76 views
0

我有一個字符串作爲 echo「abc。$ {build-id}」>> new.txt 現在,在這個build-id中我想提取內部版本號。 請幫助我知道的正則表達式和命令' $ {打造-ID}就像abc_001,我需要提取001Shell命令提取號碼

回答

0

一行溶液

echo ${build-id} | cut -d'_' -f2