This has to have a simple answer somewhere but cannot seem to find it for FreeBSD specifically.
Given this input:
DT='2022.02.30'
I want to determine that this date is invalid. I first turned to the date utility:
echo $DT ; date -j -f '%Y.%m.%d' $DT ; echo $?
2022.02.30
Wed Mar 2 15:56:22...
Hello,
I have problem witch stat command, when create file the time stamp st_birthtim show date Jan 1 00:59:59 1970
The full command:
root@pwgcz:~ # stat test.txt
100 79525 -rw-r--r-- 1 root pg 0 0 "Nov 19 15:53:20 2021" "Nov 19 15:53:20 2021" "Nov 19 15:53:20 2021" "Jan 1 00:59:59 1970"...
Letcl is a Linux shell script that checks Let's Encrypt certificates issued for a domain. I've managed to modify it to run on FreeBSD and FreeBSD embedded systems like FreeNAS. The commands the script uses that are syntactically different between Linux and FreeBSD platforms are date and sed. For...
Hello guys, please look at the following date commands.
It looks like KornShell uses its own application. Built in? And why? Any idea?
It appeared after this shell has been updated to ksh93-20141224 from 2012... .
user@serv:~ % ksh -c "date -r"
date: -r: unknown option
Usage: date...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.