mirror of
https://github.com/onceupon/Bash-Oneliner
synced 2025-02-16 13:08:23 +00:00
add mktemp
This commit is contained in:
parent
a59c8598b0
commit
57085df9be
1 changed files with 5 additions and 0 deletions
|
@ -3105,6 +3105,11 @@ rsync -av directory user@ip_address:/path/to/directory.bak
|
|||
# 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!
|
||||
```bash
|
||||
mkdir -p project/{lib/ext,bin,src,doc/{html,info,pdf},demo/stat}
|
||||
|
|
Loading…
Add table
Reference in a new issue