The aim of this assignment is to continue familiarization with git and basic Unix commands.
-
In the repository, you will find a directory
files1
with a filelorem1.txt
inside it. Create a copy oflorem1.txt
calledlorem2.txt
inside thefiles1
directory. -
Use
cat
to concatenatelorem1.txt
and the newly createdlorem2.txt
, redirecting the output to a new filelorem3.txt
inside thefiles1
directory. -
Recursively copy
files1
tofiles2
.Your final directory/file structure for the repository should appear as
assignment2/ ├── .devcontainer | ├── Dockerfile | ├── conda_init.txt | ├── devcontainer.json | └── noop.txt ├── .github | ├── CODEOWNERS | └── workflows | ├── main.yml | ├── update-badges.yml | └── update-students-repo.yml ├── files1/ | ├── lorem1.txt | ├── lorem2.txt | └── lorem3.txt ├── files2/ | ├── lorem1.txt | ├── lorem2.txt | └── lorem3.txt ├── .gitignore ├── LICENSE ├── README.md ├── environment.yml └── test.py
-
Add the newly created files/directories to your
git
repository, commit, and push the changes to Github for submission.
If you would like to check to see if your solution is correct, simply run the following command at the Terminal command prompt
python test.py
a status message of OK
indicates you have the correct solution.