Lists or filters file system objects (eg files)
f lists or filters lists of file system objects, such as files, directories, etc.
f provides a quick way to output file system items that confirm to specific criteria.
You define this criteria by using +flags (eg
+s for all symlinks) and optionally then restricting that criteria with -flags (eg
-x to remove all executable items). All flags supported as
+ are also supported as a
f will return no results. You need to include +flags.
Output is a JSON array as this format preserves whitespace in file names.
f: options -> <stdout> <stdin> -> f: options -> <stdout>
Return only directories:
Return file and directories but exclude symlinks:
f: +fd -s
Filter out files in a list (eg created by
g) using conditions set by
g: '*.go' -> f: +f rx: '\.(txt|md)' -> f: +fw
+include files (pair this with any other flag apart from
-exclude files (pair this with any other flag apart from
?irregular files (nothing else is known about these files)
Eother read permissions
Fregular files (exc symlinks, devices, sockets, named pipes, etc)
Qother write permissions
Ruser read permissions
Wuser write permissions
Xuser execute permissions
Zother execute permissions
dall directories (inc symlinks)
egroup read permissions
fall files (inc symlinks, devices, sockets, name pipes, etc)
pPOSIX named pipes (FIFO)
qgroup write permissions
rread permissions (user, group, or other)
wwrite permissions (user, group, or other)
xexecute permissions (user, group, or other)
zgroup execute permissions
+ flags are always matched first. Then the
- flags are used to filter out any matches from the
g: Glob pattern matching for file system objects (eg
rx: Regexp pattern matching for file system objects (eg
This site's content is rebuilt automatically from murex's source code after each merge to the
master branch. Downloadable murex binaries are also built with the website.
Last built on Thu Oct 13 08:08:18 UTC 2022 against commit ed6b6fced6b6fc609f4be93c5d3348695a762facfecf48f.
Current version is 2.11.2200 which has been verified against 16798 tests cases.