Skip to content

Instantly share code, notes, and snippets.

@XavierMarchena
XavierMarchena / xstat
Last active April 25, 2018 13:55 — forked from moiseevigor/xstat
xstat bash function to get file creation time on Linux with EXT4
#utility http://moiseevigor.github.io/software/2015/01/30/get-file-creation-time-on-linux-with-ext4/
xstat() {
#temporary file to be sorted
temp_file=$(mktemp)
for target in "${@}"; do
inode=$(ls -di "${target}" | cut -d ' ' -f 1)