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
#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) |
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 | |
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 |