9 Commits (master)

Author SHA1 Message Date
Ian Stanley dc701ac4f2 spelling changes 3 years ago
terminalforlife 421db28d16 Note find(1)'s recursivity & use of `.` for CWD 3 years ago
terminalforlife 1b6b66bd3a Add plenty to, tweak, & tidy `find` 4 years ago
terminalforlife cddd2c0e11 List executable files found in PATH
Many uses for this!

Say you install a large set of updates, so want to cross-check the old
list to the new one, in order to find out which new executables were
installed.

Or, perhaps less obscure, you might this list, without the `-printf`
part, to check their permission and ownership settings.
5 years ago
terminalforlife 86007dd5db Delete extension-specific files using logic
This was taken from my own notes amassed over several years. Commands
like these are a real time-saver.

A lot of people, I imagine, will probably use `-exec rm {} \+` which is
fine and all, but it's another process you'd have to launch, which
isn't necessary at all, unless you need certain `rm` functionality.
5 years ago
terminalforlife 8e5e9dd0a4 Minor comment cleanup, to keep it consistent 5 years ago
Martin Westergaard Lassen 474823fbd7
Wildcards (`*`) should always be in single quotes
Otherwise bash might expand with if matches are found
5 years ago
Altynbek Isabekov d7cfd90004 find: "-exec" example for renaming files by changing extension and preserving base name. 5 years ago
Igor Chubin ef63ab7a8f added find 6 years ago