User Tools

Site Tools


labs:bash

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
labs:bash [2017/02/17 14:17]
thulrich [Useful resources]
labs:bash [2020/08/31 21:03] (current)
Line 16: Line 16:
 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 interesting part in Exercise 2. 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 interesting part in Exercise 2.
  
-  - Clone the git repository ''​10.0.0.1/​opt/​git/​ti2fp''​ into a folder called ''​ti2fp''​. The username is ''​git''​ and the password is ''​ti2lab''​.+  - Clone the git repository ''​<​nowiki>​ssh://​git@10.0.0.1/​opt/​git/​ti2fp</​nowiki>​''​ into a folder called ''​ti2fp''​. The username is ''​git''​ and the password is ''​ti2lab''​. ​(You will have to install git first.)
   - Create a new folder with the name of your nethz account.   - Create a new folder with the name of your nethz account.
   - Navigate into this folder and create a new git repository.   - Navigate into this folder and create a new git repository.
Line 42: Line 42:
   - Write the first three columns (Date, Open, High) of ''​msft.csv''​ into ''​msft2.csv''​.   - Write the first three columns (Date, Open, High) of ''​msft.csv''​ into ''​msft2.csv''​.
 ===== Exercise 3: Searching, pipes and xargs ===== ===== 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 will learn how to search for files by their name and their content. Moreover, you are supposed to use [[http://​tldp.org/​HOWTO/​Bash-Prog-Intro-HOWTO-4.html|Pipes]] and (sometimes) the [[https://​www.freebsd.org/​cgi/​man.cgi?​query=xargs&​sektion=1|xargs]] ​command to pass on the output of one command to another command.+In the previous exercise, all tasks could be solved with just one command by passing some parameters to this command. In this exercise, we will learn how to search for files by their name and their content. Moreover, you are supposed to use [[http://​tldp.org/​HOWTO/​Bash-Prog-Intro-HOWTO-4.html|Pipes]] and (sometimes) the ''​xargs'' ​command to pass on the output of one command to another command.
  
 Go to the ''​sourcecode''​ folder. There, you will find hundreds of Java files in different subfolders. It would be tedious to open them all in a text editor if you were looking for something, wouldn'​t it? Go to the ''​sourcecode''​ folder. There, you will find hundreds of Java files in different subfolders. It would be tedious to open them all in a text editor if you were looking for something, wouldn'​t it?
labs/bash.1487337430.txt.gz ยท Last modified: 2020/08/31 21:03 (external edit)