English
Nederlands
Deutsch
Српски
Русский
Вилењак — Het helpertje voor de Admin
Een selectie van shell scripts en configuratie voorbeelden voor POSIX-systemen

Werkzaamheden!

1. Deze site is onder constructie

Op 2014-09-28 ben ik er mee begonnen hier een selectie van kleine shell-scripts en configuratie voorbeelden te verzamelen. De engelstalige paginas zijn het eerst aan de beurt.

2014-10-06: Provided first test downloads with description stubs to try out different layouts
2014-10-10: Experimenting to find a good way to handle translations consistently.

2. Zoekprogrammas

2.1. l, ll, la, lsf, lsr, lsx, ltr, lsw – List files

ls used to turn on often used options if called as e.g. l, ll or la. Implemented as scripts because aliases will only work for interactive shells, but not for scripts or in combination with e.g. xargs or nice.
Time stamps will be shown in long ISO format (YYYY-MM-DD hh:mm:ss).

l (short list) ⇒ ls -m
Separate entries with commas
ll (long list) ⇒ ls -lL
Long list including access rights, file size and timestamp
la (list all) ⇒ ls -la
List all, including hidden files
lsf (list with file type) ⇒ ls -F
Append indicator for directories (/), links (@), ...
lsr (list recursive) ⇒ ls -R
Walk directories recursively
lsx (list across) ⇒ ls -x
List entries by lines instead of by columns
ltr (list time reversed) ⇒ ls -lLtr
List by (modification) timestamp, oldest first
lsw (list to watch)
Like ll but only show file size, time stamp and file name. Useful when monitoring downloads with watch -d lsw.

2.2. fx, ffx, fdx, flx – Find and Execute

WIP!

fx
find and execute
ffx
find file and execute
fdx
find directory and execute
flx
find link and execute

2.3. lox, rlox – Locate and Execute

WIP!

lox
locate and execute
rlox
locate relative to current directory and execute

3. Delayed execution

3.1. batch – execute when load levels permit

/usr/bin/batch will read commands from standard input only. This small wrapper will accept command line arguments like nice or nohup do. It is also silent if successful. The usual 'executed with /bin/sh' warning and the job number will be suppressed.

3.2. at – execute at a specified time

/usr/bin/at will read commands from standard input only. Like batch above this wrapper accepts command line arguments and is also less verbose.

3.3. WIP!downloads/scripts/waitfor

WIP! waitfor will wait until none of the named programs is running anymore.

3.4. WIP!downloads/scripts/ok

WIP!

4. Data formatting

4.1. gw – control break

WIP!

4.2. WIP!adjust – align tab-separated data

WIP!