Dr. Mark Humphrys

School of Computing. Dublin City University.

Online coding site: Ancient Brain

coders   JavaScript worlds

Search:

Free AI exercises


Einstein - simple Shell scripts

Upload the following scripts to Einstein until you pass all the tests.

Scripts must use the names below.
(The names are clues!)



  1. ls3.sh
    • List files ending in "html" in current directory.

  2. ls4.sh
    • List files ending in "html" in all sub-directories of current directory.

  3. ls5.sh
    • List files beginning with "act1" in all sub-directories of current directory and sort them by size.

  4. du2.sh
    • List all directories below current directory and sort them by size.

  5. find2.sh
    • Find all directories below the current directory that include the string "he".

  6. grep4.sh
    • Search for the string "Dublin" in any case in all files ending in "html" in sub-directories of the current directory.