Skip to content

London 11 | Pezhman Azizi | Module-Tools | Shell Piplines | week2 #32

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

Pezhman-Azizi
Copy link

@Pezhman-Azizi Pezhman-Azizi commented Mar 7, 2025

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

This PR enhances the Shell Pipelines Exercises by implementing solutions using various command-line tools, including ls, sort, uniq, head, tail, and tr. These exercises focus on combining Unix commands efficiently to process text and manipulate data.

Key Updates
Implemented shell pipelines to filter, count, and transform text files using grep, wc, ls.
Applied sorting and deduplication techniques with sort and uniq.
Extracted and manipulated specific sections of data using head and tail.
Used tr for text transformation, such as case conversion and character replacement.
Improved efficiency by chaining multiple commands with pipes (|).
Why This PR?
Encourages hands-on practice with Unix pipelines.
Demonstrates how to combine multiple shell commands effectively.
Enhances the project’s scope by incorporating various text-processing techniques.

Questions

Ask any questions you have for your reviewer.

…ting names, scores, cities, and performing calculations.
…nd tr for efficient text processing and command-line data manipulation.
@Pezhman-Azizi Pezhman-Azizi added the Needs Review Participant to add when requesting review label Mar 7, 2025
Copy link

@ehwus ehwus left a comment

Choose a reason for hiding this comment

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

Great job Pezhman, all of the solutions work well and are both concise and expressive. You've demonstrated a great understanding of how and when to use shell pipelines, building on already strong foundations of shell tooling. Keep it up!

@@ -4,3 +4,4 @@ set -euo pipefail

# TODO: Write a command to count the number of files in the sample-files directory whose name starts with an upper case letter and doesn't contain any other upper case letters.
# Your output should be the number 7.
ls sample-files | grep -c '^[A-Z][^A-Z]*$'
Copy link

Choose a reason for hiding this comment

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

praise: This is a very clear regex for something that's quite complicated, nice job!

@ehwus ehwus added Reviewed Volunteer to add when completing a review and removed Needs Review Participant to add when requesting review labels Mar 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Reviewed Volunteer to add when completing a review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants