% FILECHECK(1) Version 3.2.0 | Scripts Documentation % Georg Voell - georg.voell@standby.cloud % (c)2024 Standby.cloud NAME ==== **filecheck** - (BASH Script) Do some actions with files. SYNOPSIS ======== | **filecheck** \[_options_] _filename_ DESCRIPTION =========== Do some actions with files. Options ------- -h, \--help          : Displays helptext. -v, \--version         : Displays the version of the script. -x          : Test if filename is executable. If filename can't be found, try to find it in path. -b          : Test if filename is a binary file. -f          : Test if filename exists and is a regulary file. -l          : Test if filename exists and is a symbolic link. -w          : Test if filename is writable. -d          : Test if filename is a directory. -z          : Test if filename is a zip file and not corrupt. -s          : Test if filename exists and is not empty. -sl          : Test if filename exists and has more than 1 line. -rm          : Test if filename exists and then remove it. -fc          : Test if filename was accessed no longer than 179 minutes ago (ca. 3 hours). -fy          : Test if filename was created no longer than 1339 minutes ago (ca. 1 day). -fw          : Test if filename was created no longer than 10079 minutes ago (ca. 1 week). -fmax          : Test if filename was modified no longer than 29 minutes ago. -fmin          : Test if filename was modified no longer than 15 minutes ago. -html          : Test if filename is valid html. -json          : Test if filename is valid json. Filename ------- Name of file to test.