Skip to content

Instantly share code, notes, and snippets.

@aih
Created July 9, 2021 07:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aih/4d0533911b87ba6f0044263df224c941 to your computer and use it in GitHub Desktop.
Save aih/4d0533911b87ba6f0044263df224c941 to your computer and use it in GitHub Desktop.
Create directory with bash expansion
$ mkdir -p bills/{111..117}/{pdf,dtd,uslm,compare}

$ tree bills

bills
├── 111
│   ├── compare
│   ├── dtd
│   ├── pdf
│   └── uslm
├── 112
│   ├── compare
│   ├── dtd
│   ├── pdf
│   └── uslm
├── 113
│   ├── compare
│   ├── dtd
│   ├── pdf
│   └── uslm
├── 114
│   ├── compare
│   ├── dtd
│   ├── pdf
│   └── uslm
├── 115
│   ├── compare
│   ├── dtd
│   ├── pdf
│   └── uslm
├── 116
│   ├── compare
│   ├── dtd
│   ├── pdf
│   └── uslm
└── 117
    ├── compare
    ├── dtd
    ├── pdf
    └── uslm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment