id
stringlengths
16
16
request
stringclasses
327 values
command
stringclasses
327 values
input_text
stringlengths
45
229
expected_output
stringlengths
18
284
validation_input
stringlengths
30
230
validation_output
stringlengths
0
283
family
stringclasses
34 values
difficulty
int64
1
2
split
stringclasses
1 value
source
stringclasses
1 value
license
stringclasses
1 value
sedweave-0009662
Print only the first 3 lines.
sed -n 1,3p
eli grove 44 ready chen ember 26 ready alice ember 9 pending chen harbor 29 active eli birch 6 failed alice delta 118 ready alice fable 5 closed
eli grove 44 ready chen ember 26 ready alice ember 9 pending
farah cobalt 59 ready bruno delta 120 active alice cobalt 32 failed hana grove 51 closed gus birch 96 ready chen delta 57 active chen grove 81 closed
farah cobalt 59 ready bruno delta 120 active alice cobalt 32 failed
first_n
1
train
original-grammar
CC-BY-4.0
sedweave-0009659
Print only lines containing ready; suppress all others.
sed -n /ready/p
bruno cobalt 119 pending dina harbor 94 ready farah amber 90 active gus cobalt 89 failed farah grove 35 failed hana grove 65 closed gus delta 9 ready eli delta 49 closed
dina harbor 94 ready gus delta 9 ready
alice ember 10 ready chen birch 92 closed chen ember 4 failed chen ember 120 failed alice ember 19 ready farah delta 2 active dina ember 30 closed chen cobalt 62 closed eli fable 31 pending
alice ember 10 ready alice ember 19 ready
regex_print
1
train
original-grammar
CC-BY-4.0
sedweave-0009660
Print lines 4 through 6, inclusive, and nothing else.
sed -n 4,6p
dina delta 100 active farah ember 105 pending bruno grove 97 failed alice fable 37 pending gus birch 46 pending gus ember 74 ready alice ember 65 active
alice fable 37 pending gus birch 46 pending gus ember 74 ready
alice fable 8 failed alice harbor 106 failed dina ember 96 closed chen delta 24 active bruno harbor 0 active chen cobalt 95 closed alice harbor 69 ready chen ember 24 pending chen cobalt 102 ready
chen delta 24 active bruno harbor 0 active chen cobalt 95 closed
line_range
1
train
original-grammar
CC-BY-4.0
sedweave-0009665
Print odd-numbered lines: lines 1, 3, 5, and so on.
sed -n '0~2p'
hana cobalt 70 ready alice harbor 17 ready hana fable 86 failed gus cobalt 10 closed bruno cobalt 30 closed eli grove 73 active farah harbor 2 failed chen birch 0 ready alice grove 19 failed
alice harbor 17 ready gus cobalt 10 closed eli grove 73 active chen birch 0 ready
dina harbor 69 closed dina cobalt 41 closed dina ember 59 closed hana amber 109 pending dina amber 102 active farah birch 50 active
dina cobalt 41 closed hana amber 109 pending farah birch 50 active
every_other
2
train
original-grammar
CC-BY-4.0
sedweave-0009666
Append the line reviewed immediately after every line containing pending.
sed '/pending/a reviewed'
farah harbor 51 closed eli birch 50 failed hana cobalt 43 failed farah ember 87 failed alice fable 77 failed eli birch 119 closed
farah harbor 51 closed eli birch 50 failed hana cobalt 43 failed farah ember 87 failed alice fable 77 failed eli birch 119 closed
alice fable 88 failed farah cobalt 64 closed gus amber 16 pending bruno harbor 45 ready alice grove 36 ready gus amber 94 active bruno ember 120 failed alice amber 49 active
alice fable 88 failed farah cobalt 64 closed gus amber 16 pending reviewed bruno harbor 45 ready alice grove 36 ready gus amber 94 active bruno ember 120 failed alice amber 49 active
append_after
2
train
original-grammar
CC-BY-4.0
sedweave-0009667
Insert the line follow_up immediately before every line containing failed.
sed '/failed/i follow_up'
alice delta 19 closed bruno amber 54 ready eli amber 25 active alice birch 19 pending farah birch 19 ready chen delta 4 failed farah harbor 75 active
alice delta 19 closed bruno amber 54 ready eli amber 25 active alice birch 19 pending farah birch 19 ready follow_up chen delta 4 failed farah harbor 75 active
dina ember 44 closed eli delta 15 active dina harbor 73 pending chen ember 20 closed chen grove 16 failed hana amber 112 pending farah ember 25 failed dina grove 87 active
dina ember 44 closed eli delta 15 active dina harbor 73 pending chen ember 20 closed follow_up chen grove 16 failed hana amber 112 pending follow_up farah ember 25 failed dina grove 87 active
insert_before
2
train
original-grammar
CC-BY-4.0
sedweave-0009663
Print only the last line of the input.
sed -n '$p'
hana harbor 29 failed gus harbor 54 active hana harbor 13 pending alice birch 57 pending gus delta 7 failed eli delta 18 ready bruno grove 81 failed
bruno grove 81 failed
chen fable 55 closed eli fable 98 failed chen ember 98 closed farah fable 34 failed bruno birch 51 closed bruno amber 35 closed
bruno amber 35 closed
last_line
1
train
original-grammar
CC-BY-4.0
sedweave-0009664
Delete the last line of the input and print all remaining lines.
sed '$d'
hana ember 9 closed alice birch 79 ready gus ember 112 failed hana cobalt 6 failed alice ember 94 ready chen cobalt 115 ready hana grove 100 pending hana amber 7 ready bruno ember 119 active
hana ember 9 closed alice birch 79 ready gus ember 112 failed hana cobalt 6 failed alice ember 94 ready chen cobalt 115 ready hana grove 100 pending hana amber 7 ready
alice cobalt 109 closed gus ember 44 active hana harbor 31 closed hana delta 23 active farah ember 47 pending eli delta 98 closed eli ember 33 closed
alice cobalt 109 closed gus ember 44 active hana harbor 31 closed hana delta 23 active farah ember 47 pending eli delta 98 closed
delete_last
1
train
original-grammar
CC-BY-4.0
sedweave-0009672
Collapse every run of spaces or tabs to a single space.
sed 's/[ \t]+/ /g'
farah cobalt 89 closed bruno ember 119 ready eli fable 56 closed bruno amber 25 pending farah grove 11 closed gus grove 32 ready eli grove 36 pending
farah cobalt 89 closed bruno ember 119 ready eli fable 56 closed bruno amber 25 pending farah grove 11 closed gus grove 32 ready eli grove 36 pending
farah fable 52 ready hana birch 103 pending dina fable 110 closed hana ember 12 closed eli delta 86 ready chen delta 66 pending alice fable 110 active gus amber 55 active hana birch 85 failed
farah fable 52 ready hana birch 103 pending dina fable 110 closed hana ember 12 closed eli delta 86 ready chen delta 66 pending alice fable 110 active gus amber 55 active hana birch 85 failed
collapse_space
1
train
original-grammar
CC-BY-4.0
sedweave-0009669
Delete all empty lines while preserving every nonempty line.
sed '/^$/d'
hana cobalt 27 closed dina grove 13 ready bruno delta 117 active gus cobalt 59 active bruno delta 21 closed hana cobalt 71 active
hana cobalt 27 closed dina grove 13 ready bruno delta 117 active gus cobalt 59 active bruno delta 21 closed hana cobalt 71 active
bruno fable 5 failed farah cobalt 10 closed gus cobalt 59 ready farah ember 19 active eli grove 47 pending farah grove 102 closed chen amber 114 failed bruno fable 38 closed hana harbor 0 failed
bruno fable 5 failed farah cobalt 10 closed gus cobalt 59 ready farah ember 19 active eli grove 47 pending farah grove 102 closed chen amber 114 failed bruno fable 38 closed hana harbor 0 failed
delete_blank
1
train
original-grammar
CC-BY-4.0
sedweave-0009673
Convert every input line to uppercase.
sed 's/.*/\U&/'
bruno fable 81 pending eli harbor 114 failed hana amber 85 failed eli fable 2 closed chen harbor 85 ready hana fable 32 pending bruno ember 41 active hana birch 53 failed
BRUNO FABLE 81 PENDING ELI HARBOR 114 FAILED HANA AMBER 85 FAILED ELI FABLE 2 CLOSED CHEN HARBOR 85 READY HANA FABLE 32 PENDING BRUNO EMBER 41 ACTIVE HANA BIRCH 53 FAILED
hana amber 58 active chen amber 104 closed bruno ember 94 failed chen ember 20 active gus grove 52 closed gus amber 98 active dina fable 20 closed eli birch 49 closed hana birch 16 pending
HANA AMBER 58 ACTIVE CHEN AMBER 104 CLOSED BRUNO EMBER 94 FAILED CHEN EMBER 20 ACTIVE GUS GROVE 52 CLOSED GUS AMBER 98 ACTIVE DINA FABLE 20 CLOSED ELI BIRCH 49 CLOSED HANA BIRCH 16 PENDING
uppercase
1
train
original-grammar
CC-BY-4.0
sedweave-0009670
Remove all leading spaces and tabs from each line.
sed 's/^[ \t]*//'
alice ember 55 closed eli grove 41 active eli amber 102 pending chen ember 57 closed alice delta 37 failed gus amber 67 ready farah ember 53 closed
alice ember 55 closed eli grove 41 active eli amber 102 pending chen ember 57 closed alice delta 37 failed gus amber 67 ready farah ember 53 closed
chen grove 67 failed alice amber 110 failed alice amber 62 pending bruno delta 9 closed chen harbor 15 ready eli grove 15 active hana harbor 0 active chen delta 50 failed
chen grove 67 failed alice amber 110 failed alice amber 62 pending bruno delta 9 closed chen harbor 15 ready eli grove 15 active hana harbor 0 active chen delta 50 failed
strip_leading
1
train
original-grammar
CC-BY-4.0
sedweave-0009675
Swap the first two whitespace-separated fields on every line.
sed 's/\([^ ]*\) \([^ ]*\)/\2 \1/'
bruno ember 73 closed farah delta 32 active bruno cobalt 50 failed dina cobalt 29 active eli fable 79 pending bruno grove 91 pending dina harbor 76 active eli grove 19 ready
ember bruno 73 closed delta farah 32 active cobalt bruno 50 failed cobalt dina 29 active fable eli 79 pending grove bruno 91 pending harbor dina 76 active grove eli 19 ready
eli harbor 87 active hana ember 17 failed bruno fable 0 active eli ember 33 active farah fable 95 closed gus amber 3 pending gus birch 30 failed eli delta 104 active
harbor eli 87 active ember hana 17 failed fable bruno 0 active ember eli 33 active fable farah 95 closed amber gus 3 pending birch gus 30 failed delta eli 104 active
swap_fields
2
train
original-grammar
CC-BY-4.0
sedweave-0009671
Remove all trailing spaces and tabs from each line.
sed 's/[ \t]*$//'
hana cobalt 77 active alice harbor 89 active hana birch 65 ready eli amber 35 failed farah ember 36 active farah fable 110 pending eli birch 91 closed
hana cobalt 77 active alice harbor 89 active hana birch 65 ready eli amber 35 failed farah ember 36 active farah fable 110 pending eli birch 91 closed
eli delta 85 closed eli birch 67 active chen fable 70 pending hana ember 104 pending bruno grove 102 failed eli cobalt 94 active eli birch 83 closed
eli delta 85 closed eli birch 67 active chen fable 70 pending hana ember 104 pending bruno grove 102 failed eli cobalt 94 active eli birch 83 closed
strip_trailing
1
train
original-grammar
CC-BY-4.0
sedweave-0009679
Comment out every input line by adding # and a space at the start.
sed 's/^/# /'
dina fable 111 ready bruno grove 80 pending farah delta 81 pending gus harbor 22 active alice grove 48 failed alice ember 54 active
# dina fable 111 ready # bruno grove 80 pending # farah delta 81 pending # gus harbor 22 active # alice grove 48 failed # alice ember 54 active
dina grove 58 closed dina delta 90 pending eli grove 104 ready alice amber 93 closed eli fable 103 ready gus cobalt 41 ready
# dina grove 58 closed # dina delta 90 pending # eli grove 104 ready # alice amber 93 closed # eli fable 103 ready # gus cobalt 41 ready
comment_lines
1
train
original-grammar
CC-BY-4.0
sedweave-0009680
Delete all lines beginning with #.
sed '/^#/d'
bruno fable 91 failed # note hana grove 70 ready hana grove 22 closed hana grove 42 pending alice grove 104 closed dina grove 80 closed gus ember 77 failed dina ember 115 closed alice grove 31 pending
bruno fable 91 failed hana grove 70 ready hana grove 22 closed hana grove 42 pending alice grove 104 closed dina grove 80 closed gus ember 77 failed dina ember 115 closed alice grove 31 pending
chen fable 80 failed # note chen delta 72 active bruno grove 10 active chen fable 18 ready bruno grove 114 active eli grove 66 failed
chen fable 80 failed chen delta 72 active bruno grove 10 active chen fable 18 ready bruno grove 114 active eli grove 66 failed
delete_comments
1
train
original-grammar
CC-BY-4.0
sedweave-0009683
Print only the block from the line containing fable through the line containing grove, inclusive.
sed -n /fable/,/grove/p
gus fable 117 failed chen delta 56 active hana cobalt 22 failed eli delta 96 active bruno delta 52 failed gus cobalt 95 ready dina grove 0 pending dina amber 115 ready
gus fable 117 failed chen delta 56 active hana cobalt 22 failed eli delta 96 active bruno delta 52 failed gus cobalt 95 ready dina grove 0 pending
chen harbor 54 pending eli birch 63 active bruno harbor 68 failed eli amber 95 active eli grove 16 active eli delta 64 pending chen cobalt 109 failed hana cobalt 74 pending farah amber 49 active
print_between
2
train
original-grammar
CC-BY-4.0
sedweave-0009677
Add the prefix notice followed by a space to the start of every line.
sed 's/^/notice /'
bruno amber 88 closed dina fable 108 closed dina birch 109 closed alice ember 55 ready hana fable 55 active farah grove 22 failed hana birch 46 pending
notice bruno amber 88 closed notice dina fable 108 closed notice dina birch 109 closed notice alice ember 55 ready notice hana fable 55 active notice farah grove 22 failed notice hana birch 46 pending
bruno amber 7 closed chen amber 22 ready gus ember 13 failed gus cobalt 66 ready dina fable 92 active dina grove 80 pending hana cobalt 46 active
notice bruno amber 7 closed notice chen amber 22 ready notice gus ember 13 failed notice gus cobalt 66 ready notice dina fable 92 active notice dina grove 80 pending notice hana cobalt 46 active
add_prefix
1
train
original-grammar
CC-BY-4.0
sedweave-0009674
Convert every input line to lowercase.
sed 's/.*/\L&/'
dina birch 112 failed farah fable 48 closed bruno amber 20 active hana fable 55 failed bruno amber 87 ready alice cobalt 34 failed
dina birch 112 failed farah fable 48 closed bruno amber 20 active hana fable 55 failed bruno amber 87 ready alice cobalt 34 failed
bruno amber 65 closed hana harbor 84 active bruno harbor 118 failed chen amber 11 active eli ember 98 failed gus delta 36 pending gus harbor 25 active
bruno amber 65 closed hana harbor 84 active bruno harbor 118 failed chen amber 11 active eli ember 98 failed gus delta 36 pending gus harbor 25 active
lowercase
1
train
original-grammar
CC-BY-4.0
sedweave-0009668
Replace every full line containing closed with the single line reviewed.
sed '/closed/c reviewed'
chen ember 27 active gus amber 41 pending bruno amber 47 failed bruno fable 2 ready hana birch 14 failed eli delta 51 active eli ember 4 active chen grove 70 pending hana amber 58 pending
chen ember 27 active gus amber 41 pending bruno amber 47 failed bruno fable 2 ready hana birch 14 failed eli delta 51 active eli ember 4 active chen grove 70 pending hana amber 58 pending
dina delta 10 ready bruno delta 108 failed gus birch 54 active bruno amber 107 closed hana ember 105 active farah fable 81 failed hana fable 48 ready
dina delta 10 ready bruno delta 108 failed gus birch 54 active reviewed hana ember 105 active farah fable 81 failed hana fable 48 ready
change_line
2
train
original-grammar
CC-BY-4.0
sedweave-0009682
Delete everything from the line containing ember through the line containing amber, inclusive.
sed /ember/,/amber/d
chen amber 25 pending dina amber 55 closed eli ember 37 active alice birch 73 ready dina ember 96 failed farah harbor 106 failed eli amber 32 ready gus ember 47 pending
chen amber 25 pending dina amber 55 closed
chen birch 91 pending bruno cobalt 115 failed chen birch 114 pending bruno cobalt 117 pending hana fable 89 pending dina delta 68 failed alice grove 99 closed bruno cobalt 75 closed
chen birch 91 pending bruno cobalt 115 failed chen birch 114 pending bruno cobalt 117 pending hana fable 89 pending dina delta 68 failed alice grove 99 closed bruno cobalt 75 closed
delete_between
2
train
original-grammar
CC-BY-4.0
sedweave-0009681
Print only the first 5 characters of each line.
sed 's/^\(.\{5\}\).*/\1/'
bruno amber 114 failed eli cobalt 76 ready chen cobalt 76 closed hana birch 3 ready dina harbor 7 active farah harbor 28 pending chen birch 4 closed dina birch 90 failed dina grove 90 active
bruno eli c chen hana dina farah chen dina dina
alice birch 38 active chen birch 24 ready alice harbor 105 ready farah grove 64 closed alice ember 56 closed hana grove 88 active hana ember 56 failed
alice chen alice farah alice hana hana
first_chars
2
train
original-grammar
CC-BY-4.0
sedweave-0009676
Replace every comma with a tab character.
sed 's/,/\t/g'
bruno,birch,46,active eli,harbor,96,active dina,cobalt,86,ready alice,grove,99,ready dina,grove,57,pending chen,grove,95,failed dina,cobalt,103,pending
bruno birch 46 active eli harbor 96 active dina cobalt 86 ready alice grove 99 ready dina grove 57 pending chen grove 95 failed dina cobalt 103 pending
bruno,cobalt,33,failed chen,delta,36,pending chen,grove,51,active gus,ember,51,ready farah,cobalt,87,pending alice,cobalt,96,active
bruno cobalt 33 failed chen delta 36 pending chen grove 51 active gus ember 51 ready farah cobalt 87 pending alice cobalt 96 active
comma_to_tab
1
train
original-grammar
CC-BY-4.0
sedweave-0009678
Append a space and reviewed to the end of every line.
sed 's/$/ reviewed/'
bruno delta 96 ready bruno ember 55 ready chen cobalt 70 closed bruno fable 35 closed chen delta 96 active chen cobalt 81 closed gus delta 81 active
bruno delta 96 ready reviewed bruno ember 55 ready reviewed chen cobalt 70 closed reviewed bruno fable 35 closed reviewed chen delta 96 active reviewed chen cobalt 81 closed reviewed gus delta 81 active reviewed
bruno harbor 4 ready gus harbor 1 ready hana amber 11 ready bruno grove 49 failed alice harbor 63 active alice grove 111 ready
bruno harbor 4 ready reviewed gus harbor 1 ready reviewed hana amber 11 ready reviewed bruno grove 49 failed reviewed alice harbor 63 active reviewed alice grove 111 ready reviewed
add_suffix
1
train
original-grammar
CC-BY-4.0
sedweave-0009685
Replace every sequence of digits with the letter N.
sed 's/[0-9][0-9]*/N/g'
dina harbor 95 failed bruno delta 81 pending gus grove 30 ready bruno cobalt 1 failed bruno birch 113 ready chen birch 1 closed
dina harbor N failed bruno delta N pending gus grove N ready bruno cobalt N failed bruno birch N ready chen birch N closed
dina grove 118 pending bruno cobalt 109 closed farah delta 27 failed bruno grove 75 ready farah cobalt 54 failed dina fable 43 failed chen amber 11 active
dina grove N pending bruno cobalt N closed farah delta N failed bruno grove N ready farah cobalt N failed dina fable N failed chen amber N active
digits_mask
1
train
original-grammar
CC-BY-4.0
sedweave-0009686
Print each input line's number, without printing the line contents.
sed =
chen harbor 114 closed farah grove 77 pending gus cobalt 88 closed eli cobalt 58 pending eli grove 81 active gus fable 90 failed
1 chen harbor 114 closed 2 farah grove 77 pending 3 gus cobalt 88 closed 4 eli cobalt 58 pending 5 eli grove 81 active 6 gus fable 90 failed
gus birch 12 ready chen fable 2 pending alice delta 57 active chen amber 108 failed farah cobalt 41 pending farah harbor 111 closed alice birch 11 closed farah grove 116 ready gus fable 68 ready
1 gus birch 12 ready 2 chen fable 2 pending 3 alice delta 57 active 4 chen amber 108 failed 5 farah cobalt 41 pending 6 farah harbor 111 closed 7 alice birch 11 closed 8 farah grove 116 ready 9 gus fable 68 ready
number_lines
1
train
original-grammar
CC-BY-4.0
sedweave-0009687
Remove the first character from every line.
sed 's/^.//'
farah ember 100 pending eli delta 88 ready alice grove 6 closed gus birch 24 closed eli amber 83 active hana cobalt 71 closed chen harbor 53 pending
arah ember 100 pending li delta 88 ready lice grove 6 closed us birch 24 closed li amber 83 active ana cobalt 71 closed hen harbor 53 pending
hana ember 53 ready bruno amber 108 pending farah cobalt 56 pending hana amber 32 failed farah birch 57 active farah amber 52 failed bruno fable 101 failed hana fable 91 active gus amber 40 pending
ana ember 53 ready runo amber 108 pending arah cobalt 56 pending ana amber 32 failed arah birch 57 active arah amber 52 failed runo fable 101 failed ana fable 91 active us amber 40 pending
delete_first_char
1
train
original-grammar
CC-BY-4.0
sedweave-0009688
Remove the last character from every line.
sed 's/.$//'
farah fable 71 pending alice delta 73 active bruno fable 26 active farah fable 91 ready chen amber 82 active alice grove 11 ready farah fable 98 closed
farah fable 71 pendin alice delta 73 activ bruno fable 26 activ farah fable 91 read chen amber 82 activ alice grove 11 read farah fable 98 close
chen cobalt 75 ready alice fable 109 closed eli delta 0 pending gus grove 4 failed farah grove 6 ready dina amber 43 failed farah fable 8 ready dina delta 102 failed gus birch 85 pending
chen cobalt 75 read alice fable 109 close eli delta 0 pendin gus grove 4 faile farah grove 6 read dina amber 43 faile farah fable 8 read dina delta 102 faile gus birch 85 pendin
delete_last_char
1
train
original-grammar
CC-BY-4.0
sedweave-0009684
Remove all HTML-like angle-bracket tags from the text.
sed 's/<[^>]*>//g'
<p>amber <b>birch</b></p> <span>delta</span>
amber birch delta
<div>grove <i>fable</i></div>
grove fable
remove_html
1
train
original-grammar
CC-BY-4.0
sedweave-0009689
Print only the second comma-separated field from each line.
sed 's/[^,]*,\([^,]*\).*/\1/'
chen,cobalt,85,closed hana,grove,87,ready hana,birch,115,failed hana,harbor,100,closed chen,harbor,93,closed bruno,ember,42,failed eli,birch,114,ready dina,amber,96,pending chen,cobalt,14,closed
cobalt grove birch harbor harbor ember birch amber cobalt
bruno,amber,76,pending gus,birch,107,failed gus,amber,54,closed eli,cobalt,18,failed farah,grove,98,pending dina,grove,91,pending
amber birch amber cobalt grove grove
extract_second_csv
2
train
original-grammar
CC-BY-4.0
sedweave-0009702
Replace every full line containing failed with the single line reviewed.
sed '/failed/c reviewed'
dina cobalt 46 failed bruno amber 118 failed eli delta 53 closed alice cobalt 26 pending chen amber 80 active hana grove 40 closed
reviewed reviewed eli delta 53 closed alice cobalt 26 pending chen amber 80 active hana grove 40 closed
eli amber 14 pending hana cobalt 112 ready gus cobalt 13 closed eli birch 98 active alice ember 78 failed gus grove 97 ready eli delta 109 failed gus harbor 5 pending gus amber 53 failed
eli amber 14 pending hana cobalt 112 ready gus cobalt 13 closed eli birch 98 active reviewed gus grove 97 ready reviewed gus harbor 5 pending reviewed
change_line
2
train
original-grammar
CC-BY-4.0
sedweave-0009700
Append the line complete immediately after every line containing failed.
sed '/failed/a complete'
eli ember 16 ready dina birch 52 failed bruno ember 35 ready bruno harbor 79 active eli delta 74 failed bruno amber 14 pending gus ember 96 closed dina birch 46 active eli birch 47 failed
eli ember 16 ready dina birch 52 failed complete bruno ember 35 ready bruno harbor 79 active eli delta 74 failed complete bruno amber 14 pending gus ember 96 closed dina birch 46 active eli birch 47 failed complete
eli cobalt 10 active farah delta 56 pending gus birch 0 failed farah cobalt 89 failed bruno ember 111 pending gus fable 34 ready farah birch 77 active
eli cobalt 10 active farah delta 56 pending gus birch 0 failed complete farah cobalt 89 failed complete bruno ember 111 pending gus fable 34 ready farah birch 77 active
append_after
2
train
original-grammar
CC-BY-4.0
sedweave-0009701
Insert the line follow_up immediately before every line containing pending.
sed '/pending/i follow_up'
hana cobalt 68 ready hana ember 50 ready dina grove 70 ready hana amber 80 ready eli grove 111 pending alice grove 49 ready
hana cobalt 68 ready hana ember 50 ready dina grove 70 ready hana amber 80 ready follow_up eli grove 111 pending alice grove 49 ready
hana harbor 1 closed gus cobalt 20 active bruno delta 96 failed farah cobalt 96 ready alice grove 114 failed gus amber 64 failed hana grove 112 failed
hana harbor 1 closed gus cobalt 20 active bruno delta 96 failed farah cobalt 96 ready alice grove 114 failed gus amber 64 failed hana grove 112 failed
insert_before
2
train
original-grammar
CC-BY-4.0
sedweave-0009703
Delete all empty lines while preserving every nonempty line.
sed '/^$/d'
gus amber 25 active eli amber 108 ready chen amber 118 ready alice grove 63 ready dina harbor 51 failed chen amber 17 ready farah birch 64 pending bruno amber 62 pending
gus amber 25 active eli amber 108 ready chen amber 118 ready alice grove 63 ready dina harbor 51 failed chen amber 17 ready farah birch 64 pending bruno amber 62 pending
chen birch 40 closed gus fable 23 closed chen birch 12 pending eli ember 78 failed eli delta 71 failed alice fable 114 pending eli harbor 63 failed dina delta 35 active eli delta 107 failed
chen birch 40 closed gus fable 23 closed chen birch 12 pending eli ember 78 failed eli delta 71 failed alice fable 114 pending eli harbor 63 failed dina delta 35 active eli delta 107 failed
delete_blank
1
train
original-grammar
CC-BY-4.0
sedweave-0009705
Remove all trailing spaces and tabs from each line.
sed 's/[ \t]*$//'
hana ember 13 failed alice grove 75 failed farah cobalt 32 failed alice amber 99 ready eli grove 54 ready alice cobalt 103 pending hana birch 84 ready bruno fable 55 pending gus harbor 59 ready
hana ember 13 failed alice grove 75 failed farah cobalt 32 failed alice amber 99 ready eli grove 54 ready alice cobalt 103 pending hana birch 84 ready bruno fable 55 pending gus harbor 59 ready
bruno grove 69 failed bruno birch 94 pending dina harbor 61 active dina cobalt 61 pending hana cobalt 86 ready farah fable 11 active gus harbor 35 closed eli amber 55 active
bruno grove 69 failed bruno birch 94 pending dina harbor 61 active dina cobalt 61 pending hana cobalt 86 ready farah fable 11 active gus harbor 35 closed eli amber 55 active
strip_trailing
1
train
original-grammar
CC-BY-4.0
sedweave-0009704
Remove all leading spaces and tabs from each line.
sed 's/^[ \t]*//'
bruno amber 8 pending chen fable 24 active farah amber 68 failed eli fable 102 ready alice amber 46 pending eli fable 43 closed gus birch 10 ready hana harbor 45 active hana amber 97 pending
bruno amber 8 pending chen fable 24 active farah amber 68 failed eli fable 102 ready alice amber 46 pending eli fable 43 closed gus birch 10 ready hana harbor 45 active hana amber 97 pending
bruno fable 76 closed farah fable 92 ready eli ember 108 active hana cobalt 52 closed dina ember 82 pending chen amber 59 closed farah grove 111 ready
bruno fable 76 closed farah fable 92 ready eli ember 108 active hana cobalt 52 closed dina ember 82 pending chen amber 59 closed farah grove 111 ready
strip_leading
1
train
original-grammar
CC-BY-4.0
sedweave-0009707
Convert every input line to uppercase.
sed 's/.*/\U&/'
gus cobalt 51 failed alice birch 116 active eli amber 34 failed hana cobalt 0 closed farah ember 26 ready eli birch 9 active chen birch 50 ready
GUS COBALT 51 FAILED ALICE BIRCH 116 ACTIVE ELI AMBER 34 FAILED HANA COBALT 0 CLOSED FARAH EMBER 26 READY ELI BIRCH 9 ACTIVE CHEN BIRCH 50 READY
gus grove 10 ready chen delta 10 pending chen grove 53 closed eli harbor 43 failed eli cobalt 74 failed farah birch 46 pending bruno ember 2 closed
GUS GROVE 10 READY CHEN DELTA 10 PENDING CHEN GROVE 53 CLOSED ELI HARBOR 43 FAILED ELI COBALT 74 FAILED FARAH BIRCH 46 PENDING BRUNO EMBER 2 CLOSED
uppercase
1
train
original-grammar
CC-BY-4.0
sedweave-0009709
Swap the first two whitespace-separated fields on every line.
sed 's/\([^ ]*\) \([^ ]*\)/\2 \1/'
chen fable 37 pending bruno harbor 106 pending chen grove 1 failed eli harbor 17 active gus grove 110 active gus grove 34 active
fable chen 37 pending harbor bruno 106 pending grove chen 1 failed harbor eli 17 active grove gus 110 active grove gus 34 active
dina ember 77 pending bruno amber 23 closed eli harbor 72 ready chen amber 120 failed bruno cobalt 71 failed gus delta 49 active gus harbor 64 failed eli cobalt 111 active
ember dina 77 pending amber bruno 23 closed harbor eli 72 ready amber chen 120 failed cobalt bruno 71 failed delta gus 49 active harbor gus 64 failed cobalt eli 111 active
swap_fields
2
train
original-grammar
CC-BY-4.0
sedweave-0009706
Collapse every run of spaces or tabs to a single space.
sed 's/[ \t]+/ /g'
hana fable 7 ready gus grove 9 active hana cobalt 56 failed dina ember 31 pending alice harbor 91 pending alice fable 55 pending farah grove 88 active
hana fable 7 ready gus grove 9 active hana cobalt 56 failed dina ember 31 pending alice harbor 91 pending alice fable 55 pending farah grove 88 active
farah cobalt 10 active hana ember 62 active dina birch 100 failed gus delta 97 ready bruno birch 95 failed eli birch 60 failed eli cobalt 107 ready
farah cobalt 10 active hana ember 62 active dina birch 100 failed gus delta 97 ready bruno birch 95 failed eli birch 60 failed eli cobalt 107 ready
collapse_space
1
train
original-grammar
CC-BY-4.0
sedweave-0009710
Replace every comma with a tab character.
sed 's/,/\t/g'
bruno,fable,102,closed gus,grove,40,active chen,harbor,4,pending farah,birch,101,active alice,delta,28,failed hana,delta,69,pending farah,birch,30,closed
bruno fable 102 closed gus grove 40 active chen harbor 4 pending farah birch 101 active alice delta 28 failed hana delta 69 pending farah birch 30 closed
eli,fable,55,closed alice,grove,79,pending eli,cobalt,73,closed hana,ember,8,closed gus,amber,109,closed chen,delta,25,failed chen,fable,110,failed dina,harbor,67,failed eli,amber,75,closed
eli fable 55 closed alice grove 79 pending eli cobalt 73 closed hana ember 8 closed gus amber 109 closed chen delta 25 failed chen fable 110 failed dina harbor 67 failed eli amber 75 closed
comma_to_tab
1
train
original-grammar
CC-BY-4.0
sedweave-0009715
Print only the first 5 characters of each line.
sed 's/^\(.\{5\}\).*/\1/'
dina birch 9 active gus birch 2 pending eli delta 104 pending farah ember 17 ready eli cobalt 120 pending alice delta 56 pending chen grove 24 ready hana cobalt 39 ready
dina gus b eli d farah eli c alice chen hana
farah ember 85 closed chen cobalt 21 active alice grove 30 pending hana amber 76 failed alice amber 74 failed chen grove 107 ready eli cobalt 70 closed bruno birch 31 failed eli grove 85 active
farah chen alice hana alice chen eli c bruno eli g
first_chars
2
train
original-grammar
CC-BY-4.0
sedweave-0009716
Delete everything from the line containing delta through the line containing harbor, inclusive.
sed /delta/,/harbor/d
dina birch 23 ready bruno fable 60 closed bruno cobalt 1 active alice cobalt 17 failed alice fable 61 ready alice cobalt 97 failed dina grove 92 closed alice cobalt 54 closed
dina birch 23 ready bruno fable 60 closed bruno cobalt 1 active alice cobalt 17 failed alice fable 61 ready alice cobalt 97 failed dina grove 92 closed alice cobalt 54 closed
farah cobalt 60 failed gus amber 112 ready bruno birch 96 closed dina amber 57 pending farah grove 91 failed hana harbor 53 closed dina harbor 85 active dina fable 52 ready
farah cobalt 60 failed gus amber 112 ready bruno birch 96 closed dina amber 57 pending farah grove 91 failed hana harbor 53 closed dina harbor 85 active dina fable 52 ready
delete_between
2
train
original-grammar
CC-BY-4.0
sedweave-0009711
Add the prefix record followed by a space to the start of every line.
sed 's/^/record /'
chen amber 92 closed chen grove 15 closed hana cobalt 66 failed farah ember 97 closed gus amber 17 ready dina cobalt 68 failed farah ember 36 ready alice delta 106 closed
record chen amber 92 closed record chen grove 15 closed record hana cobalt 66 failed record farah ember 97 closed record gus amber 17 ready record dina cobalt 68 failed record farah ember 36 ready record alice delta 106 closed
chen ember 59 active hana ember 1 failed hana cobalt 3 active chen fable 91 failed farah delta 48 closed hana birch 93 failed dina birch 29 active chen delta 73 ready
record chen ember 59 active record hana ember 1 failed record hana cobalt 3 active record chen fable 91 failed record farah delta 48 closed record hana birch 93 failed record dina birch 29 active record chen delta 73 ready
add_prefix
1
train
original-grammar
CC-BY-4.0
sedweave-0009717
Print only the block from the line containing ember through the line containing birch, inclusive.
sed -n /ember/,/birch/p
farah cobalt 18 failed chen birch 79 pending hana fable 37 ready bruno cobalt 1 closed chen birch 99 active dina ember 85 failed
dina ember 85 failed
chen cobalt 107 ready dina delta 91 failed bruno delta 16 ready gus amber 15 ready farah grove 73 ready eli harbor 105 closed gus cobalt 3 failed
print_between
2
train
original-grammar
CC-BY-4.0
sedweave-0009718
Remove all HTML-like angle-bracket tags from the text.
sed 's/<[^>]*>//g'
<p>amber <b>birch</b></p> <span>delta</span>
amber birch delta
<div>grove <i>fable</i></div>
grove fable
remove_html
1
train
original-grammar
CC-BY-4.0
sedweave-0009713
Comment out every input line by adding # and a space at the start.
sed 's/^/# /'
gus grove 24 failed gus delta 94 active farah grove 85 closed bruno fable 53 active farah delta 103 ready alice delta 61 pending
# gus grove 24 failed # gus delta 94 active # farah grove 85 closed # bruno fable 53 active # farah delta 103 ready # alice delta 61 pending
farah grove 119 ready hana ember 35 ready dina amber 9 active bruno cobalt 80 active farah fable 74 active bruno birch 13 closed
# farah grove 119 ready # hana ember 35 ready # dina amber 9 active # bruno cobalt 80 active # farah fable 74 active # bruno birch 13 closed
comment_lines
1
train
original-grammar
CC-BY-4.0
sedweave-0009712
Append a space and done to the end of every line.
sed 's/$/ done/'
alice harbor 89 ready farah amber 117 active alice amber 81 closed bruno fable 65 active farah ember 99 active eli birch 118 pending
alice harbor 89 ready done farah amber 117 active done alice amber 81 closed done bruno fable 65 active done farah ember 99 active done eli birch 118 pending done
dina ember 33 failed eli grove 14 active gus delta 74 pending farah ember 94 ready farah amber 58 closed hana amber 47 pending
dina ember 33 failed done eli grove 14 active done gus delta 74 pending done farah ember 94 ready done farah amber 58 closed done hana amber 47 pending done
add_suffix
1
train
original-grammar
CC-BY-4.0
sedweave-0009708
Convert every input line to lowercase.
sed 's/.*/\L&/'
hana amber 74 ready farah harbor 50 failed chen harbor 101 ready eli grove 30 failed eli amber 85 active bruno fable 46 closed
hana amber 74 ready farah harbor 50 failed chen harbor 101 ready eli grove 30 failed eli amber 85 active bruno fable 46 closed
eli cobalt 19 ready bruno harbor 115 ready chen birch 117 ready hana harbor 14 closed gus harbor 55 closed alice fable 94 ready bruno fable 100 active eli delta 62 active
eli cobalt 19 ready bruno harbor 115 ready chen birch 117 ready hana harbor 14 closed gus harbor 55 closed alice fable 94 ready bruno fable 100 active eli delta 62 active
lowercase
1
train
original-grammar
CC-BY-4.0
sedweave-0009714
Delete all lines beginning with #.
sed '/^#/d'
farah amber 75 pending # note gus fable 67 failed alice fable 100 active chen ember 107 ready eli fable 39 ready gus cobalt 92 failed
farah amber 75 pending gus fable 67 failed alice fable 100 active chen ember 107 ready eli fable 39 ready gus cobalt 92 failed
gus cobalt 97 pending # note alice grove 83 ready hana birch 102 active bruno birch 4 failed alice harbor 39 closed dina cobalt 111 failed
gus cobalt 97 pending alice grove 83 ready hana birch 102 active bruno birch 4 failed alice harbor 39 closed dina cobalt 111 failed
delete_comments
1
train
original-grammar
CC-BY-4.0
sedweave-0009720
Print each input line's number, without printing the line contents.
sed =
dina harbor 119 failed farah birch 10 pending dina birch 7 closed gus delta 76 failed dina amber 83 failed bruno fable 40 closed eli birch 53 failed
1 dina harbor 119 failed 2 farah birch 10 pending 3 dina birch 7 closed 4 gus delta 76 failed 5 dina amber 83 failed 6 bruno fable 40 closed 7 eli birch 53 failed
dina delta 43 pending alice ember 103 active hana grove 86 active farah amber 19 ready eli harbor 34 ready alice fable 3 failed
1 dina delta 43 pending 2 alice ember 103 active 3 hana grove 86 active 4 farah amber 19 ready 5 eli harbor 34 ready 6 alice fable 3 failed
number_lines
1
train
original-grammar
CC-BY-4.0
sedweave-0009725
Replace every occurrence of grove with birch throughout the input.
sed s/grove/birch/g
dina fable 120 pending alice cobalt 9 pending hana delta 100 pending gus grove 99 pending bruno delta 116 closed bruno amber 83 active dina amber 30 pending dina fable 61 failed alice fable 60 pending
dina fable 120 pending alice cobalt 9 pending hana delta 100 pending gus birch 99 pending bruno delta 116 closed bruno amber 83 active dina amber 30 pending dina fable 61 failed alice fable 60 pending
bruno birch 21 closed bruno harbor 101 failed dina ember 7 active eli fable 26 active hana birch 54 pending bruno cobalt 60 pending gus grove 110 failed dina ember 52 pending
bruno birch 21 closed bruno harbor 101 failed dina ember 7 active eli fable 26 active hana birch 54 pending bruno cobalt 60 pending gus birch 110 failed dina ember 52 pending
substitute_global
1
train
original-grammar
CC-BY-4.0
sedweave-0009719
Replace every sequence of digits with the letter N.
sed 's/[0-9][0-9]*/N/g'
gus delta 46 pending hana birch 38 ready alice cobalt 54 failed alice ember 54 pending alice delta 19 failed farah fable 72 failed
gus delta N pending hana birch N ready alice cobalt N failed alice ember N pending alice delta N failed farah fable N failed
bruno amber 72 ready eli harbor 12 ready eli grove 42 active chen fable 17 closed farah birch 36 active chen grove 58 closed
bruno amber N ready eli harbor N ready eli grove N active chen fable N closed farah birch N active chen grove N closed
digits_mask
1
train
original-grammar
CC-BY-4.0
sedweave-0009731
Print only the last line of the input.
sed -n '$p'
eli grove 61 closed chen delta 16 ready gus birch 29 failed hana birch 90 failed hana birch 89 pending eli fable 105 closed
eli fable 105 closed
dina ember 41 closed hana grove 72 active alice harbor 46 pending bruno grove 99 closed gus grove 22 closed eli delta 69 closed eli cobalt 60 closed bruno harbor 52 closed dina amber 13 closed
dina amber 13 closed
last_line
1
train
original-grammar
CC-BY-4.0
sedweave-0009724
Replace the first occurrence of birch with delta on each line.
sed s/birch/delta/
gus cobalt 108 pending bruno birch 68 active bruno cobalt 58 ready dina harbor 40 pending gus ember 108 active gus cobalt 46 failed farah birch 11 pending farah grove 15 active
gus cobalt 108 pending bruno delta 68 active bruno cobalt 58 ready dina harbor 40 pending gus ember 108 active gus cobalt 46 failed farah delta 11 pending farah grove 15 active
farah ember 5 failed eli cobalt 14 active dina delta 54 pending alice ember 73 ready alice amber 83 failed gus grove 19 pending dina grove 53 closed hana cobalt 103 closed chen amber 79 closed
farah ember 5 failed eli cobalt 14 active dina delta 54 pending alice ember 73 ready alice amber 83 failed gus grove 19 pending dina grove 53 closed hana cobalt 103 closed chen amber 79 closed
substitute_first
1
train
original-grammar
CC-BY-4.0
sedweave-0009730
Print only the first 4 lines.
sed -n 1,4p
alice grove 24 failed dina birch 87 failed alice amber 41 closed dina grove 44 pending alice birch 30 ready chen grove 116 failed hana grove 87 pending gus grove 109 failed alice cobalt 23 failed
alice grove 24 failed dina birch 87 failed alice amber 41 closed dina grove 44 pending
hana delta 110 pending chen grove 87 failed alice birch 8 ready alice harbor 63 pending dina delta 35 pending farah delta 99 failed
hana delta 110 pending chen grove 87 failed alice birch 8 ready alice harbor 63 pending
first_n
1
train
original-grammar
CC-BY-4.0
sedweave-0009735
Insert the line reviewed immediately before every line containing pending.
sed '/pending/i reviewed'
bruno birch 34 pending gus ember 119 active bruno ember 49 pending dina harbor 34 failed hana fable 61 active hana grove 88 failed bruno delta 19 ready
reviewed bruno birch 34 pending gus ember 119 active reviewed bruno ember 49 pending dina harbor 34 failed hana fable 61 active hana grove 88 failed bruno delta 19 ready
farah fable 92 closed gus delta 34 active chen birch 64 pending alice amber 46 pending chen grove 23 failed hana ember 43 ready farah grove 2 failed chen ember 84 pending dina fable 109 closed
farah fable 92 closed gus delta 34 active reviewed chen birch 64 pending reviewed alice amber 46 pending chen grove 23 failed hana ember 43 ready farah grove 2 failed reviewed chen ember 84 pending dina fable 109 closed
insert_before
2
train
original-grammar
CC-BY-4.0
sedweave-0009722
Remove the last character from every line.
sed 's/.$//'
farah cobalt 27 closed eli delta 24 failed gus harbor 95 ready bruno cobalt 24 pending hana amber 96 ready eli fable 19 failed bruno grove 15 ready hana fable 29 pending dina harbor 114 ready
farah cobalt 27 close eli delta 24 faile gus harbor 95 read bruno cobalt 24 pendin hana amber 96 read eli fable 19 faile bruno grove 15 read hana fable 29 pendin dina harbor 114 read
farah birch 25 failed alice birch 26 closed alice birch 104 failed hana grove 47 active hana birch 113 closed alice grove 85 ready bruno fable 23 failed hana grove 117 ready
farah birch 25 faile alice birch 26 close alice birch 104 faile hana grove 47 activ hana birch 113 close alice grove 85 read bruno fable 23 faile hana grove 117 read
delete_last_char
1
train
original-grammar
CC-BY-4.0
sedweave-0009723
Print only the second comma-separated field from each line.
sed 's/[^,]*,\([^,]*\).*/\1/'
hana,amber,59,closed dina,ember,106,closed bruno,birch,95,active hana,ember,41,pending hana,grove,54,pending gus,ember,68,pending bruno,birch,27,pending dina,ember,102,failed bruno,cobalt,48,active
amber ember birch ember grove ember birch ember cobalt
alice,birch,68,closed eli,fable,7,active farah,amber,48,active farah,grove,12,ready hana,grove,38,closed chen,delta,16,failed alice,birch,31,pending eli,fable,23,failed gus,amber,87,pending
birch fable amber grove grove delta birch fable amber
extract_second_csv
2
train
original-grammar
CC-BY-4.0
sedweave-0009721
Remove the first character from every line.
sed 's/^.//'
alice amber 53 active farah cobalt 83 closed chen grove 108 failed bruno delta 14 active hana fable 92 closed alice harbor 119 pending chen ember 94 pending
lice amber 53 active arah cobalt 83 closed hen grove 108 failed runo delta 14 active ana fable 92 closed lice harbor 119 pending hen ember 94 pending
gus harbor 112 ready alice birch 116 failed farah birch 110 closed bruno birch 78 ready gus birch 13 closed chen ember 6 ready chen delta 57 failed
us harbor 112 ready lice birch 116 failed arah birch 110 closed runo birch 78 ready us birch 13 closed hen ember 6 ready hen delta 57 failed
delete_first_char
1
train
original-grammar
CC-BY-4.0
sedweave-0009728
Print lines 4 through 6, inclusive, and nothing else.
sed -n 4,6p
chen birch 94 failed hana fable 24 active dina birch 83 failed hana birch 79 ready alice delta 106 closed gus harbor 84 ready farah cobalt 104 active eli amber 14 closed chen fable 53 pending
hana birch 79 ready alice delta 106 closed gus harbor 84 ready
hana harbor 12 closed dina birch 62 ready hana amber 69 closed chen delta 37 failed dina fable 108 failed farah ember 75 ready alice harbor 67 closed
chen delta 37 failed dina fable 108 failed farah ember 75 ready
line_range
1
train
original-grammar
CC-BY-4.0
sedweave-0009733
Print odd-numbered lines: lines 1, 3, 5, and so on.
sed -n '0~2p'
farah grove 43 ready gus ember 58 ready bruno ember 77 ready farah delta 111 failed chen fable 1 ready eli harbor 7 failed eli birch 66 closed alice amber 20 active
gus ember 58 ready farah delta 111 failed eli harbor 7 failed alice amber 20 active
hana delta 86 closed bruno ember 59 ready gus fable 41 closed hana birch 114 closed hana cobalt 34 active alice fable 66 closed
bruno ember 59 ready hana birch 114 closed alice fable 66 closed
every_other
2
train
original-grammar
CC-BY-4.0
sedweave-0009729
Delete lines 4 through 6, leaving all other lines unchanged.
sed 4,6d
chen harbor 68 ready hana harbor 63 pending bruno ember 63 closed bruno ember 61 active eli harbor 68 closed eli ember 4 pending chen birch 118 pending
chen harbor 68 ready hana harbor 63 pending bruno ember 63 closed chen birch 118 pending
gus birch 88 ready dina birch 22 pending dina ember 9 ready dina grove 44 ready gus cobalt 44 ready dina fable 41 failed chen grove 5 pending chen cobalt 64 active chen fable 54 closed
gus birch 88 ready dina birch 22 pending dina ember 9 ready chen grove 5 pending chen cobalt 64 active chen fable 54 closed
delete_range
1
train
original-grammar
CC-BY-4.0
sedweave-0009727
Print only lines containing active; suppress all others.
sed -n /active/p
eli cobalt 67 active eli fable 61 pending alice delta 12 ready chen cobalt 37 ready gus fable 103 ready bruno birch 67 pending
eli cobalt 67 active
alice ember 61 ready farah harbor 5 failed eli harbor 8 failed alice cobalt 12 active hana harbor 2 pending hana grove 12 active eli cobalt 70 active alice delta 52 failed farah birch 25 closed
alice cobalt 12 active hana grove 12 active eli cobalt 70 active
regex_print
1
train
original-grammar
CC-BY-4.0
sedweave-0009732
Delete the last line of the input and print all remaining lines.
sed '$d'
alice ember 13 active bruno cobalt 27 failed farah harbor 57 failed hana fable 62 closed eli cobalt 9 pending bruno fable 87 failed
alice ember 13 active bruno cobalt 27 failed farah harbor 57 failed hana fable 62 closed eli cobalt 9 pending
alice amber 14 closed dina amber 76 closed bruno ember 106 active alice grove 64 active bruno delta 49 failed hana harbor 101 pending eli fable 50 ready alice harbor 86 ready
alice amber 14 closed dina amber 76 closed bruno ember 106 active alice grove 64 active bruno delta 49 failed hana harbor 101 pending eli fable 50 ready
delete_last
1
train
original-grammar
CC-BY-4.0
sedweave-0009726
Delete every line containing failed.
sed /failed/d
gus delta 112 active alice ember 116 ready gus grove 32 ready hana grove 82 ready alice cobalt 97 pending alice grove 63 failed dina ember 40 failed bruno amber 5 failed
gus delta 112 active alice ember 116 ready gus grove 32 ready hana grove 82 ready alice cobalt 97 pending
bruno fable 65 failed farah amber 64 ready eli fable 47 active chen delta 68 pending bruno harbor 119 ready hana fable 116 failed
farah amber 64 ready eli fable 47 active chen delta 68 pending bruno harbor 119 ready
regex_delete
1
train
original-grammar
CC-BY-4.0
sedweave-0009734
Append the line follow_up immediately after every line containing failed.
sed '/failed/a follow_up'
alice cobalt 15 failed eli ember 19 closed chen birch 117 closed hana birch 58 ready bruno fable 8 pending chen cobalt 36 ready chen ember 51 pending eli fable 114 ready bruno amber 6 pending
alice cobalt 15 failed follow_up eli ember 19 closed chen birch 117 closed hana birch 58 ready bruno fable 8 pending chen cobalt 36 ready chen ember 51 pending eli fable 114 ready bruno amber 6 pending
farah harbor 84 pending gus birch 101 active hana cobalt 63 failed alice grove 100 failed bruno ember 63 active alice ember 110 pending eli amber 72 closed gus birch 88 closed dina ember 101 closed
farah harbor 84 pending gus birch 101 active hana cobalt 63 failed follow_up alice grove 100 failed follow_up bruno ember 63 active alice ember 110 pending eli amber 72 closed gus birch 88 closed dina ember 101 closed
append_after
2
train
original-grammar
CC-BY-4.0
sedweave-0009736
Replace every full line containing closed with the single line follow_up.
sed '/closed/c follow_up'
hana cobalt 5 failed farah amber 11 pending dina grove 55 ready dina ember 69 pending gus fable 35 pending dina amber 9 active
hana cobalt 5 failed farah amber 11 pending dina grove 55 ready dina ember 69 pending gus fable 35 pending dina amber 9 active
bruno cobalt 9 closed farah birch 113 failed chen grove 62 ready alice grove 47 closed chen birch 18 pending alice ember 13 closed chen cobalt 119 pending eli grove 84 failed
follow_up farah birch 113 failed chen grove 62 ready follow_up chen birch 18 pending follow_up chen cobalt 119 pending eli grove 84 failed
change_line
2
train
original-grammar
CC-BY-4.0
sedweave-0009737
Delete all empty lines while preserving every nonempty line.
sed '/^$/d'
alice amber 58 ready bruno cobalt 84 active gus amber 87 active farah fable 13 failed chen birch 68 closed gus grove 21 failed
alice amber 58 ready bruno cobalt 84 active gus amber 87 active farah fable 13 failed chen birch 68 closed gus grove 21 failed
hana birch 92 failed hana birch 103 active farah fable 73 failed alice birch 1 failed alice harbor 1 ready hana amber 25 failed
hana birch 92 failed hana birch 103 active farah fable 73 failed alice birch 1 failed alice harbor 1 ready hana amber 25 failed
delete_blank
1
train
original-grammar
CC-BY-4.0
sedweave-0009742
Convert every input line to lowercase.
sed 's/.*/\L&/'
alice harbor 115 ready farah birch 103 ready dina grove 6 active chen delta 71 active alice fable 106 failed alice harbor 59 closed eli birch 73 active chen grove 38 pending chen cobalt 24 failed
alice harbor 115 ready farah birch 103 ready dina grove 6 active chen delta 71 active alice fable 106 failed alice harbor 59 closed eli birch 73 active chen grove 38 pending chen cobalt 24 failed
alice ember 104 failed eli ember 29 ready farah fable 36 pending bruno delta 42 ready farah cobalt 75 ready hana cobalt 63 ready
alice ember 104 failed eli ember 29 ready farah fable 36 pending bruno delta 42 ready farah cobalt 75 ready hana cobalt 63 ready
lowercase
1
train
original-grammar
CC-BY-4.0
sedweave-0009739
Remove all trailing spaces and tabs from each line.
sed 's/[ \t]*$//'
hana birch 113 active gus cobalt 118 closed alice amber 77 closed chen amber 9 failed chen amber 16 closed hana amber 58 closed dina harbor 7 failed farah fable 70 closed bruno cobalt 33 closed
hana birch 113 active gus cobalt 118 closed alice amber 77 closed chen amber 9 failed chen amber 16 closed hana amber 58 closed dina harbor 7 failed farah fable 70 closed bruno cobalt 33 closed
dina delta 75 failed gus delta 92 ready gus harbor 41 active hana amber 90 ready hana cobalt 90 failed bruno birch 99 pending dina ember 9 closed
dina delta 75 failed gus delta 92 ready gus harbor 41 active hana amber 90 ready hana cobalt 90 failed bruno birch 99 pending dina ember 9 closed
strip_trailing
1
train
original-grammar
CC-BY-4.0
sedweave-0009738
Remove all leading spaces and tabs from each line.
sed 's/^[ \t]*//'
dina cobalt 67 closed bruno cobalt 67 failed hana amber 118 closed hana delta 93 closed eli amber 36 ready farah cobalt 55 closed chen fable 37 failed dina harbor 30 pending
dina cobalt 67 closed bruno cobalt 67 failed hana amber 118 closed hana delta 93 closed eli amber 36 ready farah cobalt 55 closed chen fable 37 failed dina harbor 30 pending
chen grove 57 closed dina birch 32 ready hana harbor 113 pending bruno delta 101 active bruno amber 81 active bruno birch 46 ready
chen grove 57 closed dina birch 32 ready hana harbor 113 pending bruno delta 101 active bruno amber 81 active bruno birch 46 ready
strip_leading
1
train
original-grammar
CC-BY-4.0
sedweave-0009741
Convert every input line to uppercase.
sed 's/.*/\U&/'
farah birch 18 active bruno cobalt 22 active eli ember 106 active hana grove 96 closed chen fable 7 closed bruno delta 23 failed bruno ember 50 active
FARAH BIRCH 18 ACTIVE BRUNO COBALT 22 ACTIVE ELI EMBER 106 ACTIVE HANA GROVE 96 CLOSED CHEN FABLE 7 CLOSED BRUNO DELTA 23 FAILED BRUNO EMBER 50 ACTIVE
gus fable 71 active dina delta 65 ready bruno grove 83 ready farah grove 111 active dina grove 15 failed bruno delta 81 closed hana delta 71 active alice fable 64 ready
GUS FABLE 71 ACTIVE DINA DELTA 65 READY BRUNO GROVE 83 READY FARAH GROVE 111 ACTIVE DINA GROVE 15 FAILED BRUNO DELTA 81 CLOSED HANA DELTA 71 ACTIVE ALICE FABLE 64 READY
uppercase
1
train
original-grammar
CC-BY-4.0
sedweave-0009740
Collapse every run of spaces or tabs to a single space.
sed 's/[ \t]+/ /g'
eli cobalt 91 pending gus amber 43 pending alice cobalt 39 failed dina cobalt 29 failed bruno grove 40 active hana birch 46 active alice harbor 3 pending
eli cobalt 91 pending gus amber 43 pending alice cobalt 39 failed dina cobalt 29 failed bruno grove 40 active hana birch 46 active alice harbor 3 pending
eli delta 49 ready hana harbor 82 closed eli cobalt 23 ready gus birch 5 active gus grove 89 failed chen amber 86 pending
eli delta 49 ready hana harbor 82 closed eli cobalt 23 ready gus birch 5 active gus grove 89 failed chen amber 86 pending
collapse_space
1
train
original-grammar
CC-BY-4.0
sedweave-0009748
Delete all lines beginning with #.
sed '/^#/d'
chen fable 93 active # note hana harbor 68 active alice harbor 59 closed bruno harbor 2 active bruno grove 86 ready gus birch 119 closed dina cobalt 40 failed farah ember 110 ready
chen fable 93 active hana harbor 68 active alice harbor 59 closed bruno harbor 2 active bruno grove 86 ready gus birch 119 closed dina cobalt 40 failed farah ember 110 ready
farah ember 84 pending # note gus delta 98 active gus delta 96 failed bruno fable 82 pending dina cobalt 9 failed eli birch 13 closed
farah ember 84 pending gus delta 98 active gus delta 96 failed bruno fable 82 pending dina cobalt 9 failed eli birch 13 closed
delete_comments
1
train
original-grammar
CC-BY-4.0
sedweave-0009744
Replace every comma with a tab character.
sed 's/,/\t/g'
alice,delta,0,active eli,ember,68,active alice,harbor,90,closed hana,ember,23,pending chen,birch,60,failed chen,harbor,98,failed hana,harbor,118,closed
alice delta 0 active eli ember 68 active alice harbor 90 closed hana ember 23 pending chen birch 60 failed chen harbor 98 failed hana harbor 118 closed
alice,delta,22,pending bruno,delta,33,ready bruno,fable,91,pending alice,fable,112,failed alice,harbor,44,ready dina,delta,56,failed dina,fable,31,pending dina,harbor,118,pending
alice delta 22 pending bruno delta 33 ready bruno fable 91 pending alice fable 112 failed alice harbor 44 ready dina delta 56 failed dina fable 31 pending dina harbor 118 pending
comma_to_tab
1
train
original-grammar
CC-BY-4.0
sedweave-0009745
Add the prefix notice followed by a space to the start of every line.
sed 's/^/notice /'
alice cobalt 49 active bruno amber 48 closed alice amber 62 ready gus cobalt 106 closed eli fable 19 pending bruno harbor 84 active dina harbor 32 closed alice delta 102 ready
notice alice cobalt 49 active notice bruno amber 48 closed notice alice amber 62 ready notice gus cobalt 106 closed notice eli fable 19 pending notice bruno harbor 84 active notice dina harbor 32 closed notice alice delta 102 ready
eli fable 49 closed eli delta 55 closed hana ember 14 failed alice fable 117 pending chen birch 9 failed dina grove 1 closed
notice eli fable 49 closed notice eli delta 55 closed notice hana ember 14 failed notice alice fable 117 pending notice chen birch 9 failed notice dina grove 1 closed
add_prefix
1
train
original-grammar
CC-BY-4.0
sedweave-0009747
Comment out every input line by adding # and a space at the start.
sed 's/^/# /'
eli birch 63 ready alice ember 112 failed bruno fable 80 closed farah grove 69 pending hana fable 113 active dina delta 51 active chen birch 114 ready
# eli birch 63 ready # alice ember 112 failed # bruno fable 80 closed # farah grove 69 pending # hana fable 113 active # dina delta 51 active # chen birch 114 ready
eli birch 106 closed eli harbor 36 active gus harbor 16 active chen amber 96 pending alice ember 6 active alice amber 107 active farah delta 61 pending
# eli birch 106 closed # eli harbor 36 active # gus harbor 16 active # chen amber 96 pending # alice ember 6 active # alice amber 107 active # farah delta 61 pending
comment_lines
1
train
original-grammar
CC-BY-4.0
sedweave-0009753
Replace every sequence of digits with the letter N.
sed 's/[0-9][0-9]*/N/g'
eli cobalt 87 failed eli ember 42 ready hana fable 37 active dina ember 86 pending eli grove 29 active alice ember 70 failed dina delta 109 failed dina cobalt 80 pending alice harbor 27 closed
eli cobalt N failed eli ember N ready hana fable N active dina ember N pending eli grove N active alice ember N failed dina delta N failed dina cobalt N pending alice harbor N closed
chen cobalt 53 ready eli grove 31 closed hana harbor 0 active alice fable 111 ready chen grove 108 failed hana fable 69 ready farah harbor 108 active farah fable 78 closed chen amber 96 active
chen cobalt N ready eli grove N closed hana harbor N active alice fable N ready chen grove N failed hana fable N ready farah harbor N active farah fable N closed chen amber N active
digits_mask
1
train
original-grammar
CC-BY-4.0
sedweave-0009743
Swap the first two whitespace-separated fields on every line.
sed 's/\([^ ]*\) \([^ ]*\)/\2 \1/'
farah cobalt 1 ready hana grove 120 failed bruno birch 60 pending alice ember 2 active gus amber 93 failed hana cobalt 117 failed gus delta 115 failed
cobalt farah 1 ready grove hana 120 failed birch bruno 60 pending ember alice 2 active amber gus 93 failed cobalt hana 117 failed delta gus 115 failed
farah fable 13 failed gus ember 14 ready bruno ember 14 pending farah birch 109 closed alice grove 50 ready gus birch 56 active hana ember 72 pending
fable farah 13 failed ember gus 14 ready ember bruno 14 pending birch farah 109 closed grove alice 50 ready birch gus 56 active ember hana 72 pending
swap_fields
2
train
original-grammar
CC-BY-4.0
sedweave-0009749
Print only the first 3 characters of each line.
sed 's/^\(.\{3\}\).*/\1/'
hana fable 56 pending dina cobalt 114 ready gus delta 58 failed gus amber 7 closed dina grove 79 ready hana fable 116 ready eli delta 47 closed alice harbor 111 ready
han din gus gus din han eli ali
eli harbor 37 active farah harbor 62 closed eli ember 27 ready hana amber 57 ready hana grove 98 ready eli fable 119 failed bruno birch 30 failed
eli far eli han han eli bru
first_chars
2
train
original-grammar
CC-BY-4.0
sedweave-0009746
Append a space and done to the end of every line.
sed 's/$/ done/'
eli cobalt 33 failed gus birch 57 failed hana ember 98 ready alice fable 52 pending alice cobalt 87 active eli fable 76 failed alice fable 0 pending alice harbor 87 pending eli delta 67 ready
eli cobalt 33 failed done gus birch 57 failed done hana ember 98 ready done alice fable 52 pending done alice cobalt 87 active done eli fable 76 failed done alice fable 0 pending done alice harbor 87 pending done eli delta 67 ready done
farah grove 32 closed farah grove 87 active bruno fable 81 failed bruno delta 3 active eli birch 57 pending farah harbor 37 ready eli harbor 87 ready alice amber 27 pending
farah grove 32 closed done farah grove 87 active done bruno fable 81 failed done bruno delta 3 active done eli birch 57 pending done farah harbor 37 ready done eli harbor 87 ready done alice amber 27 pending done
add_suffix
1
train
original-grammar
CC-BY-4.0
sedweave-0009752
Remove all HTML-like angle-bracket tags from the text.
sed 's/<[^>]*>//g'
<p>amber <b>birch</b></p> <span>delta</span>
amber birch delta
<div>grove <i>fable</i></div>
grove fable
remove_html
1
train
original-grammar
CC-BY-4.0
sedweave-0009758
Replace the first occurrence of delta with fable on each line.
sed s/delta/fable/
hana grove 94 closed eli grove 25 active eli fable 51 closed bruno ember 84 failed dina harbor 119 pending hana amber 118 closed alice grove 105 failed bruno cobalt 38 failed
hana grove 94 closed eli grove 25 active eli fable 51 closed bruno ember 84 failed dina harbor 119 pending hana amber 118 closed alice grove 105 failed bruno cobalt 38 failed
alice amber 34 closed dina ember 116 failed bruno ember 97 ready farah delta 62 failed dina delta 42 failed alice harbor 40 pending eli fable 88 active chen delta 73 failed dina ember 47 active
alice amber 34 closed dina ember 116 failed bruno ember 97 ready farah fable 62 failed dina fable 42 failed alice harbor 40 pending eli fable 88 active chen fable 73 failed dina ember 47 active
substitute_first
1
train
original-grammar
CC-BY-4.0
sedweave-0009759
Replace every occurrence of cobalt with delta throughout the input.
sed s/cobalt/delta/g
alice birch 41 failed alice grove 109 closed farah grove 81 ready hana delta 100 ready alice amber 66 active alice cobalt 91 pending hana delta 13 ready eli grove 105 active alice amber 6 failed
alice birch 41 failed alice grove 109 closed farah grove 81 ready hana delta 100 ready alice amber 66 active alice delta 91 pending hana delta 13 ready eli grove 105 active alice amber 6 failed
chen amber 18 pending hana birch 50 closed eli birch 63 failed eli grove 67 pending eli grove 30 failed dina delta 38 active gus grove 39 active chen amber 37 failed
chen amber 18 pending hana birch 50 closed eli birch 63 failed eli grove 67 pending eli grove 30 failed dina delta 38 active gus grove 39 active chen amber 37 failed
substitute_global
1
train
original-grammar
CC-BY-4.0
sedweave-0009756
Remove the last character from every line.
sed 's/.$//'
dina amber 118 ready alice fable 4 ready gus amber 107 failed hana fable 21 failed bruno cobalt 44 pending alice ember 75 pending
dina amber 118 read alice fable 4 read gus amber 107 faile hana fable 21 faile bruno cobalt 44 pendin alice ember 75 pendin
alice birch 105 ready alice ember 62 active farah amber 41 closed farah birch 109 pending dina fable 110 ready dina ember 7 active
alice birch 105 read alice ember 62 activ farah amber 41 close farah birch 109 pendin dina fable 110 read dina ember 7 activ
delete_last_char
1
train
original-grammar
CC-BY-4.0
sedweave-0009751
Print only the block from the line containing fable through the line containing cobalt, inclusive.
sed -n /fable/,/cobalt/p
bruno grove 11 failed alice ember 87 closed dina harbor 72 active eli grove 10 failed farah ember 83 active dina delta 108 active gus fable 110 closed bruno harbor 33 pending
gus fable 110 closed bruno harbor 33 pending
farah cobalt 40 active chen birch 16 closed hana cobalt 21 active bruno delta 35 pending alice cobalt 44 active farah birch 71 pending
print_between
2
train
original-grammar
CC-BY-4.0
sedweave-0009761
Print only lines containing active; suppress all others.
sed -n /active/p
chen harbor 30 ready farah harbor 88 closed chen harbor 6 failed farah birch 20 active chen delta 74 failed eli grove 41 failed farah ember 4 closed
farah birch 20 active
farah fable 7 failed chen grove 59 failed gus delta 22 active chen fable 19 failed alice harbor 120 closed dina fable 60 failed eli amber 50 pending farah harbor 2 active
gus delta 22 active farah harbor 2 active
regex_print
1
train
original-grammar
CC-BY-4.0
sedweave-0009755
Remove the first character from every line.
sed 's/^.//'
farah fable 56 active gus grove 33 pending eli grove 70 closed hana fable 20 pending dina grove 3 ready chen birch 6 closed gus cobalt 56 ready chen amber 115 closed
arah fable 56 active us grove 33 pending li grove 70 closed ana fable 20 pending ina grove 3 ready hen birch 6 closed us cobalt 56 ready hen amber 115 closed
gus amber 107 active bruno cobalt 8 active eli harbor 108 active eli ember 44 pending chen grove 20 active alice ember 94 active hana harbor 3 ready
us amber 107 active runo cobalt 8 active li harbor 108 active li ember 44 pending hen grove 20 active lice ember 94 active ana harbor 3 ready
delete_first_char
1
train
original-grammar
CC-BY-4.0
sedweave-0009750
Delete everything from the line containing birch through the line containing fable, inclusive.
sed /birch/,/fable/d
alice fable 39 active hana ember 98 active bruno grove 104 active alice fable 105 active dina harbor 0 pending bruno fable 101 ready chen amber 30 pending gus harbor 19 failed dina birch 53 pending
alice fable 39 active hana ember 98 active bruno grove 104 active alice fable 105 active dina harbor 0 pending bruno fable 101 ready chen amber 30 pending gus harbor 19 failed
gus birch 106 active hana ember 91 failed hana ember 60 pending hana grove 6 failed eli ember 41 closed hana ember 17 ready
delete_between
2
train
original-grammar
CC-BY-4.0
sedweave-0009760
Delete every line containing closed.
sed /closed/d
dina amber 30 ready bruno birch 108 failed alice cobalt 120 failed chen amber 119 ready farah fable 64 failed hana ember 94 ready bruno amber 84 closed
dina amber 30 ready bruno birch 108 failed alice cobalt 120 failed chen amber 119 ready farah fable 64 failed hana ember 94 ready
dina delta 32 ready alice birch 54 failed chen birch 0 ready gus fable 9 closed gus ember 81 active dina ember 12 failed eli birch 73 ready hana fable 23 ready alice harbor 113 ready
dina delta 32 ready alice birch 54 failed chen birch 0 ready gus ember 81 active dina ember 12 failed eli birch 73 ready hana fable 23 ready alice harbor 113 ready
regex_delete
1
train
original-grammar
CC-BY-4.0
sedweave-0009754
Print each input line's number, without printing the line contents.
sed =
dina fable 56 active gus fable 42 failed dina cobalt 71 active gus delta 36 closed chen amber 65 pending dina fable 60 closed alice delta 22 ready
1 dina fable 56 active 2 gus fable 42 failed 3 dina cobalt 71 active 4 gus delta 36 closed 5 chen amber 65 pending 6 dina fable 60 closed 7 alice delta 22 ready
bruno amber 26 pending gus birch 73 failed bruno grove 65 closed gus birch 99 ready alice fable 117 failed hana delta 81 failed dina grove 82 active
1 bruno amber 26 pending 2 gus birch 73 failed 3 bruno grove 65 closed 4 gus birch 99 ready 5 alice fable 117 failed 6 hana delta 81 failed 7 dina grove 82 active
number_lines
1
train
original-grammar
CC-BY-4.0
sedweave-0009757
Print only the second comma-separated field from each line.
sed 's/[^,]*,\([^,]*\).*/\1/'
alice,fable,111,pending eli,fable,109,failed hana,birch,69,ready dina,delta,81,pending hana,fable,103,closed chen,delta,10,closed hana,harbor,95,pending alice,grove,46,ready chen,cobalt,110,closed
fable fable birch delta fable delta harbor grove cobalt
eli,ember,97,pending bruno,fable,39,closed gus,delta,20,failed hana,cobalt,45,active eli,harbor,85,failed dina,cobalt,112,ready
ember fable delta cobalt harbor cobalt
extract_second_csv
2
train
original-grammar
CC-BY-4.0
sedweave-0009766
Delete the last line of the input and print all remaining lines.
sed '$d'
chen birch 27 closed eli delta 7 ready gus birch 103 active farah fable 101 active dina fable 3 pending eli cobalt 20 active dina cobalt 29 pending
chen birch 27 closed eli delta 7 ready gus birch 103 active farah fable 101 active dina fable 3 pending eli cobalt 20 active
bruno grove 105 pending eli birch 81 active dina birch 36 failed hana birch 26 active eli harbor 37 active dina cobalt 2 ready
bruno grove 105 pending eli birch 81 active dina birch 36 failed hana birch 26 active eli harbor 37 active
delete_last
1
train
original-grammar
CC-BY-4.0
sedweave-0009764
Print only the first 3 lines.
sed -n 1,3p
farah fable 77 failed hana cobalt 97 pending eli fable 77 failed gus grove 12 ready eli birch 74 ready gus fable 64 ready eli harbor 104 ready
farah fable 77 failed hana cobalt 97 pending eli fable 77 failed
bruno delta 72 active chen amber 76 failed eli delta 54 active gus cobalt 42 closed gus birch 89 pending farah amber 41 active
bruno delta 72 active chen amber 76 failed eli delta 54 active
first_n
1
train
original-grammar
CC-BY-4.0
sedweave-0009765
Print only the last line of the input.
sed -n '$p'
eli harbor 27 active chen fable 10 ready hana birch 10 closed eli harbor 43 active gus delta 110 active farah delta 70 failed gus amber 108 failed farah amber 94 pending bruno amber 42 closed
bruno amber 42 closed
alice grove 48 pending dina harbor 55 failed alice birch 95 pending gus fable 99 ready gus grove 110 closed alice harbor 31 ready dina grove 62 active farah fable 3 pending
farah fable 3 pending
last_line
1
train
original-grammar
CC-BY-4.0
sedweave-0009771
Delete all empty lines while preserving every nonempty line.
sed '/^$/d'
hana birch 0 closed alice amber 28 closed gus fable 42 active hana cobalt 56 pending gus ember 28 closed hana cobalt 38 closed
hana birch 0 closed alice amber 28 closed gus fable 42 active hana cobalt 56 pending gus ember 28 closed hana cobalt 38 closed
alice cobalt 107 active bruno fable 69 active hana ember 91 pending eli fable 33 ready eli harbor 30 ready eli cobalt 97 ready dina fable 116 closed bruno amber 14 pending eli birch 67 ready
alice cobalt 107 active bruno fable 69 active hana ember 91 pending eli fable 33 ready eli harbor 30 ready eli cobalt 97 ready dina fable 116 closed bruno amber 14 pending eli birch 67 ready
delete_blank
1
train
original-grammar
CC-BY-4.0
sedweave-0009762
Print lines 3 through 6, inclusive, and nothing else.
sed -n 3,6p
dina grove 11 failed bruno birch 90 failed eli amber 97 ready farah grove 8 pending farah cobalt 59 ready alice fable 61 failed
eli amber 97 ready farah grove 8 pending farah cobalt 59 ready alice fable 61 failed
bruno delta 19 failed chen delta 1 active farah amber 14 failed bruno birch 120 failed gus fable 24 ready chen ember 17 ready gus harbor 82 pending eli birch 37 pending
farah amber 14 failed bruno birch 120 failed gus fable 24 ready chen ember 17 ready
line_range
1
train
original-grammar
CC-BY-4.0
sedweave-0009763
Delete lines 2 through 4, leaving all other lines unchanged.
sed 2,4d
farah amber 0 ready bruno fable 63 ready eli grove 88 active eli fable 48 ready hana grove 0 closed dina amber 119 failed alice amber 38 active hana birch 54 active
farah amber 0 ready hana grove 0 closed dina amber 119 failed alice amber 38 active hana birch 54 active
alice harbor 74 ready eli birch 45 pending hana cobalt 113 ready hana fable 50 pending hana fable 35 failed dina cobalt 110 ready eli cobalt 59 active bruno birch 17 closed farah amber 89 pending
alice harbor 74 ready hana fable 35 failed dina cobalt 110 ready eli cobalt 59 active bruno birch 17 closed farah amber 89 pending
delete_range
1
train
original-grammar
CC-BY-4.0
sedweave-0009767
Print odd-numbered lines: lines 1, 3, 5, and so on.
sed -n '0~2p'
chen delta 91 failed chen ember 74 failed gus delta 82 closed alice grove 52 pending dina birch 89 pending gus delta 105 active eli harbor 36 closed bruno birch 94 failed
chen ember 74 failed alice grove 52 pending gus delta 105 active bruno birch 94 failed
eli cobalt 87 failed gus birch 9 pending eli fable 79 ready dina grove 40 failed chen grove 49 pending farah birch 36 ready eli cobalt 2 closed eli harbor 52 ready
gus birch 9 pending dina grove 40 failed farah birch 36 ready eli harbor 52 ready
every_other
2
train
original-grammar
CC-BY-4.0
sedweave-0009770
Replace every full line containing pending with the single line reviewed.
sed '/pending/c reviewed'
chen ember 96 failed chen amber 3 pending bruno cobalt 92 pending bruno grove 53 closed dina ember 75 pending dina fable 55 pending dina amber 109 closed chen ember 45 active
chen ember 96 failed reviewed reviewed bruno grove 53 closed reviewed reviewed dina amber 109 closed chen ember 45 active
chen amber 80 ready dina fable 52 failed dina harbor 58 ready alice fable 66 closed eli cobalt 32 closed dina grove 65 pending
chen amber 80 ready dina fable 52 failed dina harbor 58 ready alice fable 66 closed eli cobalt 32 closed reviewed
change_line
2
train
original-grammar
CC-BY-4.0