Skip to main content
9 events
when toggle format what by license comment
Oct 11, 2022 at 23:41 comment added frabjous I don't have access to a mac to test, but I gather from this answer here that you might try to change stat -c '%Y' to stat -f %m.
Oct 11, 2022 at 21:59 comment added SkRevo I'm using OSX 12.2.1
Oct 8, 2022 at 20:44 comment added frabjous It works with busybox stat too. All the command does is get the modification time of the file as a unix timestamp. I would think that every implementation of stat has some way to do that.
Oct 8, 2022 at 17:12 comment added frabjous What version of stat are you using? I was using GNU stat. I don't know what options are available for other versions.
Oct 8, 2022 at 16:49 comment added SkRevo Ran this script but getting error: usage: stat [-FlLnqrsx] [-f format] [-t timefmt] [file ...] stat: illegal option -- c @frabjous
Oct 7, 2022 at 22:04 vote accept SkRevo
Oct 8, 2022 at 16:51
S Oct 5, 2022 at 11:53 history suggested Edgar Magallon CC BY-SA 4.0
edited code with bash style
Oct 3, 2022 at 22:43 review Suggested edits
S Oct 5, 2022 at 11:53
Oct 3, 2022 at 21:18 history answered frabjous CC BY-SA 4.0