wiki:linux/bash

Bashskript zum Umbenennen von Dateien, Replace extension of several files


Examples

Infinite loop

# while true; do date; hdparm -C /dev/sda; sleep 60; done
So 28. Dez 17:14:14 CET 2014

/dev/sda:
 drive state is:  standby
So 28. Dez 17:15:14 CET 2014

/dev/sda:
 drive state is:  active/idle
...
...
Last modified 5 years ago Last modified on Dec 28, 2014, 3:48:05 PM