To answer the "when is shell preferable" question:
perl usually resides on /usr, which makes it hard to use for things like boot scripts (one of which will probably be used to actually mount /usr).
Also, it has a size (after doing a quick rpm -i perl) of 30+ MB. In contrast, the network boot image I use at work to recover machines has a total unzipped size of about 16MB, which includes a regular glibc, bash and all the utilities you'd ever need (well, close).
I'd say those are the two main reasons for me to use shell scripts: unavailability of Perl, and the size of a
standard Perl installation.
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.