logo

utils-std

Collection of commonly available Unix tools git clone https://anongit.hacktivis.me/git/utils-std.git

stat_atime (263B)


  1. #!/bin/sh
  2. # SPDX-FileCopyrightText: 2017 Haelwenn (lanodan) Monnier <contact+utils@hacktivis.me>
  3. # SPDX-License-Identifier: MPL-2.0
  4. case "$(uname -s)" in
  5. FreeBSD) stat -f%Sa -t'%F %T%z' "$@" ;;
  6. *BSD) stat -f%Sa -t'%F %T.%f%z' "$@" ;;
  7. *) stat -c%x "$@" ;;
  8. esac