Skip to content

Conversation

@sheetalkharab
Copy link

Learners, PR Template

Self checklist

  • I have committed my files one by one, on purpose, and for a reason
  • I have titled my PR with COHORT_NAME | FIRST_NAME LAST_NAME | REPO_NAME | WEEK
  • I have tested my changes
  • My changes follow the style guide
  • My changes meet the requirements of this task

Changelist

write some commands in script file to answer those question.

Questions

Ask any questions you have for your reviewer.

@sheetalkharab sheetalkharab added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Jul 14, 2025
@sheetalkharab sheetalkharab changed the title GLASGOW-JULY-25 | SHEETAL-KHARAB | MODULE TOOLS | WEEEK 1. Glasgow | 25-SDC-July | Sheetal Kharab | Sprint 1 | Shells tools exercise Jul 14, 2025
@chinar-amrutkar chinar-amrutkar self-assigned this Jul 22, 2025
@chinar-amrutkar chinar-amrutkar self-requested a review July 22, 2025 09:38
@LonMcGregor LonMcGregor added the Review in progress This review is currently being reviewed. This label will be replaced by "Reviewed" soon. label Aug 11, 2025
Copy link

@LonMcGregor LonMcGregor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work here - there are two commands I think you could take another look at


# TODO: Write a command to output the number of lines in dialogue.txt that contain the word Doctor (regardless of case).
# The output should be exactly the number 9.
grep -i 'Doctor' dialogue.txt | wc -l

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you resolve this task using only a single grep command?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@LonMcGregor Thank you for review. i made change as you suggest.


# TODO: Write a command to output input.txt removing any line which contains a number.
# The output should contain 6 lines.
grep -v '[0-9]' input.txt

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you complete this task using sed?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@LonMcGregor , I changed it using sed command.

@LonMcGregor LonMcGregor added Reviewed Volunteer to add when completing a review with trainee action still to take. and removed Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. Review in progress This review is currently being reviewed. This label will be replaced by "Reviewed" soon. labels Aug 11, 2025
@sheetalkharab sheetalkharab added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Aug 14, 2025
@LonMcGregor
Copy link

Great work - you are complete with this sprint now

@LonMcGregor LonMcGregor added Complete Volunteer to add when work is complete and all review comments have been addressed. and removed Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. Reviewed Volunteer to add when completing a review with trainee action still to take. labels Aug 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Complete Volunteer to add when work is complete and all review comments have been addressed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[TECH ED] Individual shell tools exercises

3 participants