Open main menu

CDOT Wiki β

Changes

Tutorial12: Shell Scripting - Part 2

378 bytes added, 09:16, 27 July 2020
Additional Loop Statements
===Additional Loop Statements===
'''Command Substitution�'''
command substitution is a facility that allows a command to be run and its output to be pasted back on the command line as arguments to another command.��Reference: https://en.wikipedia.org/wiki/Command_substitution
Examples:
<span style="font-family:courier">command1 $(command2)<br>command1 [arguments from command2 output]</span><br><br>
13,420
edits