Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
引数Dirlist=$(find $1 -type d)として指定されたディレクトリのサブディレクトリのリストを取得するために使用していますが、リストの最初の要素 (ディレクトリ自体) を削除する必要があります。どうすればいいのか誰か教えてください。$1Dirlist$1
Dirlist=$(find $1 -type d)
$1
Dirlist
オプションを追加でき-mindepth 1ます:
-mindepth 1
find $1 -mindepth 1 -type d