to remove write protected files use the -f switch
rm -f [files]
or
rm -Rf [folder]
Sunday, December 9, 2012
Saturday, October 27, 2012
find by modified date and copy to another directory
find . -type f -daystart -mtime -2 -exec cp "{}" [PathToTargetDirectory/] \;
-daystart -mtime -2
starts with the beginning of today counting files modified -2*24 hours ago ...
-exec receives found filename "{}"
... only works with one directory-level - not with nested folders!!
-daystart -mtime -2
starts with the beginning of today counting files modified -2*24 hours ago ...
-exec receives found filename "{}"
... only works with one directory-level - not with nested folders!!
Tuesday, October 23, 2012
Sunday, July 1, 2012
Tuesday, May 29, 2012
html input tell's a browser to save your password
in firefox use the following (additional) attribute "id":
<input type="text" name="userfieldname" id="username" (id="xyz username") .......>
<input type="password" name="passwordfieldname" id="password" (id="xyz password") .......>
<input type="text" name="userfieldname" id="username" (id="xyz username") .......>
<input type="password" name="passwordfieldname" id="password" (id="xyz password") .......>
Tuesday, January 17, 2012
find files and copy somwhere else
# find [pathtofiles] [findparameter] -exec cp {} [destinationpath] \;
findparameter examples "modified":
-mtime 1 (up to 24 hours old)
-mtime 1 -daystart (24 hours back in time from the beginning of the current day)
findparameter examples "modified":
-mtime 1 (up to 24 hours old)
-mtime 1 -daystart (24 hours back in time from the beginning of the current day)
Friday, January 13, 2012
Subscribe to:
Comments (Atom)