Skip to content

London | Ameneh Keshavarz | Implement-shell-tools| WEEK 4 #63

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 9 commits into
base: main
Choose a base branch
from

Conversation

Ameneh-Keshavarz
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

Briefly explain your PR.

Questions

Ask any questions you have for your reviewer.

@Ameneh-Keshavarz Ameneh-Keshavarz added the Needs Review Participant to add when requesting review label May 25, 2025
@chinar-amrutkar chinar-amrutkar self-assigned this Jun 21, 2025
@chinar-amrutkar chinar-amrutkar added the Review in progress This review is currently being reviewed. This label will be replaced by "Reviewed" soon. label Jun 21, 2025

Choose a reason for hiding this comment

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

This file should be in .gitignore

Choose a reason for hiding this comment

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

This file should be in .gitignore

Choose a reason for hiding this comment

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

Add a short comment to explain your logic

Copy link
Author

Choose a reason for hiding this comment

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

This program is a simple version of the 'wc' command. It counts lines, words, and characters in one or more text files. You can choose to count only lines (-l), words (-w), or characters (-c), or show all by default. I also added some comments in the code

Choose a reason for hiding this comment

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

Add a short comment to explain your logic

Copy link
Author

Choose a reason for hiding this comment

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

This program works like the 'cat' command. It reads one or more files (or input from the keyboard) and prints the content. You can choose to number all lines (-n) or only non-empty lines (-b). I also added some comments in the code.

Choose a reason for hiding this comment

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

Add a short comment to explain your logic

Copy link
Author

Choose a reason for hiding this comment

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

Sure, This program is a basic version of the 'ls' command . It lists the files and folders in a given directory and you can show hidden files with -a and print one item per line with -1. I also added some comments in the code.

@chinar-amrutkar chinar-amrutkar added Reviewed Volunteer to add when completing a review and removed Review in progress This review is currently being reviewed. This label will be replaced by "Reviewed" soon. labels Jun 21, 2025
@Ameneh-Keshavarz Ameneh-Keshavarz added the Complete Volunteer to add when work is complete and review comments have been addressed label Jun 22, 2025
Copy link

@chinar-amrutkar chinar-amrutkar left a comment

Choose a reason for hiding this comment

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

Looks good to me!

@chinar-amrutkar chinar-amrutkar removed Reviewed Volunteer to add when completing a review Needs Review Participant to add when requesting review labels Jun 22, 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 review comments have been addressed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants