11.04.2013 Views

Guida avanzata di scripting Bash - Portale Posta DMI

Guida avanzata di scripting Bash - Portale Posta DMI

Guida avanzata di scripting Bash - Portale Posta DMI

SHOW MORE
SHOW LESS

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

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

Appen<strong>di</strong>ce A. Script aggiuntivi<br />

# Directory paths never to list or enter<br />

declare -a \<br />

EXCLUDE_PATHS=${2:-${EXCLUDE_PATHS:-’(/proc /dev /devfs /tmpfs)’}}<br />

# Directories never to list or enter<br />

declare -a \<br />

EXCLUDE_DIRS=${3:-${EXCLUDE_DIRS:-’(ucfs lost+found tmp wtmp)’}}<br />

# Files never to list or enter<br />

declare -a \<br />

EXCLUDE_FILES=${3:-${EXCLUDE_FILES:-’(core "Name with Spaces")’}}<br />

# Here document used as a comment block.<br />

: /home/mszick/.xsession-errors<br />

/proc/982/fd/13 -> /tmp/tmpfZVVOCs (deleted)<br />

/proc/982/fd/7 -> /tmp/kde-mszick/ksycoca<br />

/proc/982/fd/8 -> socket:[11586]<br />

/proc/982/fd/9 -> pipe:[11588]<br />

If that isn’t enough to keep your parser guessing,<br />

either or both of the path components may be relative:<br />

../Built-Shared -> Built-Static<br />

645

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

Saved successfully!

Ooh no, something went wrong!