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

Write perms script. #6 #44

Closed
wants to merge 4 commits into from
Closed

Conversation

rishyym0927
Copy link

Implemented a Bash script named perms.sh to accomplish the task.
Modified the script to accept file arguments and display their permissions in octal format.
Utilized the stat command to retrieve the permissions of each file and extract the last three digits to represent them in octal format.
Provided example usage in the script's comments to demonstrate how to run it and what output to expect.
Usage:

Save the script to a file named perms.sh.
Make the script executable with the command chmod +x perms.sh.
Run the script using ./perms.sh ..., replacing , , etc., with the filenames for which you want to display the permissions in octal format.

@rootCircle
Copy link
Member

There should be only one issue solved by a single PR, your PR seem to include codes for other issues as well, please remove that, make use of branches to cleanly perform that.

ping me here when you're done with those/need any help, so we can move forward with your PR!

fixes #6

@ecxtacy
Copy link

ecxtacy commented Mar 17, 2024

It might be favorable to create a new PR with a fresh branch, this one contains irrelevant commits of other branches. @rishyym0927 closing this for now.

@ecxtacy ecxtacy closed this Mar 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants