A MathWikiből

Send the commands that accomplish these tasks (rules for handing in your homework). If you have no access to a linux (or mac) terminal / console, you can try online bash, here you can write your code on the left field, when you press execute, the output of your code can be read on the right. It isn't perfect, but wget works, and all the tasks below can be completed using this tool.

  • Download the text file williamblake.txt from
    • wget
  • Count how many characters it has.
    • wc
  • Find the lines containing is.
    • grep
  • Count the lines containing and.
    • grep, wc, pipe
  • Write to a file named the.txt all the lines containing the word the.
    • grep, >
Személyes eszközök