Futilities/human/ff: Difference between revisions

From Woozle Writes Code
Jump to navigation Jump to search
(options)
Line 3: Line 3:
Yes, I know, there's <code>find</code> and {{l/htyp|grep}} but I find those both opaque and difficult to use.
Yes, I know, there's <code>find</code> and {{l/htyp|grep}} but I find those both opaque and difficult to use.
==Options==
==Options==
This list needs updating. FF also uses the {{l/hf|options/spider|spider options}}.
{| class="wikitable sortable"
{| class="wikitable sortable"
|-
|-
Line 21: Line 22:
| --show-progress  || -sp  || display search progress on a single line (faster and less overwhelming)
| --show-progress  || -sp  || display search progress on a single line (faster and less overwhelming)
|}
|}
==Examples==
==Examples==
Find all files in the Downloads folder which were created or edited on August 26, 2022:
Find all files in the Downloads folder which were created or edited on August 26, 2022:
  ./ff -fd:2022-08-26 -sp "/home/woozle/Downloads/*.*"
  ./ff -fd:2022-08-26 -sp "/home/woozle/Downloads/*.*"
Note that the quotes are necessary in order to prevent [[htyp:bash/globbing|bash from automatically unglobbing]] the "*.*" into a list of filenames.
Note that the quotes are necessary in order to prevent [[htyp:bash/globbing|bash from automatically unglobbing]] the "*.*" into a list of filenames.

Revision as of 15:15, 20 October 2022

FF: File Finder

About

Yes, I know, there's find and grep but I find those both opaque and difficult to use.

Options

This list needs updating. FF also uses the spider options.

options
long short meaning
--case-sensitive -cs case must match (I think this is just filenames for now, but might also be content...)
--file-date= -fd= only include files created or edited on the given date
--list-found -lf list all items as they are checked - fi for files, fo for folders, combine in either order for both
--log-matches -lm log found matches to a file
--show-commands -sc show any external commands used
--show-progress -sp display search progress on a single line (faster and less overwhelming)

Examples

Find all files in the Downloads folder which were created or edited on August 26, 2022:

./ff -fd:2022-08-26 -sp "/home/woozle/Downloads/*.*"

Note that the quotes are necessary in order to prevent bash from automatically unglobbing the "*.*" into a list of filenames.