Skip to content

Commit 007cea8

Browse files
authored
Command Substitution
1 parent f9c3db4 commit 007cea8

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

learningbash.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,3 +69,9 @@
6969
#### Length operator
7070
- if `exo1` is a file, `echo ${#exo1}` will print 4.
7171

72+
### Command Substitution
73+
The syntax of command substitution is: `$(unix command)`.
74+
75+
Example : `a=$(ls)`, the variable `a` will contain the output of the `ls` command.
76+
77+

0 commit comments

Comments
 (0)