We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1a80e47 commit 7b25afaCopy full SHA for 7b25afa
1 file changed
individual-shell-tools/sed/script-05.sh
@@ -6,4 +6,4 @@ set -euo pipefail
6
# If a line starts with a number and a space, make the line instead end with a space and the number.
7
# So line 6 which currently reads "37 Alisha" should instead read "Alisha 37".
8
# The output should contain 11 lines.
9
-sed "s/^\([0-9]\+\) \(.*\)$/\2 \1/" input.txt
+sed -E "s/^([0-9]+) (.*)$/\2 \1/" input.txt
0 commit comments