haqthegibson.com

The lair of Jonesy

Main
Older Articles
Downloads

links:
Jigsaw Boys
atChurch
Sdesigns
DoorStamp
LolDNS - a djbdns fork
g0t.me - URL shortener

User ID:
Password:

ORSMHosting.com

Valid XHTML 1.0!

Valid CSS!

Useful find command -
I needed to replace about 34,000 exe files with 0-length files today after a virus corrupted them. It was difficult to use a normal bash script due to some of the files having strange characters like tildes in the filename, which bash expands. This find command came in very handy:

find /path/to/whatever -name "*.[Ee][Xx][Ee]" -exec cp -f /dev/null {} \;



find is well worth knowing, if you work with any Linux/Unix variants.

-Jonesy