看板 Linux 關於我們 聯絡資訊
※ 引述《guessi (沒)》之銘言: : echo "x [ 12, 34 ]"|sed 's/[^0-9]/ /g'|awk '{print$1==$2?"equal":"not equal"}' echo "asdfwer [ 1234, 3456 ]" | sed 's:[^0-9]*\([0-9]*\)[^0-9]*\([0-9]*\)[^0-9]*:\1 -eq \2:' | xargs test || echo 'not eq' -- In heaven, all the interesting people are missing. -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 108.66.116.155
firejox:我都忘了有test這好東西了...Orz 10/23 18:25
ptthidebear:感謝大大 最近沒啥時間測試東西Orz 晚點來試試看!!! 10/24 08:11