Merge 1da5d931da
into a05548c0b2
commit
ac1b0f86d0
20
README.md
20
README.md
|
@ -362,6 +362,26 @@ A few examples of piecing together commands:
|
|||
```sh
|
||||
find . -type f -ls
|
||||
```
|
||||
- You can simplify the creation of a directory tree by using `{}`:
|
||||
```
|
||||
mkdir -p ~/test/{one,two,three}/subtest.{one,two,three}
|
||||
```
|
||||
creates:
|
||||
```
|
||||
~/test/
|
||||
|_____one/
|
||||
|_____subtest.one
|
||||
|_____subtest.two/
|
||||
|_____subtest.three/
|
||||
|_____two/
|
||||
|_____subtest.one
|
||||
|_____subtest.two/
|
||||
|_____subtest.three/
|
||||
|_____three/
|
||||
|_____subtest.one
|
||||
|_____subtest.two/
|
||||
|_____subtest.three/
|
||||
```
|
||||
|
||||
- Say you have a text file, like a web server log, and a certain value that appears on some lines, such as an `acct_id` parameter that is present in the URL. If you want a tally of how many requests for each `acct_id`:
|
||||
```sh
|
||||
|
|
Loading…
Reference in New Issue