Mwnci isolder() Function

Syntax

isnewer(string, string)

Description

The isolder() function returns true if the first named file is older than the second, otherwise false is returned.

For the example below we’ll check the two files:

-rw-r–r– 1 eccles users 1865 Jul 17 08:59 /home/eccles/.bashrc
-rw-r–r– 1 eccles users 675 Apr 25 2022 /home/eccles/.profile

Example

include("file")

println(isolder("/home/eccles/.bashrc", "/home/eccles/.profile")))

false