request
stringlengths
13
923
response
dict
Read the exact file `input set/records data.txt` and replace every exact /var/log/app path with /srv/log/app.
{ "kind": "COMMAND", "value": "sed 's|/var/log/app|/srv/log/app|g' -- 'input set/records data.txt'" }
Read the exact file `-input/records.txt` and replace every exact /var/log/app path with /srv/log/app.
{ "kind": "COMMAND", "value": "sed 's|/var/log/app|/srv/log/app|g' -- -input/records.txt" }
Read the exact file `in'put/records.txt` and replace every exact /var/log/app path with /srv/log/app.
{ "kind": "COMMAND", "value": "sed 's|/var/log/app|/srv/log/app|g' -- 'in'\"'\"'put/records.txt'" }
Read the exact file `records.txt` and append ;source=api to every ID=number match while preserving the matched text.
{ "kind": "COMMAND", "value": "sed 's|ID=[0-9][0-9]*|&;source=api|g' -- records.txt" }
Read the exact file `input set/records data.txt` and append ;source=api to every ID=number match while preserving the matched text.
{ "kind": "COMMAND", "value": "sed 's|ID=[0-9][0-9]*|&;source=api|g' -- 'input set/records data.txt'" }
Read the exact file `-input/records.txt` and append ;source=api to every ID=number match while preserving the matched text.
{ "kind": "COMMAND", "value": "sed 's|ID=[0-9][0-9]*|&;source=api|g' -- -input/records.txt" }
Read the exact file `in'put/records.txt` and append ;source=api to every ID=number match while preserving the matched text.
{ "kind": "COMMAND", "value": "sed 's|ID=[0-9][0-9]*|&;source=api|g' -- 'in'\"'\"'put/records.txt'" }
Read the exact file `records.txt` and insert the literal line INSERTED before input line 2.
{ "kind": "COMMAND", "value": "sed '2i\\INSERTED' -- records.txt" }
Read the exact file `input set/records data.txt` and insert the literal line INSERTED before input line 2.
{ "kind": "COMMAND", "value": "sed '2i\\INSERTED' -- 'input set/records data.txt'" }
Read the exact file `-input/records.txt` and insert the literal line INSERTED before input line 2.
{ "kind": "COMMAND", "value": "sed '2i\\INSERTED' -- -input/records.txt" }
Read the exact file `in'put/records.txt` and insert the literal line INSERTED before input line 2.
{ "kind": "COMMAND", "value": "sed '2i\\INSERTED' -- 'in'\"'\"'put/records.txt'" }
Read the exact file `records.txt` and append the literal line APPENDED after input line 2.
{ "kind": "COMMAND", "value": "sed '2a\\APPENDED' -- records.txt" }
Read the exact file `input set/records data.txt` and append the literal line APPENDED after input line 2.
{ "kind": "COMMAND", "value": "sed '2a\\APPENDED' -- 'input set/records data.txt'" }
Read the exact file `-input/records.txt` and append the literal line APPENDED after input line 2.
{ "kind": "COMMAND", "value": "sed '2a\\APPENDED' -- -input/records.txt" }
Read the exact file `in'put/records.txt` and append the literal line APPENDED after input line 2.
{ "kind": "COMMAND", "value": "sed '2a\\APPENDED' -- 'in'\"'\"'put/records.txt'" }
Read the exact file `records.txt` and replace input line 2 with the literal line REPLACED.
{ "kind": "COMMAND", "value": "sed '2c\\REPLACED' -- records.txt" }
Read the exact file `input set/records data.txt` and replace input line 2 with the literal line REPLACED.
{ "kind": "COMMAND", "value": "sed '2c\\REPLACED' -- 'input set/records data.txt'" }
Read the exact file `-input/records.txt` and replace input line 2 with the literal line REPLACED.
{ "kind": "COMMAND", "value": "sed '2c\\REPLACED' -- -input/records.txt" }
Read the exact file `in'put/records.txt` and replace input line 2 with the literal line REPLACED.
{ "kind": "COMMAND", "value": "sed '2c\\REPLACED' -- 'in'\"'\"'put/records.txt'" }
Read the exact file `records.txt` and delete every line whose entire content is REMOVE.
{ "kind": "COMMAND", "value": "sed '/^REMOVE$/d' -- records.txt" }
Read the exact file `input set/records data.txt` and delete every line whose entire content is REMOVE.
{ "kind": "COMMAND", "value": "sed '/^REMOVE$/d' -- 'input set/records data.txt'" }
Read the exact file `-input/records.txt` and delete every line whose entire content is REMOVE.
{ "kind": "COMMAND", "value": "sed '/^REMOVE$/d' -- -input/records.txt" }
Read the exact file `in'put/records.txt` and delete every line whose entire content is REMOVE.
{ "kind": "COMMAND", "value": "sed '/^REMOVE$/d' -- 'in'\"'\"'put/records.txt'" }
Read the exact file `records.txt` and collapse every run of two or more ASCII spaces to one using a sed test branch loop.
{ "kind": "COMMAND", "value": "sed ':a;s/ / /;ta' -- records.txt" }
Read the exact file `input set/records data.txt` and collapse every run of two or more ASCII spaces to one using a sed test branch loop.
{ "kind": "COMMAND", "value": "sed ':a;s/ / /;ta' -- 'input set/records data.txt'" }
Read the exact file `-input/records.txt` and collapse every run of two or more ASCII spaces to one using a sed test branch loop.
{ "kind": "COMMAND", "value": "sed ':a;s/ / /;ta' -- -input/records.txt" }
Read the exact file `in'put/records.txt` and collapse every run of two or more ASCII spaces to one using a sed test branch loop.
{ "kind": "COMMAND", "value": "sed ':a;s/ / /;ta' -- 'in'\"'\"'put/records.txt'" }
Read the exact file `records.txt` and prefix non-comment lines with [DATA] while branching past lines beginning with #.
{ "kind": "COMMAND", "value": "sed '/^#/b skip;s/^/[DATA] /;:skip' -- records.txt" }
Read the exact file `input set/records data.txt` and prefix non-comment lines with [DATA] while branching past lines beginning with #.
{ "kind": "COMMAND", "value": "sed '/^#/b skip;s/^/[DATA] /;:skip' -- 'input set/records data.txt'" }
Read the exact file `-input/records.txt` and prefix non-comment lines with [DATA] while branching past lines beginning with #.
{ "kind": "COMMAND", "value": "sed '/^#/b skip;s/^/[DATA] /;:skip' -- -input/records.txt" }
Read the exact file `in'put/records.txt` and prefix non-comment lines with [DATA] while branching past lines beginning with #.
{ "kind": "COMMAND", "value": "sed '/^#/b skip;s/^/[DATA] /;:skip' -- 'in'\"'\"'put/records.txt'" }
Read the exact file `records.txt` and join all input lines with the exact separator space-bar-space using hold-space append.
{ "kind": "COMMAND", "value": "sed -n '1h;1!H;${g;s/\\n/ | /g;p}' -- records.txt" }
Read the exact file `input set/records data.txt` and join all input lines with the exact separator space-bar-space using hold-space append.
{ "kind": "COMMAND", "value": "sed -n '1h;1!H;${g;s/\\n/ | /g;p}' -- 'input set/records data.txt'" }
Read the exact file `-input/records.txt` and join all input lines with the exact separator space-bar-space using hold-space append.
{ "kind": "COMMAND", "value": "sed -n '1h;1!H;${g;s/\\n/ | /g;p}' -- -input/records.txt" }
Read the exact file `in'put/records.txt` and join all input lines with the exact separator space-bar-space using hold-space append.
{ "kind": "COMMAND", "value": "sed -n '1h;1!H;${g;s/\\n/ | /g;p}' -- 'in'\"'\"'put/records.txt'" }
Read the exact file `records.txt` and join all input lines with one ASCII space using an N loop.
{ "kind": "COMMAND", "value": "sed ':a;N;$!ba;s/\\n/ /g' -- records.txt" }
Read the exact file `input set/records data.txt` and join all input lines with one ASCII space using an N loop.
{ "kind": "COMMAND", "value": "sed ':a;N;$!ba;s/\\n/ /g' -- 'input set/records data.txt'" }
Read the exact file `-input/records.txt` and join all input lines with one ASCII space using an N loop.
{ "kind": "COMMAND", "value": "sed ':a;N;$!ba;s/\\n/ /g' -- -input/records.txt" }
Read the exact file `in'put/records.txt` and join all input lines with one ASCII space using an N loop.
{ "kind": "COMMAND", "value": "sed ':a;N;$!ba;s/\\n/ /g' -- 'in'\"'\"'put/records.txt'" }
Read the exact file `records.txt` and on `records.txt`, transform lines beginning ERROR to ERR, print those transformed lines, and write the same bytes to `matched.out`.
{ "kind": "COMMAND", "value": "sed -n 's/^ERROR/ERR/pw matched.out' -- records.txt" }
Read the exact file `input set/records data.txt` and on `input set/records data.txt`, transform lines beginning ERROR to ERR, print those transformed lines, and write the same bytes to `matched.out`.
{ "kind": "COMMAND", "value": "sed -n 's/^ERROR/ERR/pw matched.out' -- 'input set/records data.txt'" }
Read the exact file `-input/records.txt` and on `-input/records.txt`, transform lines beginning ERROR to ERR, print those transformed lines, and write the same bytes to `matched.out`.
{ "kind": "COMMAND", "value": "sed -n 's/^ERROR/ERR/pw matched.out' -- -input/records.txt" }
Read the exact file `in'put/records.txt` and on `in'put/records.txt`, transform lines beginning ERROR to ERR, print those transformed lines, and write the same bytes to `matched.out`.
{ "kind": "COMMAND", "value": "sed -n 's/^ERROR/ERR/pw matched.out' -- 'in'\"'\"'put/records.txt'" }
Read the exact file `records.txt` and from the start through the first exact line STOP, replace a leading item with item-processed and leave later lines unchanged.
{ "kind": "COMMAND", "value": "sed '0,/^STOP$/s/^item/item-processed/' -- records.txt" }
Read the exact file `input set/records data.txt` and from the start through the first exact line STOP, replace a leading item with item-processed and leave later lines unchanged.
{ "kind": "COMMAND", "value": "sed '0,/^STOP$/s/^item/item-processed/' -- 'input set/records data.txt'" }
Read the exact file `-input/records.txt` and from the start through the first exact line STOP, replace a leading item with item-processed and leave later lines unchanged.
{ "kind": "COMMAND", "value": "sed '0,/^STOP$/s/^item/item-processed/' -- -input/records.txt" }
Read the exact file `in'put/records.txt` and from the start through the first exact line STOP, replace a leading item with item-processed and leave later lines unchanged.
{ "kind": "COMMAND", "value": "sed '0,/^STOP$/s/^item/item-processed/' -- 'in'\"'\"'put/records.txt'" }
Read the exact file `records.txt` and replace every foo with bar while treating NUL bytes as record separators.
{ "kind": "COMMAND", "value": "sed -z 's|foo|bar|g' -- records.txt" }
Read the exact file `input set/records data.txt` and replace every foo with bar while treating NUL bytes as record separators.
{ "kind": "COMMAND", "value": "sed -z 's|foo|bar|g' -- 'input set/records data.txt'" }
Read the exact file `-input/records.txt` and replace every foo with bar while treating NUL bytes as record separators.
{ "kind": "COMMAND", "value": "sed -z 's|foo|bar|g' -- -input/records.txt" }
Read the exact file `in'put/records.txt` and replace every foo with bar while treating NUL bytes as record separators.
{ "kind": "COMMAND", "value": "sed -z 's|foo|bar|g' -- 'in'\"'\"'put/records.txt'" }
Read the exact file `records.txt` and translate each lowercase a, b, and c character to uppercase A, B, and C.
{ "kind": "COMMAND", "value": "sed y/abc/ABC/ -- records.txt" }
Read the exact file `input set/records data.txt` and translate each lowercase a, b, and c character to uppercase A, B, and C.
{ "kind": "COMMAND", "value": "sed y/abc/ABC/ -- 'input set/records data.txt'" }
Read the exact file `-input/records.txt` and translate each lowercase a, b, and c character to uppercase A, B, and C.
{ "kind": "COMMAND", "value": "sed y/abc/ABC/ -- -input/records.txt" }
Read the exact file `in'put/records.txt` and translate each lowercase a, b, and c character to uppercase A, B, and C.
{ "kind": "COMMAND", "value": "sed y/abc/ABC/ -- 'in'\"'\"'put/records.txt'" }
Read the exact file `records.txt` and print only the first two input lines, then quit without reading or printing later lines.
{ "kind": "COMMAND", "value": "sed 2q -- records.txt" }
Read the exact file `input set/records data.txt` and print only the first two input lines, then quit without reading or printing later lines.
{ "kind": "COMMAND", "value": "sed 2q -- 'input set/records data.txt'" }
Read the exact file `-input/records.txt` and print only the first two input lines, then quit without reading or printing later lines.
{ "kind": "COMMAND", "value": "sed 2q -- -input/records.txt" }
Read the exact file `in'put/records.txt` and print only the first two input lines, then quit without reading or printing later lines.
{ "kind": "COMMAND", "value": "sed 2q -- 'in'\"'\"'put/records.txt'" }
Read the exact file `records.txt` and print the number of input line 2 and no text from the input.
{ "kind": "COMMAND", "value": "sed -n 2= -- records.txt" }
Read the exact file `input set/records data.txt` and print the number of input line 2 and no text from the input.
{ "kind": "COMMAND", "value": "sed -n 2= -- 'input set/records data.txt'" }
Read the exact file `-input/records.txt` and print the number of input line 2 and no text from the input.
{ "kind": "COMMAND", "value": "sed -n 2= -- -input/records.txt" }
Read the exact file `in'put/records.txt` and print the number of input line 2 and no text from the input.
{ "kind": "COMMAND", "value": "sed -n 2= -- 'in'\"'\"'put/records.txt'" }
Convert `2024-01-02T03:04:05+00:00` to Unix seconds.
{ "kind": "COMMAND", "value": "date --date=2024-01-02T03:04:05+00:00 +%s" }
Please convert `2024-02-29T23:30:00-05:00` to Unix seconds.
{ "kind": "COMMAND", "value": "date --date=2024-02-29T23:30:00-05:00 +%s" }
I need you to convert `2024-03-10T06:30:00+00:00` to Unix seconds.
{ "kind": "COMMAND", "value": "date --date=2024-03-10T06:30:00+00:00 +%s" }
Can you convert `1970-01-01T00:00:00+00:00` to Unix seconds?
{ "kind": "COMMAND", "value": "date --date=1970-01-01T00:00:00+00:00 +%s" }
Render Unix timestamp `0` in `UTC` as an ISO-like local time.
{ "kind": "COMMAND", "value": "TZ=UTC date --date=@0 '+%Y-%m-%dT%H:%M:%S%z'" }
Please render Unix timestamp `1709163000` in `America/New_York` as an ISO-like local time.
{ "kind": "COMMAND", "value": "TZ=America/New_York date --date=@1709163000 '+%Y-%m-%dT%H:%M:%S%z'" }
I need you to render Unix timestamp `1710000000` in `Asia/Kathmandu` as an ISO-like local time.
{ "kind": "COMMAND", "value": "TZ=Asia/Kathmandu date --date=@1710000000 '+%Y-%m-%dT%H:%M:%S%z'" }
Can you render Unix timestamp `-1` in `Europe/Berlin` as an ISO-like local time?
{ "kind": "COMMAND", "value": "TZ=Europe/Berlin date --date=@-1 '+%Y-%m-%dT%H:%M:%S%z'" }
Convert `2024-01-02T03:04:05+00:00` to `UTC` and print the offset.
{ "kind": "COMMAND", "value": "TZ=UTC date --date=2024-01-02T03:04:05+00:00 '+%Y-%m-%dT%H:%M:%S%z'" }
Please convert `2024-02-29T23:30:00-05:00` to `America/New_York` and print the offset.
{ "kind": "COMMAND", "value": "TZ=America/New_York date --date=2024-02-29T23:30:00-05:00 '+%Y-%m-%dT%H:%M:%S%z'" }
I need you to convert `2024-03-10T06:30:00+00:00` to `Asia/Kathmandu` and print the offset.
{ "kind": "COMMAND", "value": "TZ=Asia/Kathmandu date --date=2024-03-10T06:30:00+00:00 '+%Y-%m-%dT%H:%M:%S%z'" }
Can you convert `1970-01-01T00:00:00+00:00` to `Europe/Berlin` and print the offset?
{ "kind": "COMMAND", "value": "TZ=Europe/Berlin date --date=1970-01-01T00:00:00+00:00 '+%Y-%m-%dT%H:%M:%S%z'" }
Add `1 day 2 hours 3 minutes` to `2024-01-02 03:04:05 UTC` and print Unix seconds.
{ "kind": "COMMAND", "value": "date --utc --date='2024-01-02 03:04:05 UTC + 1 day 2 hours 3 minutes' +%s" }
Please add `90 minutes` to `2024-02-29 23:30:00 UTC` and print Unix seconds.
{ "kind": "COMMAND", "value": "date --utc --date='2024-02-29 23:30:00 UTC + 90 minutes' +%s" }
I need you to add `2 weeks` to `2024-03-10 06:30:00 UTC` and print Unix seconds.
{ "kind": "COMMAND", "value": "date --utc --date='2024-03-10 06:30:00 UTC + 2 weeks' +%s" }
Can you add `45 seconds` to `1969-12-31 23:59:00 UTC` and print Unix seconds?
{ "kind": "COMMAND", "value": "date --utc --date='1969-12-31 23:59:00 UTC + 45 seconds' +%s" }
Print the elapsed seconds from `2024-01-01 00:00:00 UTC` to `2024-01-02 02:03:04 UTC`.
{ "kind": "COMMAND", "value": "printf '%s\\n' \"$(( $(date --utc --date='2024-01-02 02:03:04 UTC' +%s) - $(date --utc --date='2024-01-01 00:00:00 UTC' +%s) ))\"" }
Please print the elapsed seconds from `2024-02-28 23:30:00 UTC` to `2024-03-01 00:00:01 UTC`.
{ "kind": "COMMAND", "value": "printf '%s\\n' \"$(( $(date --utc --date='2024-03-01 00:00:01 UTC' +%s) - $(date --utc --date='2024-02-28 23:30:00 UTC' +%s) ))\"" }
I need you to print the elapsed seconds from `2024-03-10 06:30:00 UTC` to `2024-03-24 06:30:00 UTC`.
{ "kind": "COMMAND", "value": "printf '%s\\n' \"$(( $(date --utc --date='2024-03-24 06:30:00 UTC' +%s) - $(date --utc --date='2024-03-10 06:30:00 UTC' +%s) ))\"" }
Can you print the elapsed seconds from `1969-12-31 23:59:00 UTC` to `1970-01-01 00:00:00 UTC`?
{ "kind": "COMMAND", "value": "printf '%s\\n' \"$(( $(date --utc --date='1970-01-01 00:00:00 UTC' +%s) - $(date --utc --date='1969-12-31 23:59:00 UTC' +%s) ))\"" }
Format `3661` seconds as signed `HH:MM:SS`.
{ "kind": "COMMAND", "value": "awk -v n=3661 'BEGIN{sgn=(n<0?\"-\":\"\"); n=(n<0?-n:n); printf \"%s%02d:%02d:%02d\\n\",sgn,int(n/3600),int(n/60)%60,n%60}'" }
Please format `0` seconds as signed `HH:MM:SS`.
{ "kind": "COMMAND", "value": "awk -v n=0 'BEGIN{sgn=(n<0?\"-\":\"\"); n=(n<0?-n:n); printf \"%s%02d:%02d:%02d\\n\",sgn,int(n/3600),int(n/60)%60,n%60}'" }
I need you to format `86399` seconds as signed `HH:MM:SS`.
{ "kind": "COMMAND", "value": "awk -v n=86399 'BEGIN{sgn=(n<0?\"-\":\"\"); n=(n<0?-n:n); printf \"%s%02d:%02d:%02d\\n\",sgn,int(n/3600),int(n/60)%60,n%60}'" }
Can you format `-1` seconds as signed `HH:MM:SS`?
{ "kind": "COMMAND", "value": "awk -v n=-1 'BEGIN{sgn=(n<0?\"-\":\"\"); n=(n<0?-n:n); printf \"%s%02d:%02d:%02d\\n\",sgn,int(n/3600),int(n/60)%60,n%60}'" }
Round `2024-01-02T03:04:05+00:00` down to the start of its UTC hour.
{ "kind": "COMMAND", "value": "date --utc --date=2024-01-02T03:04:05+00:00 '+%Y-%m-%dT%H:00:00Z'" }
Please round `2024-02-29T23:30:00-05:00` down to the start of its UTC hour.
{ "kind": "COMMAND", "value": "date --utc --date=2024-02-29T23:30:00-05:00 '+%Y-%m-%dT%H:00:00Z'" }
I need you to round `2024-03-10T06:30:00+00:00` down to the start of its UTC hour.
{ "kind": "COMMAND", "value": "date --utc --date=2024-03-10T06:30:00+00:00 '+%Y-%m-%dT%H:00:00Z'" }
Can you round `1970-01-01T00:00:00+00:00` down to the start of its UTC hour?
{ "kind": "COMMAND", "value": "date --utc --date=1970-01-01T00:00:00+00:00 '+%Y-%m-%dT%H:00:00Z'" }
Print the UTC day-of-year for `2024-01-02T03:04:05+00:00`.
{ "kind": "COMMAND", "value": "date --utc --date=2024-01-02T03:04:05+00:00 +%j" }
Please print the UTC day-of-year for `2024-02-29T23:30:00-05:00`.
{ "kind": "COMMAND", "value": "date --utc --date=2024-02-29T23:30:00-05:00 +%j" }
I need you to print the UTC day-of-year for `2024-03-10T06:30:00+00:00`.
{ "kind": "COMMAND", "value": "date --utc --date=2024-03-10T06:30:00+00:00 +%j" }
Can you print the UTC day-of-year for `1970-01-01T00:00:00+00:00`?
{ "kind": "COMMAND", "value": "date --utc --date=1970-01-01T00:00:00+00:00 +%j" }
Convert decimal `4095` to lowercase hexadecimal.
{ "kind": "COMMAND", "value": "printf '%x\\n' 4095" }
Please convert decimal `256` to lowercase hexadecimal.
{ "kind": "COMMAND", "value": "printf '%x\\n' 256" }
I need you to convert decimal `31` to lowercase hexadecimal.
{ "kind": "COMMAND", "value": "printf '%x\\n' 31" }
Can you convert decimal `0` to lowercase hexadecimal?
{ "kind": "COMMAND", "value": "printf '%x\\n' 0" }
Convert hexadecimal `ABCD` to decimal.
{ "kind": "COMMAND", "value": "printf '%d\\n' \"$((16#ABCD))\"" }