Skip to content

Conversation

@Geraldine-Edwards
Copy link

@Geraldine-Edwards Geraldine-Edwards commented Nov 4, 2025

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 contains the answers to the shell script exercises in the awk, cat, grep, ls, sed, and wc directories of the individual-shell-tools directory

Questions

N/A

@Geraldine-Edwards Geraldine-Edwards added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Nov 4, 2025
# If a line starts with a number and a space, make the line instead end with a space and the number.
# So line 6 which currently reads "37 Alisha" should instead read "Alisha 37".
# The output should contain 11 lines.
sed -E '/^[0-9]+ / s/^([0-9]+) (.*)/\2 \1/' input.txt No newline at end of file

Choose a reason for hiding this comment

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

Is this first ^[0-9]+ necessary here? What is it doing?

Copy link
Author

Choose a reason for hiding this comment

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

Oh yes I see, I'm not sure why it is there, I think I forgot to delete it when I was first building the command...and then when I ran bash it didn't cause an error so I have not noticed that it was still there...I have removed it now.

Choose a reason for hiding this comment

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

You've comitted this by accident, can you revert it from this PR?

Copy link
Author

Choose a reason for hiding this comment

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

Done!

@LonMcGregor
Copy link

Good start on this sprint's tasks, I have spotted a few areas where you could improve code further

@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. labels Nov 19, 2025
@Geraldine-Edwards Geraldine-Edwards added Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. and removed Reviewed Volunteer to add when completing a review with trainee action still to take. labels Nov 19, 2025
@LonMcGregor
Copy link

This looks good now, well done

@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. labels Nov 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 all review comments have been addressed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants