Open
Conversation
…into assignment
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changes are you trying to make? (e.g. Adding or removing code, refactoring existing code, adding reports)
Using shell I created a directory, moved data from one directory to another, listed contents of a directory, created multiple sub directories within a parent directory, copied and removed specific files from in large batches using wildcards, created a file listing all the files contained in multiple subfolders, resolved merging conflicts, and pushed and pulled code.
What did you learn from the changes you have made?
I learned that I need to find a more efficient way of dealing with subdirectories, and that I need a greater understanding of wildcards when trying to specify queries. They weren't always working how I expected them to based on my understanding of the cheat sheet.
Was there another approach you were thinking about making? If so, what approach(es) were you thinking of?
I tried using echo ./data/processed/* > ./data/inventory.txt to list all the files in the subfolder. While it didn't give me all the files, it did give me the three subfolders, which was interesting considering I figured it would just mimic "./data/processed/* > ./data/inventory.txt directly."
Were there any challenges? If so, what issue(s) did you face? How did you overcome it?
I struggled to use the wildcard with subdirectories, I ended up making a query with a separate request for each subdirectory path. However, there is likely a more efficient way that having to spell out each subdirectory. I also tried to apply combination techniques that I used with the cp command to the rm command and figured out they do not translate directly, it appears multiple requests in a single line are structured differently for those commands. I adjusted my requests accordingly.
How were these changes tested?
Changes were tested via my terminal and confirmed via terminal searches and my desktop. I also used the ls function prior to the rm function to ensure I understood what files would be deleted. I would also create dummy files and practice the commands on them if necessary.
A reference to a related issue in your repository (if applicable)
Still working on my understanding of what the repository is.
Checklist