ssxela
Last Updated: February 25, 2016
·
96
· phaus
902a4faaa4de6f6aebd6fd7a9fbab46a

List active Files in Folder (e.g. Files that are uploaded via SCP)

#!/usr/local/bin/bash
FOLDER=/var/upload
FILES="$(/usr/bin/fstat -f ${FOLDER} | awk 'NR>1 {print $6}')"
for i in $FILES
do
    find -x ${FOLDER} -inum $i
done
Say Thanks
Respond
Filed Under

Awesome Job

Bea7f8f4 6732 11e8 88d8 450561e12155
Distributed Systems Engineer
·
Boston, San Francisco, Remote
·
Full Time