... | ... | @@ -17,7 +17,7 @@ change you make and you want to be able to go back to a previous version |
|
|
if you make a mistake (e.g., in a group project or for your master
|
|
|
thesis).
|
|
|
|
|
|
Edit
|
|
|
## Before you start
|
|
|
|
|
|
…take a look at the following manuals, they are here to support you
|
|
|
throughout this lab:
|
... | ... | @@ -42,7 +42,7 @@ throughout this lab: |
|
|
|
|
|
- Google
|
|
|
|
|
|
Edit
|
|
|
## Exercise 1: Bash and Git basics
|
|
|
|
|
|
In this exercise, you will use the most basic commands of git and bash.
|
|
|
Make yourself familiar with these tools before we start with the more
|
... | ... | @@ -83,7 +83,7 @@ interesting part in Exercise 2. |
|
|
|
|
|
14. Delete the file `still-empty.txt`.
|
|
|
|
|
|
Edit
|
|
|
## Exercise 2: Extracting data from files
|
|
|
|
|
|
In this exercise, you will see some basic commands to read data from
|
|
|
files. You can save the output of a program to a file by using
|
... | ... | @@ -110,7 +110,7 @@ files. You can save the output of a program to a file by using |
|
|
7. Write the first three columns (Date, Open, High) of `msft.csv` into
|
|
|
`msft2.csv`.
|
|
|
|
|
|
Edit
|
|
|
## Exercise 3: Searching, pipes and xargs
|
|
|
|
|
|
In the previous exercise, all tasks could be solved with just one
|
|
|
command by passing some parameters to this command. In this exercise, we
|
... | ... | @@ -156,7 +156,7 @@ text editor if you were looking for something, wouldn’t it? |
|
|
of files. For each of these files, write every line that contains
|
|
|
the word `static` into the file `static.txt`.
|
|
|
|
|
|
Edit
|
|
|
## Exercise 4: sed and Git branches
|
|
|
|
|
|
**sed** is a very powerful tool to edit text files on the command line.
|
|
|
It is often used for search-and-replace operations. As you will see
|
... | ... | @@ -181,7 +181,7 @@ in this exercise. |
|
|
|
|
|
6. Go back to the Git `master` branch.
|
|
|
|
|
|
Edit
|
|
|
## Exercise 5: Bash scripting
|
|
|
|
|
|
In this exercise we advise you to write bash scripts, i.e., \*.sh files.
|
|
|
They will make life a bit easier. You can find some basic information
|
... | ... | |