LoginSignup
5
4

More than 5 years have passed since last update.

あるディレクトリ以下の構造を、サブディレクトリを含めて複製する

Last updated at Posted at 2017-07-18

dirAの中身を全て、dirBにコピーする(中にあるファイルはコピーしない)

$ find ./dirA/ -type d | sed 's/dirA/dirB/' | xargs mkdir

7/19:ご指摘いただき、内容を変更しました

5
4
2

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
5
4