Add a couple of questions
This commit is contained in:
		
							
								
								
									
										15
									
								
								exercises/shell/solutions/hello_world.md
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										15
									
								
								exercises/shell/solutions/hello_world.md
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,15 @@ | ||||
| ## Shell Scripting - Hello World | ||||
|  | ||||
| ### Objectives | ||||
|  | ||||
| 1. Define a variable with the string 'Hello World' | ||||
| 2. Print the value of the variable you've defined and redirect the output to the file "amazing_output.txt" | ||||
|  | ||||
| ### Solution | ||||
|  | ||||
| ``` | ||||
| #!/usr/bin/env bash | ||||
|  | ||||
| HW_STR="Hello World" | ||||
| echo $HW_STR > amazing_output.txt | ||||
| ``` | ||||
		Reference in New Issue
	
	Block a user