Informatics1-2017/HW1

A MathWikiből
(Változatok közti eltérés)
1. sor: 1. sor:
Send the commands that accomplish these tasks ([[Informatics1-2017#Homework|rules for handing in your homework]]).  
+
Send the commands that accomplish these tasks ([[Informatics1-2017#Homework|rules for handing in your homework]]). If you have no access to a linux (or mac) terminal / console, you can try [https://www.tutorialspoint.com/execute_bash_online.php 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 <tt>williamblake.txt</tt> from <tt>http://math.bme.hu/~kkovacs/info1/williamblake.txt</tt>.
 
* Download the text file <tt>williamblake.txt</tt> from <tt>http://math.bme.hu/~kkovacs/info1/williamblake.txt</tt>.

A lap 2017. szeptember 11., 19:49-kori változata

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 http://math.bme.hu/~kkovacs/info1/williamblake.txt.
    • 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.
Személyes eszközök