Changes

Jump to: navigation, search

Tutorial12: Shell Scripting - Part 2

4 bytes added, 11:12, 27 October 2020
Additional Loop Statements
<span style="font-family:courier;font-weight:bold">file $(ls)<br>mail -s "message" $(cat email-list.txt) < message.txt<br><br>
'''Using the for Loop with Command Substitution'''
Let’s issue the for loop with a list using command substitution.<br>In the example below, we will use command substitution to issue the ls command and<br>have that output (filenames) become arguments for the for loop.<br><br>
13,420
edits

Navigation menu