1
0
mirror of https://github.com/fleschutz/PowerShell.git synced 2025-07-26 07:54:55 +02:00
Files
Data
Misc
Scripts
MD5.ps1
Robocopy.bat
SHA1.ps1
SHA256.ps1
add-firewall-rules.ps1
alert.ps1
calibre-server
cc_find_changes.bat
check-ipv4-address.ps1
check-mac-address.ps1
check-xml-file.ps1
check_windows_system_files.bat
clone-repos.ps1
close-calculator.ps1
close-chrome.ps1
close-edge.ps1
close-file-explorer.ps1
close-program.ps1
close-thunderbird.ps1
close-windows-terminal.ps1
configure-git.ps1
csv-to-text.ps1
decrypt-file.ps1
display-time.ps1
download.ps1
empty-dir.ps1
enable-crash-dumps.ps1
encrypt-file.ps1
generate-qrcode.ps1
hashdir
hibernate.ps1
inspect-exe.ps1
ipfs-publish
ipfs-server
list-anagrams.ps1
list-automatic-variables.ps1
list-clipboard.ps1
list-cmdlets.ps1
list-current-timezone.ps1
list-earthquakes.ps1
list-empty-dirs.ps1
list-environment-variables.ps1
list-files.ps1
list-formatted.ps1
list-fritzbox-calls.ps1
list-fritzbox-devices.ps1
list-installed-software.ps1
list-logbook.ps1
list-modules.ps1
list-news.ps1
list-os-releases.ps1
list-printers.ps1
list-processes.ps1
list-random-passwords.ps1
list-random-pins.ps1
list-scripts.ps1
list-timezones.ps1
list-unused-files.ps1
list-user-groups.ps1
locate-city.ps1
locate-ipaddress.ps1
locate-zip-code.ps1
make-install.ps1
moon.ps1
mute-audio.ps1
new-email.ps1
next-joke.ps1
open-browser.ps1
open-calculator.ps1
open-email-client.ps1
play-beep.ps1
poweroff.ps1
query-smart-data.ps1
reboot-fritzbox.ps1
reboot.ps1
scan-ports.ps1
search-files.ps1
send-email.ps1
send-tcp.ps1
send-udp.ps1
set-timer.ps1
set-wallpaper.ps1
simulate-matrix.ps1
simulate-presence.ps1
smart-data2csv.ps1
speak-date.ps1
speak-epub.ps1
speak-file.ps1
speak-test.ps1
speak-text.ps1
speak-time.ps1
status
swap2ram
switch-shelly1.ps1
take-screenshot.ps1
take-screenshots.ps1
train-dns-cache.ps1
transfer-mastership.bat
translate-file.ps1
translate-text.ps1
turn-volume-down.ps1
turn-volume-up.ps1
txt2wav.ps1
unmute-audio.ps1
update-repos.ps1
visualize-dir-tree.ps1
voice-control.ps1
wakeup.ps1
weather-alert.ps1
weather-report.ps1
weather-worldwide.ps1
weather.ps1
write-animated.ps1
write-big.ps1
write-blue.ps1
write-braille.ps1
write-green.ps1
write-logbook.ps1
write-marquee.ps1
write-morse-code.ps1
write-motd.ps1
write-red.ps1
write-rot13.ps1
write-typewriter.ps1
write-uppercase.ps1
write-vertical.ps1
zip-dir.ps1
LICENSE
README.md
PowerShell/Scripts/hashdir
Markus Fleschutz af2a4bbd72 Renamed old to known
2020-05-31 09:38:08 +00:00

21 lines
408 B
Bash
Executable File

#!/bin/sh
#
# requires <hashdeep>
if [ -r new_hashes.xml ]
then
echo "Found new_hashes.xml, renaming it to known_hashes.xml ..."
mv new_hashes.xml known_hashes.xml
fi
echo "Calculating new_hashes.xml of folder $1 ..."
hashdeep -c md5,sha1,sha256,tiger,whirlpool -r -d -l -j 1 $1 > new_hashes.xml
if [ -r known_hashes.xml ]
then
echo "This has changed:"
diff known_hashes.xml new_hashes.xml
fi
exit 0