Bash snippet - Adjust inode mtime according to another inode.


SUBMITTED BY: DanielK

DATE: Aug. 13, 2016, 3:04 p.m.

FORMAT: Bash

SIZE: 149 Bytes

HITS: 814

  1. function mtimea()
  2. {
  3. if [ $# -gt 1 ]; then
  4. touch -r "${1}" "${2}"
  5. else
  6. echo "${FUNCNAME} <source inode> <destination inode>"
  7. fi
  8. }

comments powered by Disqus