The Pythoning

Scrapbooking useful Python programming ephemera and:

"Eating way more food than necessary at a meal, with the intent of stocking up so not to have to eat again for a long time." (from Urban Dictionary).

Mar 30

locate - find files by name

-i, --ignore-case

Ignore case distinctions when matching patterns.

-b, --basename

Match only the base name against the specified patterns.

-c, --count

Instead of writing file names on standard output, write the number of matching entries only.

-e, --existing

Print only entries that refer to files existing at the time locate is run.

-L, --follow

When checking whether files exist (if the —existing option is specified), follow trailing symbolic links. This causes broken symbolic links to be omitted from the output.

--regex

Interpret all PATTERNs as extended regexps.

-r, --regexp REGEXP

Search for a basic regexp REGEXP. No PATTERNs are allowed if this option is used, but this option can be specified multiple times.