On branch output-file
Changes to be committed: renamed: hash-files -> mdlspipe
This commit is contained in:
parent
9ffd223048
commit
86a47efc6e
@ -1,5 +1,5 @@
|
||||
#!/usr/bin/env bash
|
||||
log_file=/var/log/hash-files.log
|
||||
log_file=/var/log/mdlspipe.log
|
||||
keys_of_interest=("kMDItemFSCreationDate" "kMDItemFSName")
|
||||
md5_bin=$(which md5sum)
|
||||
mktemp_bin=$(which mktemp)
|
||||
@ -16,8 +16,8 @@ set +a
|
||||
|
||||
write_log () {
|
||||
## Use on systems managed with systemd
|
||||
# printf 'hash-files: %s\n' "$1" | systemd-cat
|
||||
printf '%s hash-files: %s\n' "$DateTimeStamp" "$1" >> $log_file
|
||||
# printf 'mdlspipe: %s\n' "$1" | systemd-cat
|
||||
printf '%s mdlspipe: %s\n' "$DateTimeStamp" "$1" >> $log_file
|
||||
}
|
||||
|
||||
|
||||
@ -81,5 +81,5 @@ for file in $(find $Working_Fullpath -maxdepth 1 -type f); do
|
||||
# write_per_file $file $hash $mdls_properties
|
||||
done
|
||||
} >> $temp_csv_file
|
||||
cat $temp_csv_file
|
||||
unset IFS
|
||||
mv $temp_csv_file $PWD/mdlspipe_$(date +%\D_\%T|sed 's/[:|\/]/-/g').csv
|
Loading…
Reference in New Issue
Block a user