Informatics1-2017/HW1

A MathWikiből
(Változatok közti eltérés)
(Új oldal, tartalma: „Send the commands that accomplish these tasks (rules for handing in your homework). * Download the text file <tt>williamblake.txt</tt> …”)
 
 
(egy szerkesztő 2 közbeeső változata nincs mutatva)
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>.
7. sor: 7. sor:
 
* Find the lines containing ''is''.
 
* Find the lines containing ''is''.
 
** <tt>grep</tt>
 
** <tt>grep</tt>
* Count the lines containong ''and''.
+
* Count the lines containing ''and''.
 
** <tt>grep, wc, pipe</tt>
 
** <tt>grep, wc, pipe</tt>
 
* Write to a file named '''the.txt''' all the lines containing the word ''the''.
 
* Write to a file named '''the.txt''' all the lines containing the word ''the''.
 +
** <tt>grep, ></tt>

A lap jelenlegi, 2017. szeptember 11., 20:50-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.
    • grep, >
Személyes eszközök