Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a88e1de

Browse files
committed
added command line homework
1 parent 906a332 commit a88e1de

File tree

3 files changed

+55
-7
lines changed

3 files changed

+55
-7
lines changed

Week2/MAKEME.md

Lines changed: 31 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,37 @@ _Deadline Monday_
3131

3232
_Deadline Tuesday_
3333

34-
>We covered a bit of command line usage in the first class and got a program running which is great. If you need a refresher for the command line please have a look here: https://github.com/HackYourFuture/CommandLine
34+
>We covered a bit of command line usage in the first class and got a program running which is great. If you need a refresher for the command line please have a look here: https://github.com/HackYourFuture/CommandLine/blob/master/Lecture-1.md
3535
36-
Make the command line homework that is listed here: https://github.com/HackYourFuture/CommandLine/blob/master/HomeWork1.md
36+
```
37+
1. Research how to create a hidden file and how to display it using ls command.
38+
39+
2. Research how to create multiple nested directories with one mkdir command.
40+
E.g. How would you create 'fun' directory along with all directories in the path below:
41+
/c/Users/unmesh/these/folders/are/just/for/fun
42+
43+
3. Execute following commands terminal:
44+
echo "test" > fun
45+
echo "another test" >> fun
46+
wc -c fun
47+
48+
Verify number of characters in the file.
49+
50+
4. Research how to append something in the file *WITHOUT* a newline character.
51+
E.g.
52+
echo "test" > fun
53+
echo "another test" >> fun
54+
cat fun
55+
Output of "cat fun" is
56+
test
57+
another test
58+
59+
How would you use echo command, so that output would be:
60+
testanother test
61+
62+
```
3763

38-
## Step 2: Read/do/watch
64+
## Step 3: Read/do/watch
3965
- [Introduction to media queries](https://teamtreehouse.com/library/css3/media-queries/introduction)
4066
- [More about media queries](https://css-tricks.com/css-media-queries/)
4167
- [HTML syntax](http://www.w3schools.com/html/html5_syntax.asp)
@@ -50,7 +76,7 @@ Make the command line homework that is listed here: https://github.com/HackYourF
5076
- [flexboxfroggy](https://flexboxfroggy.com/)
5177
- [cssgridgarden](http://cssgridgarden.com/)
5278

53-
## Step 3: Assignment:
79+
## Step 4: Assignment
5480

5581
_Deadline Saturday_
5682

@@ -87,7 +113,7 @@ How to hand in your homework:
87113
- An animation using CSS keyframes
88114
- SVG
89115

90-
## Step 4: Prepare for next class
116+
## Step 5: Prepare for next class
91117

92118
_Deadline Sunday morning_
93119

Week3/MAKEME.md

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,29 @@ _Deadline Monday_
3131
- Revisit you own drone assignment and command line homework and improve it with the feedback and suggestions given by one of your classmates.
3232

3333

34-
## Step 2: Assignment
34+
## Step 2: Command Line
35+
36+
_Deadline Wednesday_
37+
38+
```
39+
Write ONE shell script to do following:
40+
1. create a directory. Enter a directory. Create an empty file named blank.
41+
2. Then write the content "Hello" five times to the file greetings.txt.
42+
Then copy the file greetings.txt and paste its contents into 1.txt, 2.txt, 3.txt, 4.txt and 5.txt.
43+
3. Then write the text "cat" to pets.txt
44+
Then append the text "dog" to pets.txt
45+
Then append the text "hamster" to pets.txt
46+
4. Then write the text "cat" to commands.txt
47+
Then append the text "ls" to commands.txt
48+
Then append the text "pwd" to commands.txt
49+
5. Then find unique strings from these two files pets.txt and commands.txt
50+
and store the unique strings in lovelyCommands.txt
51+
```
52+
53+
For and overview of the commands we learned in class please take a look at the overview of the [second lecture](https://github.com/HackYourFuture/CommandLine/blob/master/Lecture-2.md). If you need a refresher you can of course also go over the commands of the [first lecture](https://github.com/HackYourFuture/CommandLine/blob/master/Lecture-1.md)
54+
55+
56+
## Step 3: Assignment
3557

3658
_Deadline Saturday_
3759

Week3/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Reading material for the third lecture
22

33
```
4-
In week two we will discuss the following topics
4+
In week three we will discuss the following topics
55
• CLI
66
• Learn output redirection, piping on the terminal.
77
• Write basic shell scripts to ease the programming life.

0 commit comments

Comments
 (0)