Linuxshell script取得指定資料夾下的資料夾 - LinuxDora · 2012-05-28Table of ContentsPostCommentsRelated Posts 我想要再shell script下取得指定資料架下的資料夾名稱(並且存在變數中) 只要單一一層就好 有想到用find指令,但是不知道要怎麼把他存在變數下 謝謝~~~ -- LinuxAll CommentsKama2012-05-30目的? 如果是script要用的話,可以for d in */ 這樣Dorothy2012-05-31DIRS=`find ./ -maxdepth 1 -type d` 注意是backqoute(`)Related Posts關於硬碟上OS的備份你選用什麼OS呢?你選用什麼OS呢?下拉式彩色終端機哪一款好用?你選用什麼OS呢?
All Comments