Remove a list of files as held within a file
An example file called 'list.txt' may contain the following:
/tmp/jar.png /mike/www/* /var/www/html/test.php
To remove them simply enter:
for f in $(cat list.txt); do rm $f done
Or if you don't have any patterns, then it can be done using xargs:
xargs rm < list.txt
Disk Usage on Unix System
du -hd1 (-h human readable, -d1 depth 1-level)
Replicate remote server file directory onto local server
rsync -av user@
e.g. rsync -av mike@66.39.204.501:/usr/www/users/mike/websites/ford ford
Exposed filter change Year to Any
Within Views module when using Date module how to change exposed filter 'Year' to something else like 'Any'.
1. Edit date module file: date/date_api_elements.inc.
2. Insert the line below within the "function date_select_process($element, $edit, $form_state, $form)" and before "return $element;"
$element['year']['#options'][''] = 'Any';
Original Ref: http://drupal.org/node/1145552