Skip to content

Commit b970c48

Browse files
committed
Complete sed script-06: fix missing spaces after commas
1 parent d619370 commit b970c48

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

individual-shell-tools/sed/script-06.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
set -euo pipefail
44

55
# TODO: Write a command to output input.txt with one fix:
6+
sed 's/,\([^ ]\)/, \1/g' input.txt
67
# If a comma in input.txt is not followed by a space, add a space after.
78
# If there is already a space after a comma, do not add an additional space.
89
# The output should contain 11 lines.

0 commit comments

Comments
 (0)