Changes
Jump to navigation
Jump to search
← Older edit
Newer edit →
Command substitution
(view source)
Revision as of 04:29, 14 September 2009
No change in size
,
04:29, 14 September 2009
→Command substitution and shell loops
Line 35:
Line 35:
cd $CWD</source>
cd $CWD</source>
===Command substitution and shell loops===
===Command substitution and shell loops===
−
Shell loop can use
Command
substitution to get input:
+
Shell loop can use
command
substitution to get input:
<source lang="bash">for f in $(ls /etc/*.conf)
<source lang="bash">for f in $(ls /etc/*.conf)
do
do
Admin
Bureaucrats
,
Administrators
3,296
edits
Navigation menu
Personal tools
Log in
Namespaces
Page
Discussion
Variants
Views
Read
View source
View history
More
Search
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Tools
Special pages
Printable version