GithubHelp home page GithubHelp logo

command_line_hackathon's Introduction

Command Line Hackathon

Setup

  • git clone [email protected]:leopolicastro/command_line_hackathon.git.
  • cd into command_line_hackathon.
  • ls from within the command_line_hackathon folder. You should see a file called presidents.txt and one called README.md.

Your Task

Use only Terminal commands to achieve these goals. No cheating by using a GUI!

  • Make a new directory called presidents.
  • Move the presidents.txt file into the presidents directory.
  • Inside the presidents directory, make a new file called sorted.txt, which sorts the presidents in alphabetical order by first name.
  • Inside the presidents directory, make a new file called jameses.txt which contains all the presidents named James (Hint: grep).
  • Inside the presidents directory, make a new file called williams.txt, which contains all the presidents named William (Hint: grep).
  • Inside the presidents directory, make a new file called my_favorite.txt. Use echo to write the name of your favorite president inside.
  • Use curl to download the contents of this webpage (https://en.wikipedia.org/wiki/List_of_Presidents_of_the_United_States) into a file called presidents.html

Stretch Goals

  • There's a secret file in this repository, which tells you Andy's favorite president, as well as the reason. Inside the presidents directory, make a new file called andys_favorite.txt, which contains that information.
  • Inside the presidents directory, make a new file called presidents_with_middle_initials.txt, which contains all the presidents with middle initials. (Hint: https://stackoverflow.com/questions/10346816/using-grep-to-search-for-a-string-that-has-a-dot-in-it)
  • Inside the presidents directory, make a new file called common_first_names.txt, which has all of the first names that occur more than once.
  • Grover Cleveland is listed twice because he was elected to two nonconsecutive terms, so he shouldn't really be on this list. Figure out how to get him off the list.

command_line_hackathon's People

Contributors

leopolicastro avatar

Stargazers

Lucille Alvar avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.