Skip to content

Conversation

@Pezhman-Azizi
Copy link

Learners, PR Template

Self checklist

  • I have titled my PR with Region | Cohort | FirstName LastName | Sprint | Assignment Title
  • My changes meet the requirements of the task
  • I have tested my changes
  • My changes follow the style guide

Changelist

This PR adds Python implementations of the three shell tools required for the sprint: cat, ls, and wc.
Each tool is implemented in its own commit for clarity and easier review.

This PR adds Python implementations of the three shell tools required for the sprint: cat, ls, and wc.
Each tool is implemented in its own commit for clarity and easier review.

🔹 What's Included

cat.py

  • Prints the contents of one or more files
  • Uses argparse
  • Matches basic behaviour of Unix cat

ls.py

  • Supports -1 (one entry per line)
  • Supports -a (show hidden files)
  • Uses os.listdir() and simple filtering

wc.py

  • Supports counting lines, words, and bytes
  • Implements flags -l, -w, -c
  • Supports multiple files and prints a total line
  • Uses argparse and UTF-8 byte counting

🔹 Notes

  • All tools behave as required in the sprint instructions
  • Each tool lives in its own folder (cat, ls, wc)
  • Each tool has its own clean commit for easier code review

@Pezhman-Azizi Pezhman-Azizi added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Dec 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant