Solaris Command
Solaris Command
Solaris Command
Shell Programming
i f-then-else foreach do-while
sh, bash, ksh sh, bash, ksh sh, bash, ksh
if condition; then for key in list… ; do while condition; do
action_1; else actions; done actions; done
action_2; fi
csh, tcsh csh, tcsh
csh, tcsh foreach key (list) while (condition)
if (condition) then actions actions
action_1; end end
else
action_2; Rename files
endif foreach i (*)
mv $i $i.old
end