Skip to content

Commit 8e3356a

Browse files
committed
fix: sed-folder script-05sh
1 parent 8aa6a6d commit 8e3356a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎individual-shell-tools/sed/script-05.sh‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ set -euo pipefail
44

55
# TODO: Write a command to output input.txt with one change:
66
# If a line starts with a number and a space, make the line instead end with a space and the number.
7-
sed -E 's/^([0-9]+ )(.*)/\2 \1/g' input.txt
7+
sed -E 's/^([0-9]+) (.*)/\2 \1/g' input.txt
88
# So line 6 which currently reads "37 Alisha" should instead read "Alisha 37".
99
# The output should contain 11 lines.

0 commit comments

Comments
 (0)