Skip to content

Commit 1d9f950

Browse files
committed
Combine "Bash" notes under a folder.
1 parent 82c226e commit 1d9f950

File tree

5 files changed

+14
-26
lines changed

5 files changed

+14
-26
lines changed

content/notes/Bash.md

Lines changed: 0 additions & 11 deletions
This file was deleted.

content/notes/Bash_Brace_expansion.md renamed to content/notes/Bash/Brace_expansion.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
+++
2-
title = "Bash: Brace expansion"
2+
title = "Brace expansion"
33
+++
44

55
In Bash, brace expansion is a mechanism by which arbitrary strings may be generated.
@@ -23,7 +23,3 @@ Brace expansions can be combined. For example, `{a..b}{1..2}` expands to `a1 a2
2323
Brace expansions tend to be most useful when dealing with file paths (especially if the paths are long and some of the files don't exist yet). For example, `mv /long/path/to/file_{old,new}`.
2424

2525
See [`man bash`](https://www.man7.org/linux/man-pages/man1/bash.1.html) for more information.
26-
27-
## See also
28-
29-
- [Bash](@/notes/Bash.md)

content/notes/Bash_Parameter_expansion.md renamed to content/notes/Bash/Parameter_expansion.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
+++
2-
title = "Bash: Parameter expansion"
2+
title = "Parameter expansion"
33
+++
44

55
In Bash, the `$` character can be used to introduce parameter expansion.
@@ -49,7 +49,3 @@ Here's a brief list of such parameter expansions:
4949
- `k`: like `K`, but keys and values are separate words
5050

5151
See [`man bash`](https://www.man7.org/linux/man-pages/man1/bash.1.html) for more information.
52-
53-
## See also
54-
55-
- [Bash](@/notes/Bash.md)

content/notes/Bash_Positional_parameters.md renamed to content/notes/Bash/Positional_parameters.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
+++
2-
title = "Bash: Positional parameters"
2+
title = "Positional parameters"
33
+++
44

55
To parse positional parameters in Bash, you can use the `getopts` builtin.
@@ -45,7 +45,3 @@ function handle_args()
4545
done
4646
}
4747
```
48-
49-
## See also
50-
51-
- [Bash](@/notes/Bash.md)

content/notes/Bash/_index.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
+++
2+
title = "Bash"
3+
+++
4+
5+
Bash is an interactive command interpreter and command programming language developed for Unix-like operating systems.
6+
7+
Child notes:
8+
9+
- [Brace expansion](@/notes/Bash/Brace_expansion.md)
10+
- [Parameter expansion](@/notes/Bash/Parameter_expansion.md)
11+
- [Positional parameters](@/notes/Bash/Positional_parameters.md)

0 commit comments

Comments
 (0)