Added build files to turn the bible into a book
This commit is contained in:
42
manuscript/chapter9.txt
Normal file
42
manuscript/chapter9.txt
Normal file
@@ -0,0 +1,42 @@
|
||||
# Brace Expansion
|
||||
|
||||
## Ranges
|
||||
|
||||
```shell
|
||||
# Syntax: {<START>..<END>}
|
||||
|
||||
# Print numbers 1-100.
|
||||
echo {1..100}
|
||||
|
||||
# Print range of floats.
|
||||
echo 1.{1..9}
|
||||
|
||||
# Print chars a-z.
|
||||
echo {a..z}
|
||||
echo {A..Z}
|
||||
|
||||
# Nesting.
|
||||
echo {A..Z}{0..9}
|
||||
|
||||
# Print zero-padded numbers.
|
||||
# CAVEAT: bash 4+
|
||||
echo {01..100}
|
||||
|
||||
# Change increment amount.
|
||||
# Syntax: {<START>..<END>..<INCREMENT>}
|
||||
# CAVEAT: bash 4+
|
||||
echo {1..10..2} # Increment by 2.
|
||||
```
|
||||
|
||||
## String Lists
|
||||
|
||||
```shell
|
||||
echo {apples,oranges,pears,grapes}
|
||||
|
||||
# Example Usage:
|
||||
# Remove dirs Movies, Music and ISOS from ~/Downloads/.
|
||||
rm -rf ~/Downloads/{Movies,Music,ISOS}
|
||||
```
|
||||
|
||||
<!-- CHAPTER END -->
|
||||
|
||||
Reference in New Issue
Block a user