Merge pull request #44 from chapmanjacobd/patch-2

add mktemp
This commit is contained in:
Bonnie I-Man Ng 2023-03-15 15:17:21 +08:00 committed by GitHub
commit 5d5b83b7b8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3144,6 +3144,11 @@ rsync -av directory user@ip_address:/path/to/directory.bak
# skip files that are newer on receiver (i prefer this one!) # skip files that are newer on receiver (i prefer this one!)
``` ```
##### Create a temporary directory and `cd` into it
```bash
cd $(mktemp -d)
```
##### Make all directories at one time! ##### Make all directories at one time!
```bash ```bash
mkdir -p project/{lib/ext,bin,src,doc/{html,info,pdf},demo/stat} mkdir -p project/{lib/ext,bin,src,doc/{html,info,pdf},demo/stat}