Beginner Level: “playing with checksums”

Anticipated Bash content includes:

  • command-line interface
  • parse input and format output
  • flow control: branching with if
  • variables
  • functions
  • data processing

First Session

On Tuesday 25th January 2022 from 18:00 to 19:00 UTC.

Handouts
Bash Cookbook for Archivists
Exercices
  • Modify the script to check Bash and bash using pattern matching.
  • Modify the script to prompt also the versions of Nano and MediaInfo.
Solution

Second Session

On Thursday 27th January 2022 from 18:00 to 19:00 UTC.

Handouts
Bash Cookbook for Archivists
Exercices
  • Use the md5sum external command rather than md5 to compute the MD5 checksum.
  • Check that no more than one parameter is passed to the script.
  • Modify the script to write the result into a file, named input_file_extension_md5.txt rather than to the Terminal.
Solution

Third Session

On Tuesday 1st February 2022 from 18:00 to 19:00 UTC.

Handouts
Bash Cookbook for Archivists
Exercice
  • Modify the script to compute also the checksum of the generated frame MD5 checksum manifest. Use all the different checksum tools that are installed on your computer (MD5, SHA-1, SHA-256, SHA-512, CRC-32, xxHash 32, xxHash 64 and/or xxHash 128).
Solution
Appendix

2022-02-14