27.08.2015 Views

Advanced Bash−Scripting Guide

Advanced Bash-Scripting Guide - Nicku.org

Advanced Bash-Scripting Guide - Nicku.org

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Appendix I. Exercises<br />

I.1. Analyzing Scripts<br />

Examine the following script. Run it, then explain what it does. Annotate the script, then rewrite it in a more<br />

compact and elegant manner.<br />

#!/bin/bash<br />

MAX=10000<br />

for((nr=1; nr

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!