Linux符合條件的字串數量 script - LinuxKelly · 2008-06-15Table of ContentsPostCommentsRelated Posts 今天我有一個需求 在資料夾下會有 abc1234 abc4321 abc6341 三個檔 如何撰寫script 知道符合abc*這樣條件的「3個」呢? 找不到合適的方法 請教大家,感謝 ><" -- LinuxAll CommentsQuanna2008-06-19ls| grep '^abc' | cat -n | tail -n1 | awk '{print $1}'Lily2008-06-23grep可用egrep找更複雜的東西Margaret2008-06-25嗯 不錯的方法 可以用了 感謝您~~Related Posts無法進入桌面Firefox’s Download Day - 六月十七日一起創世界紀錄如何指定某程式只用某個CPU?本機流量統計的軟體關於 Eee PC Linux版本
All Comments