bash - How would I send the output of ls to a for loop that assigns arguments to a case statement? -


छद्म कोड होगा

  $ (ls -d * /) में OUTPUT के लिए मामले $ आउटपुट में 1) $ आउटपुट ;; Esac किया *) echo -e "ओह !!! कृपया कोई मान्य संख्या चुनें";   

निश्चित नहीं है कि यह संभव है या यदि यह समझ में आता है?

सबसे पहले, ls को पार्स नहीं करें। बस ग्लोब का प्रयोग करें: <प्री> में OUTPUT के लिए * /

दूसरा, चुनें पर < कोड> बाश दस्तावेज़ीकरण।

Comments

Popular posts from this blog

excel vba - How to delete Solver(SOLVER.XLAM) code -

github - Teamcity & Git - PR merge builds - anyway to get HEAD commit hash? -

ios - Replace text in UITextView run slowly -