This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Author: ashay dot humane at gmail.com | |
# Given a file name, this script prints the file creation time, | |
# as ext4 records it | |
# Might error out on other filesystems | |
DEBUGFS="/sbin/debugfs" | |
[[ -f "$1" ]] || { echo "Invalid filename. Exiting" ; exit 1; } |