Fileaxe is a powerful command-line tool designed to help you find, filter, and manipulate files based on various criteria. It allows you to search for files within specific time ranges, apply regular expression matching, and perform bulk operations like copying, moving, compressing, or removing files. This file tool gracefully incorporates the last modified date, offering a refined way to utilize your files. You can effortlessly select files within a specific timeframe or leverage their creation history for diverse applications and workflows. Whether you're managing large file collections, automating file organization tasks, or need to quickly access files from a specific time period, Fileaxe provides an efficient solution.
find files matching criteria and do something with them
Flags:
-h, --help Show context-sensitive help.
-f, --folder="/home/ole/rolling/golang/projects/fileaxe/src"
folder to process, default is current
directory
-L, --follow-symlinks resolve the folder argument through symlinks,
so a symlinked folder is processed like its
target; the walk itself never follows symlinks
inside the tree
-m, --matcher=".*" regex matcher for file detection, e.g. '\..*$'
or '\.yaml$
-r, --age-range="0,0" age range of files to consider, string of one
or two comma separated values (min age and
max age), supports durations like 90m, 12h,
4d, 2w; default behaviour is that all files
in a folder will be considered, usage: -r 2h,
-r 30m,2h
-z, --size-range="0,0" size range of files to consider, string of
one or two comma separated sizes (min and max
size, both inclusive), supports suffixes b,
k, m, g, t, p (binary units, 1k = 1024 bytes),
plain numbers are bytes; default behaviour is
that files of any size will be considered,
usage: -z 1g, -z 1m,10m
-s, --sort-by="age" sort output list by, can be: age, path
-o, --order="desc" sort order
--log-file="/dev/stdout" log file, ignored on a dry run, which always
logs to stdout
--log-level="info" log level
--log-no-colors disable output colours, print plain text
--log-json enable json log, instead of text one
-n, --dry-run dry run, just print don't do, logs are written
to stdout
Commands:
list list files matching the criteria
exists check if file(s) exists, return non-zero exitcode if not
compress compress matching files
rotate rotate matching files, compress and truncate after successful
compression
copy copy matching files, requires target folder definition
move move matching files, requires target folder definition
truncate truncate matching files
remove remove matching files
version display version
Run "fileaxe <command> --help" for more information on a command.CAUTION! Engaging with this software is akin to wrestling a badger wearing a tutu – unpredictable and potentially shimmering with existential dread. This software is provided “as is.” The user assumes all risks of data loss, system errors, or any other adverse consequences. The provider accepts no liability for any resulting damages.