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-0020438 | Print lines 3 through 6, inclusive, and nothing else. | sed -n 3,6p | bruno delta 112 pending
dina fable 92 active
bruno cobalt 45 closed
chen birch 61 ready
farah grove 3 failed
dina harbor 3 closed
gus harbor 72 pending
| bruno cobalt 45 closed
chen birch 61 ready
farah grove 3 failed
dina harbor 3 closed
| dina delta 64 ready
alice harbor 105 ready
eli harbor 11 ready
eli delta 63 failed
hana birch 105 active
eli grove 60 ready
| eli harbor 11 ready
eli delta 63 failed
hana birch 105 active
eli grove 60 ready
| line_range | 1 | train | original-grammar | CC-BY-4.0 |
sedweave-0020441 | Print only the last line of the input. | sed -n '$p' | farah delta 13 pending
alice amber 26 ready
eli grove 22 failed
eli ember 102 ready
eli harbor 80 ready
dina ember 37 active
hana ember 39 failed
| hana ember 39 failed
| gus cobalt 69 closed
dina birch 72 failed
hana amber 54 failed
farah amber 111 ready
dina cobalt 99 closed
eli ember 37 failed
| eli ember 37 failed
| last_line | 1 | train | original-grammar | CC-BY-4.0 |
sedweave-0020440 | Print only the first 4 lines. | sed -n 1,4p | hana birch 91 failed
alice cobalt 18 closed
gus ember 18 closed
eli fable 99 closed
gus amber 21 pending
hana amber 90 failed
bruno harbor 66 active
alice amber 23 pending
farah fable 59 failed
| hana birch 91 failed
alice cobalt 18 closed
gus ember 18 closed
eli fable 99 closed
| dina ember 32 active
chen amber 12 pending
chen amber 12 pending
eli grove 6 active
hana harbor 38 closed
chen fable 56 pending
bruno birch 53 closed
gus birch 84 active
| dina ember 32 active
chen amber 12 pending
chen amber 12 pending
eli grove 6 active
| first_n | 1 | train | original-grammar | CC-BY-4.0 |
sedweave-0020446 | Replace every full line containing ready with the single line follow_up. | sed '/ready/c follow_up' | eli amber 104 pending
hana amber 10 closed
farah cobalt 115 ready
hana ember 93 active
farah amber 72 closed
hana delta 106 pending
bruno harbor 65 ready
dina birch 72 active
| eli amber 104 pending
hana amber 10 closed
follow_up
hana ember 93 active
farah amber 72 closed
hana delta 106 pending
follow_up
dina birch 72 active
| gus birch 114 pending
farah birch 5 ready
farah birch 77 closed
bruno ember 75 failed
dina amber 3 pending
dina ember 50 pending
alice ember 72 failed
| gus birch 114 pending
follow_up
farah birch 77 closed
bruno ember 75 failed
dina amber 3 pending
dina ember 50 pending
alice ember 72 failed
| change_line | 2 | train | original-grammar | CC-BY-4.0 |
sedweave-0020439 | Delete lines 3 through 4, leaving all other lines unchanged. | sed 3,4d | chen harbor 42 closed
eli harbor 31 pending
farah cobalt 117 active
gus delta 86 failed
dina ember 69 active
dina birch 26 ready
chen cobalt 79 pending
hana delta 49 ready
hana grove 109 ready
| chen harbor 42 closed
eli harbor 31 pending
dina ember 69 active
dina birch 26 ready
chen cobalt 79 pending
hana delta 49 ready
hana grove 109 ready
| eli grove 63 active
bruno ember 30 pending
alice amber 95 closed
chen cobalt 57 active
dina harbor 37 active
farah grove 59 pending
hana cobalt 57 pending
hana delta 31 pending
| eli grove 63 active
bruno ember 30 pending
dina harbor 37 active
farah grove 59 pending
hana cobalt 57 pending
hana delta 31 pending
| delete_range | 1 | train | original-grammar | CC-BY-4.0 |
sedweave-0020453 | Swap the first two whitespace-separated fields on every line. | sed 's/\([^ ]*\) \([^ ]*\)/\2 \1/' | chen cobalt 80 pending
alice delta 57 failed
eli amber 89 closed
gus grove 37 ready
farah birch 103 pending
farah ember 39 ready
dina birch 1 pending
| cobalt chen 80 pending
delta alice 57 failed
amber eli 89 closed
grove gus 37 ready
birch farah 103 pending
ember farah 39 ready
birch dina 1 pending
| bruno birch 22 active
eli cobalt 103 failed
alice grove 29 failed
bruno harbor 102 pending
eli ember 46 pending
dina amber 111 closed
hana cobalt 0 ready
eli grove 94 closed
eli delta 31 closed
| birch bruno 22 active
cobalt eli 103 failed
grove alice 29 failed
harbor bruno 102 pending
ember eli 46 pending
amber dina 111 closed
cobalt hana 0 ready
grove eli 94 closed
delta eli 31 closed
| swap_fields | 2 | train | original-grammar | CC-BY-4.0 |
sedweave-0020447 | Delete all empty lines while preserving every nonempty line. | sed '/^$/d' | alice fable 37 closed
hana amber 112 pending
gus grove 23 active
gus cobalt 65 closed
dina fable 112 ready
chen amber 2 ready
| alice fable 37 closed
hana amber 112 pending
gus grove 23 active
gus cobalt 65 closed
dina fable 112 ready
chen amber 2 ready
| hana ember 24 ready
bruno grove 67 active
chen fable 4 closed
hana birch 120 ready
chen ember 100 active
gus delta 107 pending
| hana ember 24 ready
bruno grove 67 active
chen fable 4 closed
hana birch 120 ready
chen ember 100 active
gus delta 107 pending
| delete_blank | 1 | train | original-grammar | CC-BY-4.0 |
sedweave-0020444 | Append the line follow_up immediately after every line containing pending. | sed '/pending/a follow_up' | bruno amber 84 closed
eli birch 19 failed
hana birch 118 ready
eli harbor 49 pending
eli ember 62 failed
farah harbor 22 ready
hana fable 38 pending
bruno grove 3 pending
chen fable 78 ready
| bruno amber 84 closed
eli birch 19 failed
hana birch 118 ready
eli harbor 49 pending
follow_up
eli ember 62 failed
farah harbor 22 ready
hana fable 38 pending
follow_up
bruno grove 3 pending
follow_up
chen fable 78 ready
| farah cobalt 21 ready
alice harbor 68 failed
hana grove 85 closed
alice cobalt 71 closed
dina amber 44 failed
hana delta 38 ready
| farah cobalt 21 ready
alice harbor 68 failed
hana grove 85 closed
alice cobalt 71 closed
dina amber 44 failed
hana delta 38 ready
| append_after | 2 | train | original-grammar | CC-BY-4.0 |
sedweave-0020449 | Remove all trailing spaces and tabs from each line. | sed 's/[ \t]*$//' | bruno ember 34 pending
chen birch 89 active
alice fable 37 pending
bruno grove 35 pending
gus grove 94 active
alice delta 25 ready
| bruno ember 34 pending
chen birch 89 active
alice fable 37 pending
bruno grove 35 pending
gus grove 94 active
alice delta 25 ready
| bruno fable 63 pending
chen fable 78 failed
hana birch 103 ready
farah ember 16 active
bruno cobalt 99 active
chen harbor 77 pending
gus birch 31 failed
| bruno fable 63 pending
chen fable 78 failed
hana birch 103 ready
farah ember 16 active
bruno cobalt 99 active
chen harbor 77 pending
gus birch 31 failed
| strip_trailing | 1 | train | original-grammar | CC-BY-4.0 |
sedweave-0020456 | Append a space and complete to the end of every line. | sed 's/$/ complete/' | eli birch 92 closed
hana cobalt 70 pending
eli cobalt 66 failed
hana grove 2 closed
dina ember 16 active
alice delta 23 ready
| eli birch 92 closed complete
hana cobalt 70 pending complete
eli cobalt 66 failed complete
hana grove 2 closed complete
dina ember 16 active complete
alice delta 23 ready complete
| hana grove 86 pending
chen delta 37 failed
farah grove 65 ready
dina amber 42 ready
alice ember 47 closed
eli birch 50 active
farah cobalt 58 closed
| hana grove 86 pending complete
chen delta 37 failed complete
farah grove 65 ready complete
dina amber 42 ready complete
alice ember 47 closed complete
eli birch 50 active complete
farah cobalt 58 closed complete
| add_suffix | 1 | train | original-grammar | CC-BY-4.0 |
sedweave-0020450 | Collapse every run of spaces or tabs to a single space. | sed 's/[ \t]+/ /g' | bruno ember 41 ready
dina fable 8 closed
chen fable 61 active
hana harbor 22 pending
dina fable 18 pending
bruno birch 75 closed
gus delta 101 closed
hana birch 31 closed
alice fable 106 closed
| bruno ember 41 ready
dina fable 8 closed
chen fable 61 active
hana harbor 22 pending
dina fable 18 pending
bruno birch 75 closed
gus delta 101 closed
hana birch 31 closed
alice fable 106 closed
| hana delta 62 ready
eli harbor 55 closed
eli harbor 35 active
chen ember 112 pending
alice grove 60 failed
chen ember 20 ready
| hana delta 62 ready
eli harbor 55 closed
eli harbor 35 active
chen ember 112 pending
alice grove 60 failed
chen ember 20 ready
| collapse_space | 1 | train | original-grammar | CC-BY-4.0 |
sedweave-0020452 | Convert every input line to lowercase. | sed 's/.*/\L&/' | farah amber 111 closed
chen fable 53 active
bruno delta 6 closed
alice ember 19 ready
eli birch 69 ready
eli grove 80 pending
gus amber 4 failed
chen grove 95 active
| farah amber 111 closed
chen fable 53 active
bruno delta 6 closed
alice ember 19 ready
eli birch 69 ready
eli grove 80 pending
gus amber 4 failed
chen grove 95 active
| farah amber 33 active
dina delta 32 closed
bruno harbor 89 ready
chen delta 58 closed
farah grove 105 closed
dina grove 73 ready
farah birch 63 pending
chen harbor 95 failed
chen amber 100 ready
| farah amber 33 active
dina delta 32 closed
bruno harbor 89 ready
chen delta 58 closed
farah grove 105 closed
dina grove 73 ready
farah birch 63 pending
chen harbor 95 failed
chen amber 100 ready
| lowercase | 1 | train | original-grammar | CC-BY-4.0 |
sedweave-0020455 | Add the prefix notice followed by a space to the start of every line. | sed 's/^/notice /' | alice cobalt 95 ready
chen ember 93 closed
bruno ember 39 failed
chen amber 104 ready
eli cobalt 120 failed
alice grove 26 failed
eli grove 16 closed
eli cobalt 32 closed
dina grove 108 failed
| notice alice cobalt 95 ready
notice chen ember 93 closed
notice bruno ember 39 failed
notice chen amber 104 ready
notice eli cobalt 120 failed
notice alice grove 26 failed
notice eli grove 16 closed
notice eli cobalt 32 closed
notice dina grove 108 failed
| eli harbor 85 pending
farah delta 25 active
hana fable 25 pending
hana fable 118 active
bruno birch 102 pending
chen fable 67 pending
dina harbor 9 closed
alice ember 107 closed
gus amber 1 pending
| notice eli harbor 85 pending
notice farah delta 25 active
notice hana fable 25 pending
notice hana fable 118 active
notice bruno birch 102 pending
notice chen fable 67 pending
notice dina harbor 9 closed
notice alice ember 107 closed
notice gus amber 1 pending
| add_prefix | 1 | train | original-grammar | CC-BY-4.0 |
sedweave-0020448 | Remove all leading spaces and tabs from each line. | sed 's/^[ \t]*//' | dina amber 29 failed
alice birch 57 closed
hana fable 26 pending
chen grove 116 active
gus fable 56 active
gus birch 28 pending
| dina amber 29 failed
alice birch 57 closed
hana fable 26 pending
chen grove 116 active
gus fable 56 active
gus birch 28 pending
| dina grove 28 failed
gus amber 6 closed
dina delta 67 ready
farah grove 95 ready
dina fable 27 active
chen harbor 90 active
gus fable 58 closed
| dina grove 28 failed
gus amber 6 closed
dina delta 67 ready
farah grove 95 ready
dina fable 27 active
chen harbor 90 active
gus fable 58 closed
| strip_leading | 1 | train | original-grammar | CC-BY-4.0 |
sedweave-0020457 | Comment out every input line by adding # and a space at the start. | sed 's/^/# /' | hana delta 101 closed
bruno fable 100 ready
eli cobalt 24 active
bruno harbor 90 failed
bruno fable 28 closed
eli fable 87 ready
hana delta 0 failed
alice amber 95 ready
chen birch 119 closed
| # hana delta 101 closed
# bruno fable 100 ready
# eli cobalt 24 active
# bruno harbor 90 failed
# bruno fable 28 closed
# eli fable 87 ready
# hana delta 0 failed
# alice amber 95 ready
# chen birch 119 closed
| bruno ember 98 active
gus delta 74 active
chen harbor 108 closed
chen amber 109 active
bruno amber 47 failed
gus delta 90 ready
| # bruno ember 98 active
# gus delta 74 active
# chen harbor 108 closed
# chen amber 109 active
# bruno amber 47 failed
# gus delta 90 ready
| comment_lines | 1 | train | original-grammar | CC-BY-4.0 |
sedweave-0020445 | Insert the line reviewed immediately before every line containing active. | sed '/active/i reviewed' | dina amber 94 failed
alice amber 44 active
bruno harbor 110 pending
chen fable 79 failed
gus harbor 58 failed
dina delta 107 active
dina amber 99 closed
eli birch 61 pending
farah delta 19 active
| dina amber 94 failed
reviewed
alice amber 44 active
bruno harbor 110 pending
chen fable 79 failed
gus harbor 58 failed
reviewed
dina delta 107 active
dina amber 99 closed
eli birch 61 pending
reviewed
farah delta 19 active
| hana fable 118 failed
eli ember 103 closed
eli harbor 41 closed
hana harbor 89 pending
dina grove 85 failed
dina fable 5 active
| hana fable 118 failed
eli ember 103 closed
eli harbor 41 closed
hana harbor 89 pending
dina grove 85 failed
reviewed
dina fable 5 active
| insert_before | 2 | train | original-grammar | CC-BY-4.0 |
sedweave-0020451 | Convert every input line to uppercase. | sed 's/.*/\U&/' | eli delta 51 ready
chen delta 114 closed
gus harbor 7 closed
dina cobalt 50 ready
dina fable 35 failed
hana amber 93 ready
farah amber 66 pending
| ELI DELTA 51 READY
CHEN DELTA 114 CLOSED
GUS HARBOR 7 CLOSED
DINA COBALT 50 READY
DINA FABLE 35 FAILED
HANA AMBER 93 READY
FARAH AMBER 66 PENDING
| dina fable 10 active
hana birch 56 pending
chen cobalt 3 pending
gus harbor 116 ready
alice amber 11 closed
alice cobalt 14 failed
| DINA FABLE 10 ACTIVE
HANA BIRCH 56 PENDING
CHEN COBALT 3 PENDING
GUS HARBOR 116 READY
ALICE AMBER 11 CLOSED
ALICE COBALT 14 FAILED
| uppercase | 1 | train | original-grammar | CC-BY-4.0 |
sedweave-0020454 | Replace every comma with a tab character. | sed 's/,/\t/g' | chen,harbor,32,ready
eli,delta,92,pending
alice,birch,114,closed
chen,grove,96,active
chen,birch,97,failed
farah,ember,82,ready
eli,delta,34,pending
bruno,cobalt,74,closed
| chen harbor 32 ready
eli delta 92 pending
alice birch 114 closed
chen grove 96 active
chen birch 97 failed
farah ember 82 ready
eli delta 34 pending
bruno cobalt 74 closed
| chen,fable,112,closed
alice,grove,81,ready
alice,delta,45,failed
gus,ember,81,ready
bruno,delta,47,ready
hana,grove,8,failed
chen,fable,117,failed
hana,cobalt,38,pending
| chen fable 112 closed
alice grove 81 ready
alice delta 45 failed
gus ember 81 ready
bruno delta 47 ready
hana grove 8 failed
chen fable 117 failed
hana cobalt 38 pending
| comma_to_tab | 1 | train | original-grammar | CC-BY-4.0 |
sedweave-0020458 | Delete all lines beginning with #. | sed '/^#/d' | chen grove 47 pending
# note
gus cobalt 46 ready
eli amber 86 pending
hana amber 48 active
eli grove 25 failed
chen cobalt 77 ready
bruno amber 19 pending
alice grove 37 ready
| chen grove 47 pending
gus cobalt 46 ready
eli amber 86 pending
hana amber 48 active
eli grove 25 failed
chen cobalt 77 ready
bruno amber 19 pending
alice grove 37 ready
| alice grove 78 pending
# note
farah fable 73 failed
gus delta 72 failed
alice fable 49 closed
chen fable 86 ready
dina ember 79 closed
gus delta 101 failed
gus grove 119 closed
hana amber 54 active
| alice grove 78 pending
farah fable 73 failed
gus delta 72 failed
alice fable 49 closed
chen fable 86 ready
dina ember 79 closed
gus delta 101 failed
gus grove 119 closed
hana amber 54 active
| delete_comments | 1 | train | original-grammar | CC-BY-4.0 |
sedweave-0020463 | Replace every sequence of digits with the letter N. | sed 's/[0-9][0-9]*/N/g' | eli delta 62 closed
chen delta 114 closed
eli harbor 87 ready
bruno fable 88 failed
farah fable 85 ready
eli ember 9 active
farah fable 111 ready
| eli delta N closed
chen delta N closed
eli harbor N ready
bruno fable N failed
farah fable N ready
eli ember N active
farah fable N ready
| eli fable 113 pending
farah amber 115 ready
hana fable 91 pending
hana birch 110 failed
gus harbor 77 pending
chen grove 13 closed
| eli fable N pending
farah amber N ready
hana fable N pending
hana birch N failed
gus harbor N pending
chen grove N closed
| digits_mask | 1 | train | original-grammar | CC-BY-4.0 |
sedweave-0020461 | Print only the block from the line containing ember through the line containing harbor, inclusive. | sed -n /ember/,/harbor/p | dina grove 5 failed
hana amber 34 active
eli amber 29 closed
gus cobalt 84 closed
farah grove 4 failed
eli ember 61 ready
| eli ember 61 ready
| eli delta 61 active
bruno grove 59 ready
chen fable 81 active
farah harbor 51 active
alice harbor 55 pending
farah harbor 13 active
gus grove 76 failed
| print_between | 2 | train | original-grammar | CC-BY-4.0 | |
sedweave-0020459 | Print only the first 4 characters of each line. | sed 's/^\(.\{4\}\).*/\1/' | bruno birch 14 pending
chen cobalt 114 pending
gus fable 58 failed
bruno amber 106 pending
bruno fable 74 pending
bruno amber 28 ready
hana harbor 7 ready
farah amber 3 pending
chen fable 32 pending
| brun
chen
gus
brun
brun
brun
hana
fara
chen
| dina delta 32 active
chen grove 91 failed
farah ember 24 failed
eli grove 94 pending
chen delta 114 failed
chen harbor 116 active
farah delta 37 failed
| dina
chen
fara
eli
chen
chen
fara
| first_chars | 2 | train | original-grammar | CC-BY-4.0 |
sedweave-0020467 | Print only the second comma-separated field from each line. | sed 's/[^,]*,\([^,]*\).*/\1/' | eli,grove,50,closed
farah,ember,99,ready
bruno,delta,17,failed
hana,delta,66,failed
chen,birch,94,failed
chen,fable,80,failed
gus,ember,102,closed
dina,fable,85,pending
| grove
ember
delta
delta
birch
fable
ember
fable
| chen,grove,90,failed
dina,harbor,59,failed
hana,cobalt,19,ready
dina,fable,92,active
hana,cobalt,107,pending
dina,ember,54,closed
bruno,ember,76,active
gus,grove,75,pending
| grove
harbor
cobalt
fable
cobalt
ember
ember
grove
| extract_second_csv | 2 | train | original-grammar | CC-BY-4.0 |
sedweave-0020462 | 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-0020468 | Replace the first occurrence of birch with amber on each line. | sed s/birch/amber/ | gus birch 27 closed
chen amber 44 pending
hana fable 27 failed
hana birch 2 closed
farah harbor 119 pending
bruno delta 107 failed
| gus amber 27 closed
chen amber 44 pending
hana fable 27 failed
hana amber 2 closed
farah harbor 119 pending
bruno delta 107 failed
| alice delta 72 active
dina fable 67 pending
alice grove 61 ready
farah fable 76 active
dina fable 93 closed
farah birch 112 pending
alice cobalt 3 closed
| alice delta 72 active
dina fable 67 pending
alice grove 61 ready
farah fable 76 active
dina fable 93 closed
farah amber 112 pending
alice cobalt 3 closed
| substitute_first | 1 | train | original-grammar | CC-BY-4.0 |
sedweave-0020464 | Print each input line's number, without printing the line contents. | sed = | hana fable 7 active
gus cobalt 88 ready
eli birch 55 ready
alice cobalt 72 closed
eli amber 74 pending
hana fable 95 failed
| 1
hana fable 7 active
2
gus cobalt 88 ready
3
eli birch 55 ready
4
alice cobalt 72 closed
5
eli amber 74 pending
6
hana fable 95 failed
| hana ember 115 pending
gus amber 71 failed
chen birch 32 failed
dina amber 78 closed
alice harbor 102 ready
farah cobalt 24 pending
| 1
hana ember 115 pending
2
gus amber 71 failed
3
chen birch 32 failed
4
dina amber 78 closed
5
alice harbor 102 ready
6
farah cobalt 24 pending
| number_lines | 1 | train | original-grammar | CC-BY-4.0 |
sedweave-0020465 | Remove the first character from every line. | sed 's/^.//' | gus grove 28 ready
farah harbor 45 active
gus harbor 80 failed
alice harbor 19 ready
eli amber 42 closed
dina delta 38 closed
| us grove 28 ready
arah harbor 45 active
us harbor 80 failed
lice harbor 19 ready
li amber 42 closed
ina delta 38 closed
| farah cobalt 68 ready
dina ember 28 active
chen delta 47 failed
chen delta 89 ready
alice fable 108 failed
eli grove 14 active
chen ember 13 ready
hana amber 36 ready
dina harbor 94 pending
| arah cobalt 68 ready
ina ember 28 active
hen delta 47 failed
hen delta 89 ready
lice fable 108 failed
li grove 14 active
hen ember 13 ready
ana amber 36 ready
ina harbor 94 pending
| delete_first_char | 1 | train | original-grammar | CC-BY-4.0 |
sedweave-0020466 | Remove the last character from every line. | sed 's/.$//' | farah grove 64 failed
eli delta 90 pending
farah fable 29 active
gus grove 18 failed
gus fable 35 ready
hana delta 49 ready
alice birch 2 pending
alice harbor 112 active
bruno fable 106 failed
| farah grove 64 faile
eli delta 90 pendin
farah fable 29 activ
gus grove 18 faile
gus fable 35 read
hana delta 49 read
alice birch 2 pendin
alice harbor 112 activ
bruno fable 106 faile
| bruno birch 60 failed
dina grove 75 ready
dina fable 29 pending
bruno delta 98 active
dina fable 64 ready
hana ember 117 active
farah cobalt 96 active
eli harbor 76 failed
bruno cobalt 103 active
| bruno birch 60 faile
dina grove 75 read
dina fable 29 pendin
bruno delta 98 activ
dina fable 64 read
hana ember 117 activ
farah cobalt 96 activ
eli harbor 76 faile
bruno cobalt 103 activ
| delete_last_char | 1 | train | original-grammar | CC-BY-4.0 |
sedweave-0020471 | Print only lines containing closed; suppress all others. | sed -n /closed/p | alice delta 27 active
eli birch 14 active
farah fable 83 active
hana delta 84 closed
chen amber 83 pending
dina delta 25 ready
gus birch 61 active
| hana delta 84 closed
| dina fable 10 active
chen cobalt 60 failed
eli amber 10 active
alice birch 119 active
bruno amber 16 failed
eli amber 110 ready
| regex_print | 1 | train | original-grammar | CC-BY-4.0 | |
sedweave-0020469 | Replace every occurrence of delta with fable throughout the input. | sed s/delta/fable/g | chen harbor 73 ready
dina birch 33 failed
bruno birch 47 active
hana fable 115 failed
dina ember 47 failed
chen fable 20 closed
gus birch 105 failed
gus fable 40 pending
| chen harbor 73 ready
dina birch 33 failed
bruno birch 47 active
hana fable 115 failed
dina ember 47 failed
chen fable 20 closed
gus birch 105 failed
gus fable 40 pending
| gus birch 68 pending
dina harbor 87 active
farah fable 69 ready
chen birch 17 failed
alice grove 106 active
dina amber 60 closed
bruno harbor 41 pending
chen ember 47 ready
| gus birch 68 pending
dina harbor 87 active
farah fable 69 ready
chen birch 17 failed
alice grove 106 active
dina amber 60 closed
bruno harbor 41 pending
chen ember 47 ready
| substitute_global | 1 | train | original-grammar | CC-BY-4.0 |
sedweave-0020472 | Print lines 3 through 4, inclusive, and nothing else. | sed -n 3,4p | chen grove 20 pending
hana fable 73 active
chen delta 89 failed
gus delta 93 active
alice ember 42 failed
gus amber 91 failed
dina grove 52 closed
chen delta 9 pending
hana grove 89 active
| chen delta 89 failed
gus delta 93 active
| gus birch 28 ready
eli fable 21 active
alice harbor 114 pending
farah harbor 25 closed
bruno harbor 78 active
hana cobalt 23 closed
gus cobalt 26 ready
alice grove 113 closed
| alice harbor 114 pending
farah harbor 25 closed
| line_range | 1 | train | original-grammar | CC-BY-4.0 |
sedweave-0020470 | Delete every line containing failed. | sed /failed/d | dina fable 15 active
alice delta 106 ready
farah delta 112 closed
hana grove 58 pending
gus delta 75 pending
alice ember 15 active
dina birch 92 ready
chen cobalt 98 active
gus amber 108 failed
| dina fable 15 active
alice delta 106 ready
farah delta 112 closed
hana grove 58 pending
gus delta 75 pending
alice ember 15 active
dina birch 92 ready
chen cobalt 98 active
| eli cobalt 45 pending
dina fable 5 ready
eli birch 69 pending
alice cobalt 64 pending
alice fable 33 ready
farah harbor 69 ready
dina delta 33 ready
gus grove 100 failed
eli ember 86 active
| eli cobalt 45 pending
dina fable 5 ready
eli birch 69 pending
alice cobalt 64 pending
alice fable 33 ready
farah harbor 69 ready
dina delta 33 ready
eli ember 86 active
| regex_delete | 1 | train | original-grammar | CC-BY-4.0 |
sedweave-0020478 | Append the line complete immediately after every line containing ready. | sed '/ready/a complete' | dina delta 2 ready
eli fable 16 ready
gus grove 59 pending
alice delta 104 failed
chen fable 82 ready
bruno amber 53 ready
| dina delta 2 ready
complete
eli fable 16 ready
complete
gus grove 59 pending
alice delta 104 failed
chen fable 82 ready
complete
bruno amber 53 ready
complete
| chen grove 111 active
chen grove 16 pending
chen ember 78 pending
eli cobalt 113 closed
bruno fable 15 pending
bruno grove 26 ready
bruno cobalt 87 ready
hana fable 25 ready
| chen grove 111 active
chen grove 16 pending
chen ember 78 pending
eli cobalt 113 closed
bruno fable 15 pending
bruno grove 26 ready
complete
bruno cobalt 87 ready
complete
hana fable 25 ready
complete
| append_after | 2 | train | original-grammar | CC-BY-4.0 |
sedweave-0020473 | Delete lines 2 through 3, leaving all other lines unchanged. | sed 2,3d | eli delta 40 failed
alice delta 4 failed
chen ember 29 failed
dina harbor 18 pending
bruno delta 116 active
gus harbor 105 closed
bruno delta 55 closed
alice delta 107 active
eli grove 93 ready
| eli delta 40 failed
dina harbor 18 pending
bruno delta 116 active
gus harbor 105 closed
bruno delta 55 closed
alice delta 107 active
eli grove 93 ready
| dina ember 13 active
alice ember 44 ready
chen fable 115 pending
dina birch 86 ready
alice amber 31 ready
eli amber 64 ready
hana harbor 66 active
alice birch 21 active
bruno ember 41 active
| dina ember 13 active
dina birch 86 ready
alice amber 31 ready
eli amber 64 ready
hana harbor 66 active
alice birch 21 active
bruno ember 41 active
| delete_range | 1 | train | original-grammar | CC-BY-4.0 |
sedweave-0020460 | Delete everything from the line containing grove through the line containing cobalt, inclusive. | sed /grove/,/cobalt/d | chen amber 17 closed
bruno grove 120 failed
hana birch 63 closed
dina delta 95 pending
eli birch 31 ready
farah grove 109 pending
dina birch 42 failed
gus grove 49 ready
| chen amber 17 closed
| alice harbor 91 ready
alice cobalt 2 ready
dina ember 79 pending
farah birch 11 active
farah grove 62 closed
gus delta 55 active
alice grove 1 ready
bruno amber 16 closed
dina fable 38 active
| alice harbor 91 ready
alice cobalt 2 ready
dina ember 79 pending
farah birch 11 active
| delete_between | 2 | train | original-grammar | CC-BY-4.0 |
sedweave-0020479 | Insert the line follow_up immediately before every line containing failed. | sed '/failed/i follow_up' | eli delta 45 active
gus amber 87 pending
hana fable 83 active
eli harbor 78 active
chen ember 96 failed
hana cobalt 113 pending
farah ember 11 ready
| eli delta 45 active
gus amber 87 pending
hana fable 83 active
eli harbor 78 active
follow_up
chen ember 96 failed
hana cobalt 113 pending
farah ember 11 ready
| farah harbor 79 failed
hana cobalt 64 ready
chen cobalt 48 failed
eli ember 40 failed
gus harbor 60 ready
alice grove 54 failed
gus cobalt 110 ready
alice harbor 116 pending
| follow_up
farah harbor 79 failed
hana cobalt 64 ready
follow_up
chen cobalt 48 failed
follow_up
eli ember 40 failed
gus harbor 60 ready
follow_up
alice grove 54 failed
gus cobalt 110 ready
alice harbor 116 pending
| insert_before | 2 | train | original-grammar | CC-BY-4.0 |
sedweave-0020480 | Replace every full line containing active with the single line complete. | sed '/active/c complete' | bruno ember 31 failed
eli cobalt 111 failed
dina fable 52 active
dina delta 39 active
bruno amber 90 ready
alice delta 9 ready
chen fable 102 ready
| bruno ember 31 failed
eli cobalt 111 failed
complete
complete
bruno amber 90 ready
alice delta 9 ready
chen fable 102 ready
| eli harbor 56 closed
dina grove 60 active
alice birch 20 pending
bruno grove 73 closed
farah cobalt 81 closed
hana ember 100 closed
| eli harbor 56 closed
complete
alice birch 20 pending
bruno grove 73 closed
farah cobalt 81 closed
hana ember 100 closed
| change_line | 2 | train | original-grammar | CC-BY-4.0 |
sedweave-0020475 | Print only the last line of the input. | sed -n '$p' | eli birch 5 failed
farah delta 120 ready
bruno delta 64 active
bruno harbor 100 ready
bruno amber 9 failed
alice cobalt 22 ready
chen amber 52 closed
gus grove 1 closed
| gus grove 1 closed
| chen harbor 53 ready
bruno cobalt 6 closed
chen delta 1 active
chen grove 84 pending
alice amber 28 failed
farah ember 33 ready
bruno grove 47 closed
gus cobalt 103 closed
| gus cobalt 103 closed
| last_line | 1 | train | original-grammar | CC-BY-4.0 |
sedweave-0020477 | Print odd-numbered lines: lines 1, 3, 5, and so on. | sed -n '0~2p' | hana fable 76 ready
chen harbor 37 ready
gus cobalt 93 active
gus ember 88 ready
alice delta 17 active
farah ember 17 closed
eli amber 96 active
bruno grove 52 active
hana harbor 104 pending
| chen harbor 37 ready
gus ember 88 ready
farah ember 17 closed
bruno grove 52 active
| farah grove 38 ready
farah cobalt 39 pending
dina grove 70 pending
bruno ember 6 failed
dina birch 94 pending
hana harbor 28 pending
| farah cobalt 39 pending
bruno ember 6 failed
hana harbor 28 pending
| every_other | 2 | train | original-grammar | CC-BY-4.0 |
sedweave-0020476 | Delete the last line of the input and print all remaining lines. | sed '$d' | hana ember 55 failed
hana harbor 63 failed
hana cobalt 119 ready
bruno delta 102 ready
hana birch 109 closed
bruno grove 72 active
hana ember 102 closed
chen cobalt 76 closed
chen fable 41 closed
| hana ember 55 failed
hana harbor 63 failed
hana cobalt 119 ready
bruno delta 102 ready
hana birch 109 closed
bruno grove 72 active
hana ember 102 closed
chen cobalt 76 closed
| hana ember 1 failed
hana harbor 18 closed
chen ember 6 failed
dina delta 15 pending
chen delta 78 active
farah grove 70 ready
| hana ember 1 failed
hana harbor 18 closed
chen ember 6 failed
dina delta 15 pending
chen delta 78 active
| delete_last | 1 | train | original-grammar | CC-BY-4.0 |
sedweave-0020481 | Delete all empty lines while preserving every nonempty line. | sed '/^$/d' | eli amber 16 active
bruno birch 90 failed
hana ember 105 active
hana grove 31 failed
farah cobalt 27 ready
alice fable 44 ready
bruno amber 114 pending
| eli amber 16 active
bruno birch 90 failed
hana ember 105 active
hana grove 31 failed
farah cobalt 27 ready
alice fable 44 ready
bruno amber 114 pending
| farah harbor 61 ready
farah ember 104 ready
chen ember 66 failed
farah amber 97 failed
chen grove 87 ready
hana birch 9 pending
| farah harbor 61 ready
farah ember 104 ready
chen ember 66 failed
farah amber 97 failed
chen grove 87 ready
hana birch 9 pending
| delete_blank | 1 | train | original-grammar | CC-BY-4.0 |
sedweave-0020474 | Print only the first 2 lines. | sed -n 1,2p | bruno fable 75 closed
bruno delta 110 active
hana amber 64 closed
gus fable 117 closed
bruno ember 114 failed
chen cobalt 56 active
| bruno fable 75 closed
bruno delta 110 active
| hana harbor 52 pending
gus birch 86 active
chen birch 120 active
bruno amber 50 pending
alice ember 117 ready
alice cobalt 29 pending
| hana harbor 52 pending
gus birch 86 active
| first_n | 1 | train | original-grammar | CC-BY-4.0 |
sedweave-0020488 | Replace every comma with a tab character. | sed 's/,/\t/g' | gus,ember,48,failed
bruno,ember,11,closed
chen,amber,94,pending
bruno,ember,39,ready
farah,grove,94,pending
dina,ember,68,closed
bruno,birch,75,active
| gus ember 48 failed
bruno ember 11 closed
chen amber 94 pending
bruno ember 39 ready
farah grove 94 pending
dina ember 68 closed
bruno birch 75 active
| farah,grove,2,pending
bruno,birch,16,active
alice,cobalt,82,active
chen,harbor,38,failed
alice,delta,64,ready
farah,fable,77,active
| farah grove 2 pending
bruno birch 16 active
alice cobalt 82 active
chen harbor 38 failed
alice delta 64 ready
farah fable 77 active
| comma_to_tab | 1 | train | original-grammar | CC-BY-4.0 |
sedweave-0020484 | Collapse every run of spaces or tabs to a single space. | sed 's/[ \t]+/ /g' | gus grove 59 closed
alice harbor 76 ready
gus fable 42 pending
farah grove 24 closed
gus harbor 87 active
hana delta 72 failed
eli harbor 45 failed
farah grove 83 failed
| gus grove 59 closed
alice harbor 76 ready
gus fable 42 pending
farah grove 24 closed
gus harbor 87 active
hana delta 72 failed
eli harbor 45 failed
farah grove 83 failed
| alice cobalt 118 pending
chen grove 41 pending
hana harbor 10 ready
bruno birch 118 failed
dina cobalt 44 pending
eli fable 78 failed
| alice cobalt 118 pending
chen grove 41 pending
hana harbor 10 ready
bruno birch 118 failed
dina cobalt 44 pending
eli fable 78 failed
| collapse_space | 1 | train | original-grammar | CC-BY-4.0 |
sedweave-0020487 | Swap the first two whitespace-separated fields on every line. | sed 's/\([^ ]*\) \([^ ]*\)/\2 \1/' | farah amber 97 pending
hana cobalt 76 ready
bruno harbor 38 pending
farah ember 2 ready
dina delta 50 failed
bruno amber 60 failed
chen cobalt 102 pending
| amber farah 97 pending
cobalt hana 76 ready
harbor bruno 38 pending
ember farah 2 ready
delta dina 50 failed
amber bruno 60 failed
cobalt chen 102 pending
| gus ember 61 failed
alice delta 58 pending
hana harbor 106 ready
farah birch 14 failed
gus fable 47 active
gus fable 40 failed
farah fable 30 closed
dina amber 20 failed
chen birch 21 ready
| ember gus 61 failed
delta alice 58 pending
harbor hana 106 ready
birch farah 14 failed
fable gus 47 active
fable gus 40 failed
fable farah 30 closed
amber dina 20 failed
birch chen 21 ready
| swap_fields | 2 | train | original-grammar | CC-BY-4.0 |
sedweave-0020482 | Remove all leading spaces and tabs from each line. | sed 's/^[ \t]*//' | dina cobalt 54 active
hana fable 106 closed
eli birch 4 ready
gus birch 50 ready
dina harbor 93 pending
chen ember 60 closed
alice amber 118 closed
alice grove 78 pending
| dina cobalt 54 active
hana fable 106 closed
eli birch 4 ready
gus birch 50 ready
dina harbor 93 pending
chen ember 60 closed
alice amber 118 closed
alice grove 78 pending
| dina grove 108 active
bruno birch 100 ready
gus amber 109 ready
bruno fable 91 failed
chen delta 27 closed
bruno cobalt 90 pending
farah amber 81 active
| dina grove 108 active
bruno birch 100 ready
gus amber 109 ready
bruno fable 91 failed
chen delta 27 closed
bruno cobalt 90 pending
farah amber 81 active
| strip_leading | 1 | train | original-grammar | CC-BY-4.0 |
sedweave-0020483 | Remove all trailing spaces and tabs from each line. | sed 's/[ \t]*$//' | chen cobalt 59 closed
chen cobalt 5 pending
farah birch 59 pending
gus fable 12 active
chen amber 67 ready
bruno delta 40 closed
hana fable 13 pending
farah amber 28 pending
| chen cobalt 59 closed
chen cobalt 5 pending
farah birch 59 pending
gus fable 12 active
chen amber 67 ready
bruno delta 40 closed
hana fable 13 pending
farah amber 28 pending
| chen delta 4 closed
gus cobalt 28 active
bruno delta 104 ready
eli fable 81 closed
gus harbor 65 active
alice fable 96 active
chen birch 8 failed
alice amber 65 ready
| chen delta 4 closed
gus cobalt 28 active
bruno delta 104 ready
eli fable 81 closed
gus harbor 65 active
alice fable 96 active
chen birch 8 failed
alice amber 65 ready
| strip_trailing | 1 | train | original-grammar | CC-BY-4.0 |
sedweave-0020489 | Add the prefix INFO followed by a space to the start of every line. | sed 's/^/INFO /' | chen grove 15 failed
gus ember 116 ready
eli ember 45 failed
alice grove 38 pending
dina fable 23 failed
farah amber 24 pending
hana delta 104 pending
| INFO chen grove 15 failed
INFO gus ember 116 ready
INFO eli ember 45 failed
INFO alice grove 38 pending
INFO dina fable 23 failed
INFO farah amber 24 pending
INFO hana delta 104 pending
| alice grove 116 ready
chen cobalt 24 pending
eli amber 19 ready
dina grove 117 pending
dina birch 105 failed
bruno delta 62 failed
chen cobalt 48 active
farah delta 99 failed
hana grove 119 failed
| INFO alice grove 116 ready
INFO chen cobalt 24 pending
INFO eli amber 19 ready
INFO dina grove 117 pending
INFO dina birch 105 failed
INFO bruno delta 62 failed
INFO chen cobalt 48 active
INFO farah delta 99 failed
INFO hana grove 119 failed
| add_prefix | 1 | train | original-grammar | CC-BY-4.0 |
sedweave-0020486 | Convert every input line to lowercase. | sed 's/.*/\L&/' | bruno fable 12 ready
dina ember 14 ready
dina ember 92 ready
gus birch 110 ready
hana harbor 58 active
hana birch 101 active
alice ember 37 failed
bruno amber 68 pending
chen fable 45 closed
| bruno fable 12 ready
dina ember 14 ready
dina ember 92 ready
gus birch 110 ready
hana harbor 58 active
hana birch 101 active
alice ember 37 failed
bruno amber 68 pending
chen fable 45 closed
| hana fable 87 failed
alice birch 60 ready
chen fable 114 pending
gus delta 108 closed
gus birch 41 active
gus harbor 26 failed
eli birch 70 closed
chen fable 42 ready
farah amber 98 ready
| hana fable 87 failed
alice birch 60 ready
chen fable 114 pending
gus delta 108 closed
gus birch 41 active
gus harbor 26 failed
eli birch 70 closed
chen fable 42 ready
farah amber 98 ready
| lowercase | 1 | train | original-grammar | CC-BY-4.0 |
sedweave-0020485 | Convert every input line to uppercase. | sed 's/.*/\U&/' | alice birch 59 ready
gus grove 112 failed
gus ember 44 active
hana ember 97 pending
chen grove 93 ready
dina delta 52 failed
bruno grove 15 failed
gus ember 84 ready
| ALICE BIRCH 59 READY
GUS GROVE 112 FAILED
GUS EMBER 44 ACTIVE
HANA EMBER 97 PENDING
CHEN GROVE 93 READY
DINA DELTA 52 FAILED
BRUNO GROVE 15 FAILED
GUS EMBER 84 READY
| farah birch 71 active
farah delta 5 closed
eli harbor 19 closed
bruno ember 72 active
hana grove 8 pending
hana cobalt 89 failed
alice amber 9 closed
farah ember 108 active
| FARAH BIRCH 71 ACTIVE
FARAH DELTA 5 CLOSED
ELI HARBOR 19 CLOSED
BRUNO EMBER 72 ACTIVE
HANA GROVE 8 PENDING
HANA COBALT 89 FAILED
ALICE AMBER 9 CLOSED
FARAH EMBER 108 ACTIVE
| uppercase | 1 | train | original-grammar | CC-BY-4.0 |
sedweave-0020500 | Remove the last character from every line. | sed 's/.$//' | gus amber 38 active
eli fable 15 pending
alice grove 93 active
dina delta 76 failed
chen amber 84 ready
gus ember 12 failed
| gus amber 38 activ
eli fable 15 pendin
alice grove 93 activ
dina delta 76 faile
chen amber 84 read
gus ember 12 faile
| hana fable 16 failed
dina delta 46 ready
chen cobalt 6 pending
dina ember 47 active
alice amber 67 ready
eli amber 84 closed
eli delta 102 active
| hana fable 16 faile
dina delta 46 read
chen cobalt 6 pendin
dina ember 47 activ
alice amber 67 read
eli amber 84 close
eli delta 102 activ
| delete_last_char | 1 | train | original-grammar | CC-BY-4.0 |
sedweave-0020503 | Replace every occurrence of fable with cobalt throughout the input. | sed s/fable/cobalt/g | chen cobalt 5 active
alice cobalt 0 failed
dina amber 66 active
chen fable 66 pending
dina ember 92 failed
chen fable 6 active
hana amber 13 failed
bruno delta 71 pending
eli birch 97 closed
| chen cobalt 5 active
alice cobalt 0 failed
dina amber 66 active
chen cobalt 66 pending
dina ember 92 failed
chen cobalt 6 active
hana amber 13 failed
bruno delta 71 pending
eli birch 97 closed
| eli grove 16 active
chen delta 15 failed
dina grove 62 active
hana amber 100 ready
farah delta 75 ready
hana amber 36 closed
gus ember 115 active
alice amber 16 failed
| eli grove 16 active
chen delta 15 failed
dina grove 62 active
hana amber 100 ready
farah delta 75 ready
hana amber 36 closed
gus ember 115 active
alice amber 16 failed
| substitute_global | 1 | train | original-grammar | CC-BY-4.0 |
sedweave-0020509 | Print only the last line of the input. | sed -n '$p' | chen grove 108 active
bruno amber 15 ready
hana grove 56 active
gus delta 20 failed
bruno harbor 31 active
farah grove 55 ready
farah harbor 67 pending
| farah harbor 67 pending
| gus fable 118 closed
farah harbor 54 active
gus delta 32 pending
gus grove 30 ready
dina delta 61 pending
gus grove 89 ready
| gus grove 89 ready
| last_line | 1 | train | original-grammar | CC-BY-4.0 |
sedweave-0020508 | Print only the first 4 lines. | sed -n 1,4p | gus fable 34 pending
dina ember 70 failed
eli amber 100 ready
hana ember 77 closed
dina harbor 12 closed
alice harbor 9 ready
| gus fable 34 pending
dina ember 70 failed
eli amber 100 ready
hana ember 77 closed
| hana harbor 3 active
gus ember 54 active
eli delta 65 closed
chen fable 32 failed
alice birch 5 ready
eli fable 37 failed
| hana harbor 3 active
gus ember 54 active
eli delta 65 closed
chen fable 32 failed
| first_n | 1 | train | original-grammar | CC-BY-4.0 |
sedweave-0020504 | Delete every line containing closed. | sed /closed/d | gus harbor 101 closed
gus grove 59 failed
bruno fable 103 ready
bruno grove 29 pending
chen fable 49 pending
hana amber 100 active
| gus grove 59 failed
bruno fable 103 ready
bruno grove 29 pending
chen fable 49 pending
hana amber 100 active
| alice birch 37 pending
alice cobalt 37 pending
alice cobalt 29 failed
gus fable 43 closed
eli delta 8 pending
dina fable 2 failed
alice birch 53 active
eli ember 42 pending
gus ember 76 ready
| alice birch 37 pending
alice cobalt 37 pending
alice cobalt 29 failed
eli delta 8 pending
dina fable 2 failed
alice birch 53 active
eli ember 42 pending
gus ember 76 ready
| regex_delete | 1 | train | original-grammar | CC-BY-4.0 |
sedweave-0020501 | Print only the second comma-separated field from each line. | sed 's/[^,]*,\([^,]*\).*/\1/' | eli,birch,103,pending
chen,cobalt,104,pending
dina,delta,8,failed
farah,birch,66,active
chen,birch,112,closed
dina,fable,49,ready
| birch
cobalt
delta
birch
birch
fable
| alice,birch,70,active
alice,harbor,114,pending
gus,ember,117,pending
eli,delta,20,closed
dina,delta,33,pending
gus,harbor,85,pending
chen,delta,99,closed
alice,grove,119,ready
farah,amber,33,ready
| birch
harbor
ember
delta
delta
harbor
delta
grove
amber
| extract_second_csv | 2 | train | original-grammar | CC-BY-4.0 |
sedweave-0020506 | Print lines 3 through 5, inclusive, and nothing else. | sed -n 3,5p | alice harbor 58 ready
gus grove 104 failed
eli delta 83 ready
bruno amber 91 failed
farah grove 100 ready
hana cobalt 28 active
chen delta 10 closed
chen delta 103 ready
| eli delta 83 ready
bruno amber 91 failed
farah grove 100 ready
| eli ember 14 ready
bruno amber 16 pending
alice birch 72 active
hana cobalt 15 pending
hana harbor 70 pending
hana amber 73 ready
bruno grove 51 active
chen fable 69 active
| alice birch 72 active
hana cobalt 15 pending
hana harbor 70 pending
| line_range | 1 | train | original-grammar | CC-BY-4.0 |
sedweave-0020502 | Replace the first occurrence of cobalt with amber on each line. | sed s/cobalt/amber/ | dina birch 12 failed
farah amber 31 closed
gus delta 94 ready
alice fable 54 closed
hana fable 14 ready
alice grove 54 failed
gus birch 16 ready
| dina birch 12 failed
farah amber 31 closed
gus delta 94 ready
alice fable 54 closed
hana fable 14 ready
alice grove 54 failed
gus birch 16 ready
| eli fable 115 closed
gus delta 42 active
gus delta 36 active
dina birch 4 ready
hana fable 71 active
gus birch 41 closed
dina delta 87 ready
chen amber 71 active
alice amber 38 closed
| eli fable 115 closed
gus delta 42 active
gus delta 36 active
dina birch 4 ready
hana fable 71 active
gus birch 41 closed
dina delta 87 ready
chen amber 71 active
alice amber 38 closed
| substitute_first | 1 | train | original-grammar | CC-BY-4.0 |
sedweave-0020507 | Delete lines 4 through 5, leaving all other lines unchanged. | sed 4,5d | chen harbor 37 pending
dina ember 48 ready
gus amber 107 ready
hana birch 55 active
hana grove 49 pending
alice amber 84 ready
dina ember 5 pending
chen harbor 19 pending
| chen harbor 37 pending
dina ember 48 ready
gus amber 107 ready
alice amber 84 ready
dina ember 5 pending
chen harbor 19 pending
| bruno grove 68 ready
eli amber 115 pending
eli amber 13 closed
dina delta 31 closed
bruno delta 31 ready
farah amber 9 ready
farah delta 55 active
| bruno grove 68 ready
eli amber 115 pending
eli amber 13 closed
farah amber 9 ready
farah delta 55 active
| delete_range | 1 | train | original-grammar | CC-BY-4.0 |
sedweave-0020510 | Delete the last line of the input and print all remaining lines. | sed '$d' | bruno amber 65 failed
dina fable 23 ready
bruno fable 120 active
gus grove 10 closed
chen harbor 76 failed
hana grove 75 ready
eli birch 119 ready
eli ember 94 closed
| bruno amber 65 failed
dina fable 23 ready
bruno fable 120 active
gus grove 10 closed
chen harbor 76 failed
hana grove 75 ready
eli birch 119 ready
| dina birch 35 active
dina fable 90 active
bruno grove 81 failed
dina harbor 56 active
bruno birch 74 active
bruno delta 9 active
farah fable 25 pending
eli ember 80 ready
| dina birch 35 active
dina fable 90 active
bruno grove 81 failed
dina harbor 56 active
bruno birch 74 active
bruno delta 9 active
farah fable 25 pending
| delete_last | 1 | train | original-grammar | CC-BY-4.0 |
sedweave-0020505 | Print only lines containing closed; suppress all others. | sed -n /closed/p | alice cobalt 97 failed
eli birch 23 closed
alice fable 78 pending
eli amber 113 closed
dina harbor 37 pending
eli grove 105 pending
| eli birch 23 closed
eli amber 113 closed
| farah fable 56 active
hana cobalt 41 closed
alice birch 9 ready
bruno fable 18 ready
bruno birch 0 active
hana ember 96 failed
dina harbor 113 pending
| hana cobalt 41 closed
| regex_print | 1 | train | original-grammar | CC-BY-4.0 |
sedweave-0020513 | Insert the line reviewed immediately before every line containing active. | sed '/active/i reviewed' | chen harbor 37 failed
bruno grove 41 closed
hana cobalt 13 closed
farah amber 37 ready
farah amber 48 failed
farah ember 110 closed
gus grove 116 ready
hana amber 92 pending
| chen harbor 37 failed
bruno grove 41 closed
hana cobalt 13 closed
farah amber 37 ready
farah amber 48 failed
farah ember 110 closed
gus grove 116 ready
hana amber 92 pending
| chen birch 69 closed
hana ember 9 active
dina ember 10 active
alice amber 89 active
eli cobalt 119 ready
eli grove 62 closed
alice harbor 5 closed
alice harbor 60 pending
bruno birch 24 pending
| chen birch 69 closed
reviewed
hana ember 9 active
reviewed
dina ember 10 active
reviewed
alice amber 89 active
eli cobalt 119 ready
eli grove 62 closed
alice harbor 5 closed
alice harbor 60 pending
bruno birch 24 pending
| insert_before | 2 | train | original-grammar | CC-BY-4.0 |
sedweave-0020511 | Print odd-numbered lines: lines 1, 3, 5, and so on. | sed -n '0~2p' | alice harbor 107 active
gus grove 19 active
gus cobalt 19 active
gus fable 27 closed
chen delta 99 closed
bruno amber 40 active
dina amber 55 failed
| gus grove 19 active
gus fable 27 closed
bruno amber 40 active
| alice cobalt 81 pending
eli grove 43 ready
dina delta 56 ready
alice birch 102 failed
dina grove 42 active
farah fable 12 pending
hana grove 41 failed
| eli grove 43 ready
alice birch 102 failed
farah fable 12 pending
| every_other | 2 | train | original-grammar | CC-BY-4.0 |
sedweave-0020516 | Remove all leading spaces and tabs from each line. | sed 's/^[ \t]*//' | chen ember 63 failed
gus grove 100 active
hana fable 92 active
chen harbor 98 ready
bruno amber 59 ready
farah delta 17 active
| chen ember 63 failed
gus grove 100 active
hana fable 92 active
chen harbor 98 ready
bruno amber 59 ready
farah delta 17 active
| alice grove 10 failed
farah grove 51 failed
bruno birch 51 failed
gus birch 56 active
chen birch 0 closed
gus cobalt 53 closed
eli harbor 74 failed
chen cobalt 21 failed
| alice grove 10 failed
farah grove 51 failed
bruno birch 51 failed
gus birch 56 active
chen birch 0 closed
gus cobalt 53 closed
eli harbor 74 failed
chen cobalt 21 failed
| strip_leading | 1 | train | original-grammar | CC-BY-4.0 |
sedweave-0020515 | Delete all empty lines while preserving every nonempty line. | sed '/^$/d' | hana harbor 47 active
alice birch 37 failed
hana birch 32 active
chen fable 100 failed
bruno birch 87 failed
gus fable 83 ready
| hana harbor 47 active
alice birch 37 failed
hana birch 32 active
chen fable 100 failed
bruno birch 87 failed
gus fable 83 ready
| farah harbor 2 ready
chen grove 90 pending
alice birch 108 failed
chen ember 36 pending
farah birch 70 closed
gus ember 60 active
chen amber 43 failed
bruno cobalt 99 active
| farah harbor 2 ready
chen grove 90 pending
alice birch 108 failed
chen ember 36 pending
farah birch 70 closed
gus ember 60 active
chen amber 43 failed
bruno cobalt 99 active
| delete_blank | 1 | train | original-grammar | CC-BY-4.0 |
sedweave-0020517 | Remove all trailing spaces and tabs from each line. | sed 's/[ \t]*$//' | eli cobalt 118 pending
eli ember 62 ready
eli fable 84 closed
eli fable 50 failed
alice delta 70 failed
chen amber 114 ready
dina fable 5 active
| eli cobalt 118 pending
eli ember 62 ready
eli fable 84 closed
eli fable 50 failed
alice delta 70 failed
chen amber 114 ready
dina fable 5 active
| farah amber 42 pending
bruno amber 97 pending
gus grove 54 pending
alice ember 4 ready
farah ember 51 pending
hana harbor 24 failed
bruno fable 8 pending
| farah amber 42 pending
bruno amber 97 pending
gus grove 54 pending
alice ember 4 ready
farah ember 51 pending
hana harbor 24 failed
bruno fable 8 pending
| strip_trailing | 1 | train | original-grammar | CC-BY-4.0 |
sedweave-0020514 | Replace every full line containing failed with the single line follow_up. | sed '/failed/c follow_up' | gus birch 14 closed
bruno cobalt 60 failed
alice fable 87 pending
hana cobalt 89 active
hana cobalt 8 active
gus harbor 108 ready
gus grove 101 closed
chen harbor 64 pending
| gus birch 14 closed
follow_up
alice fable 87 pending
hana cobalt 89 active
hana cobalt 8 active
gus harbor 108 ready
gus grove 101 closed
chen harbor 64 pending
| alice birch 117 ready
hana delta 105 failed
dina harbor 12 failed
farah delta 41 ready
farah cobalt 9 closed
hana amber 88 active
| alice birch 117 ready
follow_up
follow_up
farah delta 41 ready
farah cobalt 9 closed
hana amber 88 active
| change_line | 2 | train | original-grammar | CC-BY-4.0 |
sedweave-0020523 | Add the prefix notice followed by a space to the start of every line. | sed 's/^/notice /' | hana birch 31 closed
bruno delta 75 ready
alice cobalt 57 failed
gus fable 55 ready
chen delta 79 active
farah delta 5 active
bruno birch 40 ready
dina delta 96 active
| notice hana birch 31 closed
notice bruno delta 75 ready
notice alice cobalt 57 failed
notice gus fable 55 ready
notice chen delta 79 active
notice farah delta 5 active
notice bruno birch 40 ready
notice dina delta 96 active
| hana delta 48 active
farah delta 101 failed
hana birch 77 ready
farah delta 37 pending
alice ember 55 failed
farah birch 38 closed
farah grove 104 closed
chen fable 105 active
eli harbor 38 active
| notice hana delta 48 active
notice farah delta 101 failed
notice hana birch 77 ready
notice farah delta 37 pending
notice alice ember 55 failed
notice farah birch 38 closed
notice farah grove 104 closed
notice chen fable 105 active
notice eli harbor 38 active
| add_prefix | 1 | train | original-grammar | CC-BY-4.0 |
sedweave-0020512 | Append the line reviewed immediately after every line containing failed. | sed '/failed/a reviewed' | bruno harbor 14 failed
farah grove 110 closed
hana delta 11 pending
farah amber 102 pending
chen delta 75 closed
bruno grove 89 failed
dina harbor 47 failed
chen delta 31 active
| bruno harbor 14 failed
reviewed
farah grove 110 closed
hana delta 11 pending
farah amber 102 pending
chen delta 75 closed
bruno grove 89 failed
reviewed
dina harbor 47 failed
reviewed
chen delta 31 active
| gus fable 62 ready
gus ember 88 closed
farah harbor 24 closed
farah amber 106 active
alice harbor 65 ready
gus harbor 72 failed
hana ember 88 pending
farah amber 39 pending
| gus fable 62 ready
gus ember 88 closed
farah harbor 24 closed
farah amber 106 active
alice harbor 65 ready
gus harbor 72 failed
reviewed
hana ember 88 pending
farah amber 39 pending
| append_after | 2 | train | original-grammar | CC-BY-4.0 |
sedweave-0020525 | Comment out every input line by adding # and a space at the start. | sed 's/^/# /' | hana birch 86 active
alice amber 26 active
dina amber 33 pending
farah grove 93 active
gus fable 96 closed
farah grove 80 active
gus cobalt 109 pending
| # hana birch 86 active
# alice amber 26 active
# dina amber 33 pending
# farah grove 93 active
# gus fable 96 closed
# farah grove 80 active
# gus cobalt 109 pending
| alice amber 64 pending
eli ember 29 ready
dina ember 103 active
dina harbor 43 active
hana grove 39 ready
eli harbor 29 active
| # alice amber 64 pending
# eli ember 29 ready
# dina ember 103 active
# dina harbor 43 active
# hana grove 39 ready
# eli harbor 29 active
| comment_lines | 1 | train | original-grammar | CC-BY-4.0 |
sedweave-0020526 | Delete all lines beginning with #. | sed '/^#/d' | eli amber 48 ready
# note
alice harbor 87 pending
bruno birch 36 closed
bruno ember 100 closed
farah ember 67 ready
dina grove 14 ready
bruno amber 60 active
dina birch 16 active
hana harbor 1 pending
| eli amber 48 ready
alice harbor 87 pending
bruno birch 36 closed
bruno ember 100 closed
farah ember 67 ready
dina grove 14 ready
bruno amber 60 active
dina birch 16 active
hana harbor 1 pending
| alice delta 72 pending
# note
eli harbor 18 pending
dina harbor 37 closed
dina delta 85 ready
alice cobalt 6 pending
eli fable 34 active
gus grove 112 ready
| alice delta 72 pending
eli harbor 18 pending
dina harbor 37 closed
dina delta 85 ready
alice cobalt 6 pending
eli fable 34 active
gus grove 112 ready
| delete_comments | 1 | train | original-grammar | CC-BY-4.0 |
sedweave-0020524 | Append a space and done to the end of every line. | sed 's/$/ done/' | hana delta 89 pending
eli fable 114 pending
dina fable 39 active
farah delta 111 ready
hana cobalt 69 pending
hana delta 18 failed
| hana delta 89 pending done
eli fable 114 pending done
dina fable 39 active done
farah delta 111 ready done
hana cobalt 69 pending done
hana delta 18 failed done
| dina amber 54 pending
chen fable 112 closed
dina grove 21 active
eli fable 74 ready
farah ember 83 failed
alice ember 48 failed
| dina amber 54 pending done
chen fable 112 closed done
dina grove 21 active done
eli fable 74 ready done
farah ember 83 failed done
alice ember 48 failed done
| add_suffix | 1 | train | original-grammar | CC-BY-4.0 |
sedweave-0020521 | Swap the first two whitespace-separated fields on every line. | sed 's/\([^ ]*\) \([^ ]*\)/\2 \1/' | chen harbor 75 pending
bruno fable 23 closed
gus harbor 68 pending
chen fable 103 ready
hana birch 11 failed
farah grove 54 closed
| harbor chen 75 pending
fable bruno 23 closed
harbor gus 68 pending
fable chen 103 ready
birch hana 11 failed
grove farah 54 closed
| alice harbor 18 failed
farah delta 40 ready
chen amber 83 ready
chen birch 63 pending
dina fable 34 failed
chen grove 120 closed
dina delta 78 pending
| harbor alice 18 failed
delta farah 40 ready
amber chen 83 ready
birch chen 63 pending
fable dina 34 failed
grove chen 120 closed
delta dina 78 pending
| swap_fields | 2 | train | original-grammar | CC-BY-4.0 |
sedweave-0020520 | Convert every input line to lowercase. | sed 's/.*/\L&/' | farah cobalt 21 active
farah grove 99 pending
bruno fable 120 active
bruno fable 25 failed
hana birch 40 failed
dina harbor 11 failed
bruno cobalt 83 failed
farah birch 20 failed
| farah cobalt 21 active
farah grove 99 pending
bruno fable 120 active
bruno fable 25 failed
hana birch 40 failed
dina harbor 11 failed
bruno cobalt 83 failed
farah birch 20 failed
| farah cobalt 57 ready
farah amber 109 closed
farah cobalt 56 ready
bruno cobalt 1 failed
alice birch 38 active
farah birch 14 closed
gus ember 26 pending
alice amber 76 pending
gus ember 38 pending
| farah cobalt 57 ready
farah amber 109 closed
farah cobalt 56 ready
bruno cobalt 1 failed
alice birch 38 active
farah birch 14 closed
gus ember 26 pending
alice amber 76 pending
gus ember 38 pending
| lowercase | 1 | train | original-grammar | CC-BY-4.0 |
sedweave-0020519 | Convert every input line to uppercase. | sed 's/.*/\U&/' | dina grove 85 ready
chen grove 32 closed
eli grove 59 active
hana cobalt 72 failed
hana grove 108 failed
eli fable 22 closed
hana ember 112 failed
| DINA GROVE 85 READY
CHEN GROVE 32 CLOSED
ELI GROVE 59 ACTIVE
HANA COBALT 72 FAILED
HANA GROVE 108 FAILED
ELI FABLE 22 CLOSED
HANA EMBER 112 FAILED
| hana cobalt 108 active
gus birch 33 active
hana harbor 100 pending
alice harbor 110 active
hana fable 20 failed
hana delta 85 closed
hana fable 90 closed
| HANA COBALT 108 ACTIVE
GUS BIRCH 33 ACTIVE
HANA HARBOR 100 PENDING
ALICE HARBOR 110 ACTIVE
HANA FABLE 20 FAILED
HANA DELTA 85 CLOSED
HANA FABLE 90 CLOSED
| uppercase | 1 | train | original-grammar | CC-BY-4.0 |
sedweave-0020527 | Print only the first 4 characters of each line. | sed 's/^\(.\{4\}\).*/\1/' | alice ember 31 active
dina fable 32 ready
alice amber 84 ready
chen cobalt 86 active
eli harbor 118 closed
alice grove 40 closed
hana amber 15 active
| alic
dina
alic
chen
eli
alic
hana
| hana grove 21 closed
farah amber 19 closed
chen grove 33 closed
bruno amber 19 pending
chen fable 4 ready
eli birch 17 closed
hana fable 62 active
eli amber 26 pending
| hana
fara
chen
brun
chen
eli
hana
eli
| first_chars | 2 | train | original-grammar | CC-BY-4.0 |
sedweave-0020518 | Collapse every run of spaces or tabs to a single space. | sed 's/[ \t]+/ /g' | bruno birch 52 ready
gus delta 36 pending
alice harbor 93 ready
dina delta 65 ready
hana amber 13 pending
bruno harbor 30 pending
| bruno birch 52 ready
gus delta 36 pending
alice harbor 93 ready
dina delta 65 ready
hana amber 13 pending
bruno harbor 30 pending
| alice grove 38 failed
bruno grove 99 pending
hana amber 100 failed
hana fable 113 pending
bruno birch 80 ready
dina harbor 14 ready
hana fable 15 active
eli grove 17 ready
farah ember 119 closed
| alice grove 38 failed
bruno grove 99 pending
hana amber 100 failed
hana fable 113 pending
bruno birch 80 ready
dina harbor 14 ready
hana fable 15 active
eli grove 17 ready
farah ember 119 closed
| collapse_space | 1 | train | original-grammar | CC-BY-4.0 |
sedweave-0020522 | Replace every comma with a tab character. | sed 's/,/\t/g' | dina,delta,111,pending
bruno,cobalt,59,pending
eli,harbor,99,failed
eli,grove,8,closed
chen,ember,85,failed
hana,delta,81,pending
eli,harbor,7,closed
alice,birch,115,closed
| dina delta 111 pending
bruno cobalt 59 pending
eli harbor 99 failed
eli grove 8 closed
chen ember 85 failed
hana delta 81 pending
eli harbor 7 closed
alice birch 115 closed
| bruno,delta,60,closed
hana,grove,17,active
dina,birch,26,failed
farah,amber,19,ready
farah,cobalt,96,active
dina,harbor,58,closed
chen,harbor,115,closed
hana,amber,64,failed
| bruno delta 60 closed
hana grove 17 active
dina birch 26 failed
farah amber 19 ready
farah cobalt 96 active
dina harbor 58 closed
chen harbor 115 closed
hana amber 64 failed
| comma_to_tab | 1 | train | original-grammar | CC-BY-4.0 |
sedweave-0020531 | Replace every sequence of digits with the letter N. | sed 's/[0-9][0-9]*/N/g' | eli delta 75 closed
bruno fable 67 ready
bruno fable 97 failed
chen amber 44 pending
bruno grove 60 pending
gus amber 23 active
| eli delta N closed
bruno fable N ready
bruno fable N failed
chen amber N pending
bruno grove N pending
gus amber N active
| farah birch 61 failed
hana fable 2 closed
dina grove 14 pending
eli harbor 98 failed
gus birch 100 failed
bruno grove 3 pending
| farah birch N failed
hana fable N closed
dina grove N pending
eli harbor N failed
gus birch N failed
bruno grove N pending
| digits_mask | 1 | train | original-grammar | CC-BY-4.0 |
sedweave-0020530 | 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-0020528 | Delete everything from the line containing harbor through the line containing delta, inclusive. | sed /harbor/,/delta/d | chen grove 81 closed
alice fable 53 pending
dina grove 85 closed
hana amber 29 pending
alice ember 29 ready
farah harbor 74 active
eli amber 36 ready
| chen grove 81 closed
alice fable 53 pending
dina grove 85 closed
hana amber 29 pending
alice ember 29 ready
| farah birch 41 ready
hana fable 8 failed
farah grove 114 ready
farah fable 94 active
bruno delta 117 active
farah delta 106 failed
chen ember 68 active
farah delta 68 failed
eli fable 3 closed
| farah birch 41 ready
hana fable 8 failed
farah grove 114 ready
farah fable 94 active
bruno delta 117 active
farah delta 106 failed
chen ember 68 active
farah delta 68 failed
eli fable 3 closed
| delete_between | 2 | train | original-grammar | CC-BY-4.0 |
sedweave-0020533 | Remove the first character from every line. | sed 's/^.//' | eli birch 5 ready
farah grove 3 active
hana amber 16 closed
gus delta 35 ready
farah delta 51 active
eli delta 58 active
| li birch 5 ready
arah grove 3 active
ana amber 16 closed
us delta 35 ready
arah delta 51 active
li delta 58 active
| dina cobalt 35 ready
eli birch 19 ready
farah delta 51 active
hana ember 62 active
hana amber 53 active
hana amber 49 pending
gus amber 50 failed
eli delta 95 failed
| ina cobalt 35 ready
li birch 19 ready
arah delta 51 active
ana ember 62 active
ana amber 53 active
ana amber 49 pending
us amber 50 failed
li delta 95 failed
| delete_first_char | 1 | train | original-grammar | CC-BY-4.0 |
sedweave-0020534 | Remove the last character from every line. | sed 's/.$//' | chen ember 62 failed
chen birch 90 closed
chen delta 99 pending
farah fable 98 failed
hana delta 6 closed
farah cobalt 59 active
chen fable 61 ready
chen ember 40 active
gus fable 54 closed
| chen ember 62 faile
chen birch 90 close
chen delta 99 pendin
farah fable 98 faile
hana delta 6 close
farah cobalt 59 activ
chen fable 61 read
chen ember 40 activ
gus fable 54 close
| bruno ember 87 active
alice cobalt 60 failed
eli harbor 51 active
chen harbor 55 failed
hana birch 110 failed
eli grove 39 ready
hana grove 37 failed
alice harbor 98 pending
farah grove 45 closed
| bruno ember 87 activ
alice cobalt 60 faile
eli harbor 51 activ
chen harbor 55 faile
hana birch 110 faile
eli grove 39 read
hana grove 37 faile
alice harbor 98 pendin
farah grove 45 close
| delete_last_char | 1 | train | original-grammar | CC-BY-4.0 |
sedweave-0020532 | Print each input line's number, without printing the line contents. | sed = | alice grove 52 closed
farah birch 114 closed
alice delta 68 ready
hana cobalt 8 failed
chen cobalt 32 ready
alice delta 15 closed
chen birch 16 active
| 1
alice grove 52 closed
2
farah birch 114 closed
3
alice delta 68 ready
4
hana cobalt 8 failed
5
chen cobalt 32 ready
6
alice delta 15 closed
7
chen birch 16 active
| farah harbor 5 ready
dina cobalt 76 ready
eli fable 59 closed
chen birch 116 closed
bruno harbor 37 failed
chen birch 8 ready
| 1
farah harbor 5 ready
2
dina cobalt 76 ready
3
eli fable 59 closed
4
chen birch 116 closed
5
bruno harbor 37 failed
6
chen birch 8 ready
| number_lines | 1 | train | original-grammar | CC-BY-4.0 |
sedweave-0020536 | Replace the first occurrence of grove with amber on each line. | sed s/grove/amber/ | chen cobalt 19 failed
alice delta 118 failed
alice delta 109 failed
hana grove 73 failed
hana birch 24 closed
farah birch 69 pending
hana delta 29 closed
| chen cobalt 19 failed
alice delta 118 failed
alice delta 109 failed
hana amber 73 failed
hana birch 24 closed
farah birch 69 pending
hana delta 29 closed
| bruno grove 102 active
hana fable 94 failed
bruno cobalt 88 pending
bruno fable 96 closed
alice fable 45 closed
farah harbor 54 closed
alice ember 65 failed
chen delta 90 ready
farah grove 57 ready
| bruno amber 102 active
hana fable 94 failed
bruno cobalt 88 pending
bruno fable 96 closed
alice fable 45 closed
farah harbor 54 closed
alice ember 65 failed
chen delta 90 ready
farah amber 57 ready
| substitute_first | 1 | train | original-grammar | CC-BY-4.0 |
sedweave-0020537 | Replace every occurrence of amber with ember throughout the input. | sed s/amber/ember/g | farah amber 103 pending
alice ember 90 pending
eli ember 91 active
bruno delta 109 closed
bruno amber 73 failed
gus fable 103 closed
hana fable 82 failed
dina harbor 37 failed
| farah ember 103 pending
alice ember 90 pending
eli ember 91 active
bruno delta 109 closed
bruno ember 73 failed
gus fable 103 closed
hana fable 82 failed
dina harbor 37 failed
| dina amber 68 pending
hana grove 25 ready
gus harbor 51 ready
eli ember 69 closed
eli grove 102 active
hana ember 67 failed
alice fable 70 ready
| dina ember 68 pending
hana grove 25 ready
gus harbor 51 ready
eli ember 69 closed
eli grove 102 active
hana ember 67 failed
alice fable 70 ready
| substitute_global | 1 | train | original-grammar | CC-BY-4.0 |
sedweave-0020540 | Print lines 2 through 4, inclusive, and nothing else. | sed -n 2,4p | dina delta 58 ready
farah fable 90 closed
bruno cobalt 111 active
gus grove 17 active
dina fable 86 ready
dina fable 62 active
chen fable 28 closed
| farah fable 90 closed
bruno cobalt 111 active
gus grove 17 active
| dina delta 71 closed
eli cobalt 14 pending
bruno harbor 63 closed
alice birch 3 active
chen fable 74 pending
chen harbor 40 pending
| eli cobalt 14 pending
bruno harbor 63 closed
alice birch 3 active
| line_range | 1 | train | original-grammar | CC-BY-4.0 |
sedweave-0020535 | Print only the second comma-separated field from each line. | sed 's/[^,]*,\([^,]*\).*/\1/' | alice,ember,12,pending
alice,grove,4,pending
farah,ember,70,pending
alice,birch,115,pending
bruno,harbor,44,failed
bruno,delta,49,closed
chen,cobalt,69,closed
bruno,delta,55,pending
| ember
grove
ember
birch
harbor
delta
cobalt
delta
| bruno,harbor,38,active
eli,grove,50,active
gus,grove,12,ready
eli,cobalt,93,failed
dina,grove,21,ready
alice,amber,68,active
| harbor
grove
grove
cobalt
grove
amber
| extract_second_csv | 2 | train | original-grammar | CC-BY-4.0 |
sedweave-0020539 | Print only lines containing active; suppress all others. | sed -n /active/p | hana grove 15 pending
chen grove 48 active
chen ember 115 failed
farah amber 15 active
farah cobalt 27 closed
gus birch 28 closed
alice amber 95 closed
bruno harbor 27 active
| chen grove 48 active
farah amber 15 active
bruno harbor 27 active
| hana cobalt 119 active
bruno harbor 95 ready
bruno ember 98 pending
bruno cobalt 21 active
farah fable 19 pending
bruno amber 117 closed
| hana cobalt 119 active
bruno cobalt 21 active
| regex_print | 1 | train | original-grammar | CC-BY-4.0 |
sedweave-0020543 | Print only the last line of the input. | sed -n '$p' | farah delta 65 pending
dina birch 3 ready
farah ember 118 pending
gus harbor 21 closed
chen birch 80 closed
eli delta 74 closed
hana amber 51 ready
chen cobalt 83 ready
dina ember 49 pending
| dina ember 49 pending
| farah fable 59 active
gus amber 116 active
gus delta 118 ready
hana birch 17 failed
farah cobalt 3 pending
alice cobalt 74 ready
farah harbor 15 closed
bruno amber 24 active
| bruno amber 24 active
| last_line | 1 | train | original-grammar | CC-BY-4.0 |
sedweave-0020541 | Delete lines 2 through 3, leaving all other lines unchanged. | sed 2,3d | eli amber 28 closed
farah delta 20 ready
hana delta 77 active
bruno grove 58 active
dina ember 81 pending
gus delta 16 pending
chen ember 80 pending
farah ember 49 ready
| eli amber 28 closed
bruno grove 58 active
dina ember 81 pending
gus delta 16 pending
chen ember 80 pending
farah ember 49 ready
| gus amber 13 pending
farah cobalt 113 ready
farah amber 66 closed
eli fable 59 ready
farah amber 23 pending
farah grove 85 closed
farah birch 78 failed
dina amber 96 failed
| gus amber 13 pending
eli fable 59 ready
farah amber 23 pending
farah grove 85 closed
farah birch 78 failed
dina amber 96 failed
| delete_range | 1 | train | original-grammar | CC-BY-4.0 |
sedweave-0020538 | Delete every line containing pending. | sed /pending/d | bruno cobalt 103 failed
hana fable 97 closed
dina delta 74 pending
chen grove 100 ready
gus grove 84 failed
farah ember 49 closed
alice fable 119 pending
alice fable 10 ready
hana grove 78 pending
| bruno cobalt 103 failed
hana fable 97 closed
chen grove 100 ready
gus grove 84 failed
farah ember 49 closed
alice fable 10 ready
| gus amber 4 active
eli grove 44 failed
eli delta 46 ready
eli harbor 11 closed
alice delta 94 failed
bruno grove 117 ready
hana cobalt 29 pending
chen birch 12 active
| gus amber 4 active
eli grove 44 failed
eli delta 46 ready
eli harbor 11 closed
alice delta 94 failed
bruno grove 117 ready
chen birch 12 active
| regex_delete | 1 | train | original-grammar | CC-BY-4.0 |
sedweave-0020545 | Print odd-numbered lines: lines 1, 3, 5, and so on. | sed -n '0~2p' | bruno ember 103 pending
farah fable 81 failed
bruno harbor 68 active
farah fable 5 closed
farah amber 74 active
hana cobalt 53 pending
gus cobalt 86 active
eli delta 3 active
chen birch 33 closed
| farah fable 81 failed
farah fable 5 closed
hana cobalt 53 pending
eli delta 3 active
| alice grove 81 ready
hana harbor 20 ready
bruno delta 104 pending
chen cobalt 104 pending
chen ember 7 failed
chen fable 23 active
gus harbor 8 failed
| hana harbor 20 ready
chen cobalt 104 pending
chen fable 23 active
| every_other | 2 | train | original-grammar | CC-BY-4.0 |
sedweave-0020542 | Print only the first 2 lines. | sed -n 1,2p | eli delta 85 active
alice cobalt 45 ready
bruno delta 94 failed
hana fable 31 pending
bruno ember 65 failed
gus amber 106 active
bruno harbor 21 ready
bruno harbor 46 ready
| eli delta 85 active
alice cobalt 45 ready
| farah fable 72 active
chen birch 41 failed
chen delta 34 failed
farah fable 81 failed
hana fable 56 failed
eli grove 99 pending
dina harbor 7 pending
alice ember 115 failed
| farah fable 72 active
chen birch 41 failed
| first_n | 1 | train | original-grammar | CC-BY-4.0 |
sedweave-0020546 | Append the line reviewed immediately after every line containing pending. | sed '/pending/a reviewed' | hana harbor 11 failed
gus grove 89 pending
dina harbor 84 failed
alice cobalt 119 closed
bruno cobalt 62 pending
dina ember 56 pending
farah delta 45 active
gus fable 27 ready
hana ember 30 ready
| hana harbor 11 failed
gus grove 89 pending
reviewed
dina harbor 84 failed
alice cobalt 119 closed
bruno cobalt 62 pending
reviewed
dina ember 56 pending
reviewed
farah delta 45 active
gus fable 27 ready
hana ember 30 ready
| chen ember 19 closed
bruno delta 60 failed
bruno harbor 45 active
alice delta 77 active
gus ember 88 active
eli grove 101 closed
dina ember 120 active
hana harbor 113 ready
| chen ember 19 closed
bruno delta 60 failed
bruno harbor 45 active
alice delta 77 active
gus ember 88 active
eli grove 101 closed
dina ember 120 active
hana harbor 113 ready
| append_after | 2 | train | original-grammar | CC-BY-4.0 |
sedweave-0020547 | Insert the line complete immediately before every line containing ready. | sed '/ready/i complete' | bruno ember 4 failed
hana amber 105 active
dina cobalt 108 closed
chen harbor 10 closed
hana fable 44 closed
chen birch 112 ready
| bruno ember 4 failed
hana amber 105 active
dina cobalt 108 closed
chen harbor 10 closed
hana fable 44 closed
complete
chen birch 112 ready
| alice grove 93 pending
bruno ember 84 pending
alice ember 72 active
chen fable 43 ready
bruno cobalt 51 ready
bruno grove 78 pending
bruno harbor 17 pending
alice birch 87 pending
| alice grove 93 pending
bruno ember 84 pending
alice ember 72 active
complete
chen fable 43 ready
complete
bruno cobalt 51 ready
bruno grove 78 pending
bruno harbor 17 pending
alice birch 87 pending
| insert_before | 2 | train | original-grammar | CC-BY-4.0 |
sedweave-0020529 | Print only the block from the line containing grove through the line containing cobalt, inclusive. | sed -n /grove/,/cobalt/p | farah birch 35 failed
alice fable 50 active
gus grove 56 failed
alice delta 111 ready
dina harbor 102 pending
bruno fable 118 ready
hana grove 119 pending
alice grove 10 active
hana grove 25 closed
| gus grove 56 failed
alice delta 111 ready
dina harbor 102 pending
bruno fable 118 ready
hana grove 119 pending
alice grove 10 active
hana grove 25 closed
| alice grove 114 failed
eli harbor 93 failed
alice birch 40 active
alice delta 62 closed
dina fable 45 failed
chen grove 83 closed
dina cobalt 61 pending
farah delta 40 ready
| alice grove 114 failed
eli harbor 93 failed
alice birch 40 active
alice delta 62 closed
dina fable 45 failed
chen grove 83 closed
dina cobalt 61 pending
| print_between | 2 | train | original-grammar | CC-BY-4.0 |
sedweave-0020548 | Replace every full line containing pending with the single line complete. | sed '/pending/c complete' | alice harbor 37 pending
alice cobalt 76 closed
eli delta 31 active
bruno amber 93 ready
chen fable 59 pending
bruno cobalt 115 closed
| complete
alice cobalt 76 closed
eli delta 31 active
bruno amber 93 ready
complete
bruno cobalt 115 closed
| bruno grove 87 pending
farah fable 119 closed
alice harbor 89 closed
alice harbor 44 active
chen amber 92 active
bruno cobalt 60 failed
farah ember 53 failed
bruno amber 25 closed
chen harbor 23 pending
| complete
farah fable 119 closed
alice harbor 89 closed
alice harbor 44 active
chen amber 92 active
bruno cobalt 60 failed
farah ember 53 failed
bruno amber 25 closed
complete
| change_line | 2 | train | original-grammar | CC-BY-4.0 |
sedweave-0020549 | Delete all empty lines while preserving every nonempty line. | sed '/^$/d' | chen harbor 20 closed
farah cobalt 21 pending
farah harbor 96 failed
eli amber 115 active
dina ember 57 failed
bruno delta 20 closed
dina birch 103 ready
bruno fable 52 active
| chen harbor 20 closed
farah cobalt 21 pending
farah harbor 96 failed
eli amber 115 active
dina ember 57 failed
bruno delta 20 closed
dina birch 103 ready
bruno fable 52 active
| bruno harbor 75 active
hana fable 32 ready
dina cobalt 9 closed
bruno cobalt 26 failed
farah birch 2 active
hana harbor 37 closed
| bruno harbor 75 active
hana fable 32 ready
dina cobalt 9 closed
bruno cobalt 26 failed
farah birch 2 active
hana harbor 37 closed
| delete_blank | 1 | train | original-grammar | CC-BY-4.0 |
sedweave-0020553 | Convert every input line to uppercase. | sed 's/.*/\U&/' | farah fable 57 ready
bruno ember 47 closed
alice delta 17 active
bruno grove 93 failed
eli delta 94 failed
bruno amber 15 active
| FARAH FABLE 57 READY
BRUNO EMBER 47 CLOSED
ALICE DELTA 17 ACTIVE
BRUNO GROVE 93 FAILED
ELI DELTA 94 FAILED
BRUNO AMBER 15 ACTIVE
| farah grove 68 closed
alice birch 43 pending
bruno fable 21 active
chen delta 103 failed
eli ember 37 active
alice fable 65 pending
| FARAH GROVE 68 CLOSED
ALICE BIRCH 43 PENDING
BRUNO FABLE 21 ACTIVE
CHEN DELTA 103 FAILED
ELI EMBER 37 ACTIVE
ALICE FABLE 65 PENDING
| uppercase | 1 | train | original-grammar | CC-BY-4.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.