Task 1
- Task 1 was basically about writing shell files(.sh) and using them...
- I saved the file hello.sh in
filefolder coding101/Task1 -
- hello.sh was created using vi using vi hello.sh command....I used ls -l to observe that the user had only the permission to read and write the code but not execute it...so I used chmod 754 hello.sh to give execution rights to the user and thus used ./hello.sh to execute the shell*
Task 2
- I copied the text from https://github.com/php/playground/blob/master/HelloWorld.txt
- I used grep to search for instances of 'World' in which I used command grep -i 'World' hello.txt
- I transferred the terminal output to output.txt using the command "grep 'World' hello.txt > output.txt"
Task 3
- *I created a public repo on my github account named coding-101 *
-
- I uploaded the coding101 file containing the previous two tasks using
- git init
- git add coding101
- git commit -m "tasks"
- git remote add coding https://github.com/sankr170104072/coding-101
- git push -u coding master
- git add README.md
- git commit -m "tasks3"
- git push*
- I uploaded the coding101 file containing the previous two tasks using
- Finally I am adding this README file