Skip to content

Instantly share code, notes, and snippets.

@lucasrangit
lucasrangit / xstat
Created April 25, 2018 13:55 — forked from XavierMarchena/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)
#!/bin/bash
URL="http://flashair"
list () {
curl --silent "${URL}/command.cgi?op=100&DIR=${1}" \
| awk 'BEGIN { FS=","; OFS="/" } /.+,.+,[^0,]/ { print $1,$2 }'
}
files () {
for dir in $@; do