aboutsummaryrefslogtreecommitdiff
path: root/challenge-028/duncan-c-white/README
blob: 75c9f80743a781044d2ebef6afef107395b9c1da (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Challenge 1: "Write a script to check the file content without explicitly
reading the content. It should accept file name with path as command
line argument and print 'The file content is binary.' or else 'The file
content is ascii.' accordingly."

My notes: That's bafflingly unclear!  Without "explicitly" reading
the content, does that imply "implicitly" reading it is ok, or that
we're really not supposed to read the content at all.  In the former
case, I guess we can run "file" and parse the outout.  In the latter
case, unless there's some magic metadata somewhere else, that only
leaves file extensions.  In that case, we just need a hash of file
extension -> binary/ascii choices. Dull.  


Challenge 2: "Write a script to display Digital Clock. Feel free to be
as creative as you can when displaying digits. We expect bare minimum
something like '14:10:11'"

My notes: Sounds like a job for Tk:-)