Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Possible fix for a couple of questions #1

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions intermediate_terminal/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ Answer the following questions:

Write the following terminal commands to do the following (assume that `instructors.txt` is an imaginary file):

1. Find all files inside the `Desktop` folder that have a name of "learn." `find ~/Desktop -name "learn"`
2. Find all files inside the `Desktop` folder that start with a "P." `find ~/Desktop -name "P.*" `
1. Find all files inside the `Desktop` folder that have a name of "learn". `find ~/Desktop -name "learn"`
2. Find all files inside the `Desktop` folder that start with a "P". `find ~/Desktop -name "P*" `
3. Find all files inside the `Desktop` folder that end with `.txt`. `find ~/Desktop -name "*.txt" `
3. Find all files inside the `Desktop/views` folder that have the name `data` somewhere in their filename. `find ~/Desktop/views -name "*data*" `
4. Inside of the `instructors.txt` file, output the number of times the word "Elie" appears. `grep -c "Elie" instructors.txt`
4. Inside of the `instructors.txt` file, list all matches for any full word that starts with a capital "P." `grep -w "P.*" instructors.txt`
5. Inside of the `instructors.txt` file, list all the line numbers for any full word that starts with a "z" (it should match regardless of upper or lower case). `grep -ni "z.*" instructors.txt`
5. Inside of the `instructors.txt` file, list all the line numbers for any full word that starts with a "z" (it should match regardless of upper or lower case). `grep -wni "z.*" instructors.txt`