I was actually looking for something like this a few days ago. This is pretty useful as there's no crc32sum readily available on linux. Thanks for that!
I would personally change a few things, mostly small nitpicks to be fair.
[[ ]]
[ ]
$0
crc32sum
exit 0
if
else
As I said, nitpicks!
Also, I like that your example uses *.smc, that's also the reason I needed a crc32sum 🤣
*.smc
I was actually looking for something like this a few days ago. This is pretty useful as there's no crc32sum readily available on linux. Thanks for that!
I would personally change a few things, mostly small nitpicks to be fair.
[[ ]]
over[ ]
for tests. Source: https://www.shellcheck.net/wiki/SC2292$0
instead of hardcodingcrc32sum
in the help messages. That way it will work even if someone names the script differentlyexit 0
after the help and end theif
there instead of having the whole work being done in anelse
.As I said, nitpicks!
Also, I like that your example uses
*.smc
, that's also the reason I needed a crc32sum 🤣