CIS4385 - 2017 Spring
File typing

Please login into 45.56.74.139 using your private key created in assignment 1:

$ ssh -i id_CIS4385_rsa CIS4385_rlangley@45.56.74.139
Linux (none) 4.6.5-x86_64-linode71 #2 SMP Fri Jul 29 16:16:25 EDT 2016 x86_64

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Thu Jan 26 18:33:46 2017 from cs1069.cs.fsu.edu
CIS4385_rlangley@(none):~$ 

Your username is "CIS4385_${your FSUID}".

Please create a subdirectory named "bin/".

In that subdirectory, write a bash script named "file-identification.sh" that accepts as an argument a directory name; for each regular file in the directory, it should print the following information:

CIS4385_rlangley@(none):~/bin$ ./file-identification.sh /usr/local/dfwk-chap09
File '/usr/local/dfwk-chap09/File1':
====
  Size   :  26828
  MD5    :  8d458b95668b850ac0998dbe2ce5c191
  SHA1   :  187f882872093df732ab6ed13199797b573081bc
  SHA256 :  f3e925a7f62d135c3c3bf2eb2711ec46d7fce60e928b53b936d23dcf0059d3c6
  ident  :  /usr/local/dfwk-chap09/File1: Microsoft Word 2007+

File '/usr/local/dfwk-chap09/File10':
====
  Size   :  3305
  MD5    :  6df90889977c579779821785a86b4672
  SHA1   :  5684b08fca5fe01a40b0abef2a05f7f2ea64f796
  SHA256 :  37fca271fc9cb9e8500949c04408b3824aec000b1afc50c3f5bf4d15804989fa
  ident  :  /usr/local/dfwk-chap09/File10: GIF image data, version 89a, 550 x 400

File '/usr/local/dfwk-chap09/File2':
====
  Size   :  25088
  MD5    :  5f564f81b0533d48e50a51dbd0f55a6c
  SHA1   :  62848060ff7bedc2f12b2f045313fb7032fda915
  SHA256 :  63ad88c8438d1be618048206ce65ac7dc073926a2c7c378722286eb7a7eebfe9
  ident  :  /usr/local/dfwk-chap09/File2: Composite Document File V2 Document, Little Endian, Os: MacOS, Version 10.3, Code page: 10000, Author: Michael Robinson, Last Saved By: Michael Robinson, Name of Creating Application: Microsoft Macintosh Excel, Create Time/Date: Wed Oct 7 14:44:11 2015, Last Saved Time/Date: Wed Oct 7 14:45:02 2015, Security: 0

 [ ... ]

Please run your script on the test directory "/usr/local/dfwk-chap09", save the output to a file in your home directory named "chap09.txt", and also submit the "chap09.txt" file on Blackboard.