Check These Out
Find files in a specific date range - in this case, the first half of last year.
-newermt = modification time of the file is more recent than this date
GNU find allows any date specfication that GNU date would accept, e.g.
$ find . -type f -newermt "3 years ago" ! -newermt "2 years ago"
or
$ find . -type f -newermt "last monday"
Optimal way of deleting huge numbers of files
Using -delete is faster than:
$ find /path/to/dir -type f -print0 | xargs -0 rm
$ find /path/to/dir -type f -exec rm {} +
$ find /path/to/dir -type f -exec rm \-f {} \;
Tested on debian and ubuntu. Translations could be useless, so "LANG=C man intro" is a better alternative.
Using this command you can track a moment when usb device was attached.
stty sane resets the tty to basic usable function. The ^J is a newline -- sometimes CR/LF interpretation is broken so use the ^J explicitly.
Safe for whitespaces in names.
nmap for windows and other platforms is available on developer's site: http://nmap.org/download.html
nmap is robust tool with many options and has various output modes - is the best (imho) tool out there..
from nmap 5.21 man page:
-oN/-oX/-oS/-oG : Output scan in normal, XML, s|
Line can be modified as needed. This considers weekdays to be Mon-Fri. If run any working day it'll provide a parameters for the next working day for "at".
"beep" provided as a sample command.
This can be modified easily to include wait time. If you need something to run "D" days after today:
# D=4;if [ $(date +%u --date="${D} days") -lt 5 ];then AT="+${D} days";else AT="next monday";fi; echo "beep" | at noon ${AT}
This command displays a simple menu of file names in the current directory. After the user made a choice, the command invokes the default editor to edit that file.
* Without the break statement, the select command will loop forever
* Setting the PS3 prompt is optional
* If the user types an invalid choice (such as the letter q), then the variable $f will become an empty string.
* For more information, look up the bash's select command