request stringlengths 13 923 | response dict |
|---|---|
How many times does literal 'cobalt' occur in 'measure/marble shelf/word records.log'? Include occurrences inside longer words and match case. | {
"kind": "COMMAND",
"value": "LC_ALL=C grep -oF -- cobalt 'measure/marble shelf/word records.log' | wc -l"
} |
Recursively average word counts of regular .memo files under 'measure/marble shelf/drafts'; print one number, or 0 if none. | {
"kind": "COMMAND",
"value": "find 'measure/marble shelf/drafts' -type f -name '*.memo' -exec sh -c 'for p; do wc -w < \"$p\"; done' sh {} + | awk '{s+=$1;n++} END {if(n) print s/n; else print 0}'"
} |
Print the mean number of words per regular .memo file anywhere under 'measure/marble shelf/drafts', using 0 for an empty selection. | {
"kind": "COMMAND",
"value": "find 'measure/marble shelf/drafts' -type f -name '*.memo' -exec sh -c 'for p; do wc -w < \"$p\"; done' sh {} + | awk '{s+=$1;n++} END {if(n) print s/n; else print 0}'"
} |
Average word counts of regular .memo files under 'measure/marble shelf/drafts' having fewer than 3 words; search recursively and print 0 if none qualify. | {
"kind": "COMMAND",
"value": "find 'measure/marble shelf/drafts' -type f -name '*.memo' -exec sh -c 'for p; do wc -w < \"$p\"; done' sh {} + | awk '$1 < 3 {s+=$1;n++} END {if(n) print s/n; else print 0}'"
} |
Print the mean per-file word count for regular .memo files anywhere under 'measure/marble shelf/drafts' with word counts below 3. Use 0 if no file remains. | {
"kind": "COMMAND",
"value": "find 'measure/marble shelf/drafts' -type f -name '*.memo' -exec sh -c 'for p; do wc -w < \"$p\"; done' sh {} + | awk '$1 < 3 {s+=$1;n++} END {if(n) print s/n; else print 0}'"
} |
Print the total LF count across regular .leaf files anywhere under 'measure/marble shelf/records'; empty files add zero. | {
"kind": "COMMAND",
"value": "find 'measure/marble shelf/records' -type f -name '*.leaf' -exec cat -- {} + | wc -l"
} |
Count newline bytes in all regular files ending .leaf below 'measure/marble shelf/records', recursively, and print one total. | {
"kind": "COMMAND",
"value": "find 'measure/marble shelf/records' -type f -name '*.leaf' -exec cat -- {} + | wc -l"
} |
Print the number of regular .leaf files anywhere under 'measure/marble shelf/records', including empty files. | {
"kind": "COMMAND",
"value": "find 'measure/marble shelf/records' -type f -name '*.leaf' -printf x | wc -c"
} |
How many regular files ending .leaf are beneath 'measure/marble shelf/records'? Search recursively; count files, not content lines. | {
"kind": "COMMAND",
"value": "find 'measure/marble shelf/records' -type f -name '*.leaf' -printf x | wc -c"
} |
Print the first 3 bytes of 'measure/marble shelf/plain.dat' as lowercase two-digit hex, one byte per line, without offsets; a short file contributes only available bytes. | {
"kind": "COMMAND",
"value": "od -An -v -t x1 -N 3 -- 'measure/marble shelf/plain.dat' | awk '{for(i=1;i<=NF;i++) print $i}'"
} |
Dump at most 3 bytes from 'measure/marble shelf/plain.dat' in hex: two lowercase digits per byte, one value per line, no address column. | {
"kind": "COMMAND",
"value": "od -An -v -t x1 -N 3 -- 'measure/marble shelf/plain.dat' | awk '{for(i=1;i<=NF;i++) print $i}'"
} |
Print the contents of 'measure/marble shelf/messages.txt' with every LF byte removed. Preserve CR and tabs; add no final newline. | {
"kind": "COMMAND",
"value": "tr -d '\\n' < 'measure/marble shelf/messages.txt'"
} |
Delete only newline bytes (LF) while copying 'measure/marble shelf/messages.txt' to stdout, retaining carriage returns and all other bytes. | {
"kind": "COMMAND",
"value": "tr -d '\\n' < 'measure/marble shelf/messages.txt'"
} |
Print the sum of the signed decimal integer records in 'measure/marble shelf/integers.dat'; use 0 for an empty file. | {
"kind": "COMMAND",
"value": "awk '{s+=$1} END {print s+0}' 'measure/marble shelf/integers.dat'"
} |
Add all numbers in 'measure/marble shelf/integers.dat' and output one decimal total with LF. Empty input has total 0. | {
"kind": "COMMAND",
"value": "awk '{s+=$1} END {print s+0}' 'measure/marble shelf/integers.dat'"
} |
Count deleted plus inserted data lines between 'measure/marble shelf/compare/left.txt' and 'measure/marble shelf/compare/right.txt'; exclude diff headers/context. Replacements count twice and unterminated tails count. Equal or different inputs succeed; diff errors fail. | {
"kind": "COMMAND",
"value": "diff --old-line-format=x --new-line-format=x --unchanged-line-format= -- 'measure/marble shelf/compare/left.txt' 'measure/marble shelf/compare/right.txt' | wc -c; test \"${PIPESTATUS[0]}\" -le 1"
} |
Compare 'measure/marble shelf/compare/left.txt' with 'measure/marble shelf/compare/right.txt' and print one total of additions plus deletions, without headers or unchanged lines. Count each replacement as 2 and include final lines lacking LF; fail on actual diff errors. | {
"kind": "COMMAND",
"value": "diff --old-line-format=x --new-line-format=x --unchanged-line-format= -- 'measure/marble shelf/compare/left.txt' 'measure/marble shelf/compare/right.txt' | wc -c; test \"${PIPESTATUS[0]}\" -le 1"
} |
Total logical lines in regular .entry files anywhere under 'measure/marble shelf/journal'. Count blank lines and each file's nonempty unterminated tail; empty files add zero. | {
"kind": "COMMAND",
"value": "find 'measure/marble shelf/journal' -type f -name '*.entry' -exec awk 'END {print NR}' {} + | awk '{s+=$1} END {print s+0}'"
} |
Count text records across regular .entry files beneath 'measure/marble shelf/journal', recursively. LF ends a record, and every file's nonempty final tail also counts; print one total. | {
"kind": "COMMAND",
"value": "find 'measure/marble shelf/journal' -type f -name '*.entry' -exec awk 'END {print NR}' {} + | awk '{s+=$1} END {print s+0}'"
} |
Count regular .page files under 'measure/marble shelf/pages' containing literal 'cobalt' at least once; search recursively. | {
"kind": "COMMAND",
"value": "find 'measure/marble shelf/pages' -type f -name '*.page' -exec grep -qF -- cobalt {} \\; -printf x | wc -c"
} |
How many regular .page files anywhere beneath 'measure/marble shelf/pages' contain the case-sensitive substring 'cobalt'? Count each file once. | {
"kind": "COMMAND",
"value": "find 'measure/marble shelf/pages' -type f -name '*.page' -exec grep -qF -- cobalt {} \\; -printf x | wc -c"
} |
List regular .note files beneath 'measure/marble shelf/manuals' as path, TAB, LF count, sorted bytewise by full path. Search recursively and omit a total row. | {
"kind": "COMMAND",
"value": "find 'measure/marble shelf/manuals' -type f -name '*.note' -print0 | LC_ALL=C sort -z | while IFS= read -r -d '' p; do printf '%s\\t%s\\n' \"$p\" \"$(wc -l < \"$p\")\"; done"
} |
For each regular .note file anywhere under 'measure/marble shelf/manuals', print its relative path and newline count separated by a tab, in C-locale path order. | {
"kind": "COMMAND",
"value": "find 'measure/marble shelf/manuals' -type f -name '*.note' -print0 | LC_ALL=C sort -z | while IFS= read -r -d '' p; do printf '%s\\t%s\\n' \"$p\" \"$(wc -l < \"$p\")\"; done"
} |
Print only the byte sizes of the 2 smallest nonempty regular files under 'measure/marble shelf/sizes', in ascending order; search recursively. | {
"kind": "COMMAND",
"value": "find 'measure/marble shelf/sizes' -type f ! -empty -printf '%s\\n' | sort -n | head -n 2"
} |
Find the 2 smallest nonempty regular files anywhere beneath 'measure/marble shelf/sizes' and output just their byte counts, smallest first. | {
"kind": "COMMAND",
"value": "find 'measure/marble shelf/sizes' -type f ! -empty -printf '%s\\n' | sort -n | head -n 2"
} |
Print the 2 largest regular files under 'measure/marble shelf/sizes' as byte count, space, full relative path. Rank descending, break ties by bytewise path, and search recursively. | {
"kind": "COMMAND",
"value": "find 'measure/marble shelf/sizes' -type f -printf '%s %p\\n' | LC_ALL=C sort -k1,1nr -k2 | head -n 2"
} |
List the top 2 regular files anywhere beneath 'measure/marble shelf/sizes' by logical bytes, largest first; show size then path and sort equal sizes by C-locale path. | {
"kind": "COMMAND",
"value": "find 'measure/marble shelf/sizes' -type f -printf '%s %p\\n' | LC_ALL=C sort -k1,1nr -k2 | head -n 2"
} |
Print only the byte count of 'measure/violet-pack/glyphs.dat', including all LF and UTF-8 bytes. | {
"kind": "COMMAND",
"value": "wc -c < measure/violet-pack/glyphs.dat"
} |
How many bytes are in 'measure/violet-pack/glyphs.dat'? Output just the number; count line endings too. | {
"kind": "COMMAND",
"value": "wc -c < measure/violet-pack/glyphs.dat"
} |
Count characters in UTF-8 file 'measure/violet-pack/glyphs.dat' using C.UTF-8, including LF; print only the count. | {
"kind": "COMMAND",
"value": "LC_ALL=C.UTF-8 wc -m < measure/violet-pack/glyphs.dat"
} |
In C.UTF-8, report the character count of 'measure/violet-pack/glyphs.dat', including line-ending characters. | {
"kind": "COMMAND",
"value": "LC_ALL=C.UTF-8 wc -m < measure/violet-pack/glyphs.dat"
} |
Count case-sensitive whole-word occurrences of 'fennel' in 'measure/violet-pack/word records.log', using ASCII word boundaries. | {
"kind": "COMMAND",
"value": "LC_ALL=C grep -owF -- fennel 'measure/violet-pack/word records.log' | wc -l"
} |
How many whole words equal 'fennel' in 'measure/violet-pack/word records.log'? Match case; ASCII letters, digits and underscore are word characters. | {
"kind": "COMMAND",
"value": "LC_ALL=C grep -owF -- fennel 'measure/violet-pack/word records.log' | wc -l"
} |
Count every case-sensitive occurrence of literal substring 'fennel' in 'measure/violet-pack/word records.log'. | {
"kind": "COMMAND",
"value": "LC_ALL=C grep -oF -- fennel 'measure/violet-pack/word records.log' | wc -l"
} |
How many times does literal 'fennel' occur in 'measure/violet-pack/word records.log'? Include occurrences inside longer words and match case. | {
"kind": "COMMAND",
"value": "LC_ALL=C grep -oF -- fennel 'measure/violet-pack/word records.log' | wc -l"
} |
Recursively average word counts of regular .memo files under 'measure/violet-pack/drafts'; print one number, or 0 if none. | {
"kind": "COMMAND",
"value": "find measure/violet-pack/drafts -type f -name '*.memo' -exec sh -c 'for p; do wc -w < \"$p\"; done' sh {} + | awk '{s+=$1;n++} END {if(n) print s/n; else print 0}'"
} |
Print the mean number of words per regular .memo file anywhere under 'measure/violet-pack/drafts', using 0 for an empty selection. | {
"kind": "COMMAND",
"value": "find measure/violet-pack/drafts -type f -name '*.memo' -exec sh -c 'for p; do wc -w < \"$p\"; done' sh {} + | awk '{s+=$1;n++} END {if(n) print s/n; else print 0}'"
} |
Average word counts of regular .memo files under 'measure/violet-pack/drafts' having fewer than 4 words; search recursively and print 0 if none qualify. | {
"kind": "COMMAND",
"value": "find measure/violet-pack/drafts -type f -name '*.memo' -exec sh -c 'for p; do wc -w < \"$p\"; done' sh {} + | awk '$1 < 4 {s+=$1;n++} END {if(n) print s/n; else print 0}'"
} |
Print the mean per-file word count for regular .memo files anywhere under 'measure/violet-pack/drafts' with word counts below 4. Use 0 if no file remains. | {
"kind": "COMMAND",
"value": "find measure/violet-pack/drafts -type f -name '*.memo' -exec sh -c 'for p; do wc -w < \"$p\"; done' sh {} + | awk '$1 < 4 {s+=$1;n++} END {if(n) print s/n; else print 0}'"
} |
Print the total LF count across regular .card files anywhere under 'measure/violet-pack/records'; empty files add zero. | {
"kind": "COMMAND",
"value": "find measure/violet-pack/records -type f -name '*.card' -exec cat -- {} + | wc -l"
} |
Count newline bytes in all regular files ending .card below 'measure/violet-pack/records', recursively, and print one total. | {
"kind": "COMMAND",
"value": "find measure/violet-pack/records -type f -name '*.card' -exec cat -- {} + | wc -l"
} |
Print the number of regular .card files anywhere under 'measure/violet-pack/records', including empty files. | {
"kind": "COMMAND",
"value": "find measure/violet-pack/records -type f -name '*.card' -printf x | wc -c"
} |
How many regular files ending .card are beneath 'measure/violet-pack/records'? Search recursively; count files, not content lines. | {
"kind": "COMMAND",
"value": "find measure/violet-pack/records -type f -name '*.card' -printf x | wc -c"
} |
Print the first 5 bytes of 'measure/violet-pack/plain.dat' as lowercase two-digit hex, one byte per line, without offsets; a short file contributes only available bytes. | {
"kind": "COMMAND",
"value": "od -An -v -t x1 -N 5 -- measure/violet-pack/plain.dat | awk '{for(i=1;i<=NF;i++) print $i}'"
} |
Dump at most 5 bytes from 'measure/violet-pack/plain.dat' in hex: two lowercase digits per byte, one value per line, no address column. | {
"kind": "COMMAND",
"value": "od -An -v -t x1 -N 5 -- measure/violet-pack/plain.dat | awk '{for(i=1;i<=NF;i++) print $i}'"
} |
Print the contents of 'measure/violet-pack/messages.txt' with every LF byte removed. Preserve CR and tabs; add no final newline. | {
"kind": "COMMAND",
"value": "tr -d '\\n' < measure/violet-pack/messages.txt"
} |
Delete only newline bytes (LF) while copying 'measure/violet-pack/messages.txt' to stdout, retaining carriage returns and all other bytes. | {
"kind": "COMMAND",
"value": "tr -d '\\n' < measure/violet-pack/messages.txt"
} |
Print the sum of the signed decimal integer records in 'measure/violet-pack/integers.dat'; use 0 for an empty file. | {
"kind": "COMMAND",
"value": "awk '{s+=$1} END {print s+0}' measure/violet-pack/integers.dat"
} |
Add all numbers in 'measure/violet-pack/integers.dat' and output one decimal total with LF. Empty input has total 0. | {
"kind": "COMMAND",
"value": "awk '{s+=$1} END {print s+0}' measure/violet-pack/integers.dat"
} |
Count deleted plus inserted data lines between 'measure/violet-pack/compare/left.txt' and 'measure/violet-pack/compare/right.txt'; exclude diff headers/context. Replacements count twice and unterminated tails count. Equal or different inputs succeed; diff errors fail. | {
"kind": "COMMAND",
"value": "diff --old-line-format=x --new-line-format=x --unchanged-line-format= -- measure/violet-pack/compare/left.txt measure/violet-pack/compare/right.txt | wc -c; test \"${PIPESTATUS[0]}\" -le 1"
} |
Compare 'measure/violet-pack/compare/left.txt' with 'measure/violet-pack/compare/right.txt' and print one total of additions plus deletions, without headers or unchanged lines. Count each replacement as 2 and include final lines lacking LF; fail on actual diff errors. | {
"kind": "COMMAND",
"value": "diff --old-line-format=x --new-line-format=x --unchanged-line-format= -- measure/violet-pack/compare/left.txt measure/violet-pack/compare/right.txt | wc -c; test \"${PIPESTATUS[0]}\" -le 1"
} |
Total logical lines in regular .entry files anywhere under 'measure/violet-pack/journal'. Count blank lines and each file's nonempty unterminated tail; empty files add zero. | {
"kind": "COMMAND",
"value": "find measure/violet-pack/journal -type f -name '*.entry' -exec awk 'END {print NR}' {} + | awk '{s+=$1} END {print s+0}'"
} |
Count text records across regular .entry files beneath 'measure/violet-pack/journal', recursively. LF ends a record, and every file's nonempty final tail also counts; print one total. | {
"kind": "COMMAND",
"value": "find measure/violet-pack/journal -type f -name '*.entry' -exec awk 'END {print NR}' {} + | awk '{s+=$1} END {print s+0}'"
} |
Count regular .page files under 'measure/violet-pack/pages' containing literal 'fennel' at least once; search recursively. | {
"kind": "COMMAND",
"value": "find measure/violet-pack/pages -type f -name '*.page' -exec grep -qF -- fennel {} \\; -printf x | wc -c"
} |
How many regular .page files anywhere beneath 'measure/violet-pack/pages' contain the case-sensitive substring 'fennel'? Count each file once. | {
"kind": "COMMAND",
"value": "find measure/violet-pack/pages -type f -name '*.page' -exec grep -qF -- fennel {} \\; -printf x | wc -c"
} |
List regular .note files beneath 'measure/violet-pack/manuals' as path, TAB, LF count, sorted bytewise by full path. Search recursively and omit a total row. | {
"kind": "COMMAND",
"value": "find measure/violet-pack/manuals -type f -name '*.note' -print0 | LC_ALL=C sort -z | while IFS= read -r -d '' p; do printf '%s\\t%s\\n' \"$p\" \"$(wc -l < \"$p\")\"; done"
} |
For each regular .note file anywhere under 'measure/violet-pack/manuals', print its relative path and newline count separated by a tab, in C-locale path order. | {
"kind": "COMMAND",
"value": "find measure/violet-pack/manuals -type f -name '*.note' -print0 | LC_ALL=C sort -z | while IFS= read -r -d '' p; do printf '%s\\t%s\\n' \"$p\" \"$(wc -l < \"$p\")\"; done"
} |
Print only the byte sizes of the 3 smallest nonempty regular files under 'measure/violet-pack/sizes', in ascending order; search recursively. | {
"kind": "COMMAND",
"value": "find measure/violet-pack/sizes -type f ! -empty -printf '%s\\n' | sort -n | head -n 3"
} |
Find the 3 smallest nonempty regular files anywhere beneath 'measure/violet-pack/sizes' and output just their byte counts, smallest first. | {
"kind": "COMMAND",
"value": "find measure/violet-pack/sizes -type f ! -empty -printf '%s\\n' | sort -n | head -n 3"
} |
Print the 3 largest regular files under 'measure/violet-pack/sizes' as byte count, space, full relative path. Rank descending, break ties by bytewise path, and search recursively. | {
"kind": "COMMAND",
"value": "find measure/violet-pack/sizes -type f -printf '%s %p\\n' | LC_ALL=C sort -k1,1nr -k2 | head -n 3"
} |
List the top 3 regular files anywhere beneath 'measure/violet-pack/sizes' by logical bytes, largest first; show size then path and sort equal sizes by C-locale path. | {
"kind": "COMMAND",
"value": "find measure/violet-pack/sizes -type f -printf '%s %p\\n' | LC_ALL=C sort -k1,1nr -k2 | head -n 3"
} |
Print only the byte count of "measure/cedar's archive/glyphs.dat", including all LF and UTF-8 bytes. | {
"kind": "COMMAND",
"value": "wc -c < 'measure/cedar'\"'\"'s archive/glyphs.dat'"
} |
How many bytes are in "measure/cedar's archive/glyphs.dat"? Output just the number; count line endings too. | {
"kind": "COMMAND",
"value": "wc -c < 'measure/cedar'\"'\"'s archive/glyphs.dat'"
} |
Count characters in UTF-8 file "measure/cedar's archive/glyphs.dat" using C.UTF-8, including LF; print only the count. | {
"kind": "COMMAND",
"value": "LC_ALL=C.UTF-8 wc -m < 'measure/cedar'\"'\"'s archive/glyphs.dat'"
} |
In C.UTF-8, report the character count of "measure/cedar's archive/glyphs.dat", including line-ending characters. | {
"kind": "COMMAND",
"value": "LC_ALL=C.UTF-8 wc -m < 'measure/cedar'\"'\"'s archive/glyphs.dat'"
} |
Count case-sensitive whole-word occurrences of 'juniper' in "measure/cedar's archive/word records.log", using ASCII word boundaries. | {
"kind": "COMMAND",
"value": "LC_ALL=C grep -owF -- juniper 'measure/cedar'\"'\"'s archive/word records.log' | wc -l"
} |
How many whole words equal 'juniper' in "measure/cedar's archive/word records.log"? Match case; ASCII letters, digits and underscore are word characters. | {
"kind": "COMMAND",
"value": "LC_ALL=C grep -owF -- juniper 'measure/cedar'\"'\"'s archive/word records.log' | wc -l"
} |
Count every case-sensitive occurrence of literal substring 'juniper' in "measure/cedar's archive/word records.log". | {
"kind": "COMMAND",
"value": "LC_ALL=C grep -oF -- juniper 'measure/cedar'\"'\"'s archive/word records.log' | wc -l"
} |
How many times does literal 'juniper' occur in "measure/cedar's archive/word records.log"? Include occurrences inside longer words and match case. | {
"kind": "COMMAND",
"value": "LC_ALL=C grep -oF -- juniper 'measure/cedar'\"'\"'s archive/word records.log' | wc -l"
} |
Recursively average word counts of regular .memo files under "measure/cedar's archive/drafts"; print one number, or 0 if none. | {
"kind": "COMMAND",
"value": "find 'measure/cedar'\"'\"'s archive/drafts' -type f -name '*.memo' -exec sh -c 'for p; do wc -w < \"$p\"; done' sh {} + | awk '{s+=$1;n++} END {if(n) print s/n; else print 0}'"
} |
Print the mean number of words per regular .memo file anywhere under "measure/cedar's archive/drafts", using 0 for an empty selection. | {
"kind": "COMMAND",
"value": "find 'measure/cedar'\"'\"'s archive/drafts' -type f -name '*.memo' -exec sh -c 'for p; do wc -w < \"$p\"; done' sh {} + | awk '{s+=$1;n++} END {if(n) print s/n; else print 0}'"
} |
Average word counts of regular .memo files under "measure/cedar's archive/drafts" having fewer than 6 words; search recursively and print 0 if none qualify. | {
"kind": "COMMAND",
"value": "find 'measure/cedar'\"'\"'s archive/drafts' -type f -name '*.memo' -exec sh -c 'for p; do wc -w < \"$p\"; done' sh {} + | awk '$1 < 6 {s+=$1;n++} END {if(n) print s/n; else print 0}'"
} |
Print the mean per-file word count for regular .memo files anywhere under "measure/cedar's archive/drafts" with word counts below 6. Use 0 if no file remains. | {
"kind": "COMMAND",
"value": "find 'measure/cedar'\"'\"'s archive/drafts' -type f -name '*.memo' -exec sh -c 'for p; do wc -w < \"$p\"; done' sh {} + | awk '$1 < 6 {s+=$1;n++} END {if(n) print s/n; else print 0}'"
} |
Print the total LF count across regular .sheet files anywhere under "measure/cedar's archive/records"; empty files add zero. | {
"kind": "COMMAND",
"value": "find 'measure/cedar'\"'\"'s archive/records' -type f -name '*.sheet' -exec cat -- {} + | wc -l"
} |
Count newline bytes in all regular files ending .sheet below "measure/cedar's archive/records", recursively, and print one total. | {
"kind": "COMMAND",
"value": "find 'measure/cedar'\"'\"'s archive/records' -type f -name '*.sheet' -exec cat -- {} + | wc -l"
} |
Print the number of regular .sheet files anywhere under "measure/cedar's archive/records", including empty files. | {
"kind": "COMMAND",
"value": "find 'measure/cedar'\"'\"'s archive/records' -type f -name '*.sheet' -printf x | wc -c"
} |
How many regular files ending .sheet are beneath "measure/cedar's archive/records"? Search recursively; count files, not content lines. | {
"kind": "COMMAND",
"value": "find 'measure/cedar'\"'\"'s archive/records' -type f -name '*.sheet' -printf x | wc -c"
} |
Print the first 7 bytes of "measure/cedar's archive/plain.dat" as lowercase two-digit hex, one byte per line, without offsets; a short file contributes only available bytes. | {
"kind": "COMMAND",
"value": "od -An -v -t x1 -N 7 -- 'measure/cedar'\"'\"'s archive/plain.dat' | awk '{for(i=1;i<=NF;i++) print $i}'"
} |
Dump at most 7 bytes from "measure/cedar's archive/plain.dat" in hex: two lowercase digits per byte, one value per line, no address column. | {
"kind": "COMMAND",
"value": "od -An -v -t x1 -N 7 -- 'measure/cedar'\"'\"'s archive/plain.dat' | awk '{for(i=1;i<=NF;i++) print $i}'"
} |
Print the contents of "measure/cedar's archive/messages.txt" with every LF byte removed. Preserve CR and tabs; add no final newline. | {
"kind": "COMMAND",
"value": "tr -d '\\n' < 'measure/cedar'\"'\"'s archive/messages.txt'"
} |
Delete only newline bytes (LF) while copying "measure/cedar's archive/messages.txt" to stdout, retaining carriage returns and all other bytes. | {
"kind": "COMMAND",
"value": "tr -d '\\n' < 'measure/cedar'\"'\"'s archive/messages.txt'"
} |
Print the sum of the signed decimal integer records in "measure/cedar's archive/integers.dat"; use 0 for an empty file. | {
"kind": "COMMAND",
"value": "awk '{s+=$1} END {print s+0}' 'measure/cedar'\"'\"'s archive/integers.dat'"
} |
Add all numbers in "measure/cedar's archive/integers.dat" and output one decimal total with LF. Empty input has total 0. | {
"kind": "COMMAND",
"value": "awk '{s+=$1} END {print s+0}' 'measure/cedar'\"'\"'s archive/integers.dat'"
} |
Count deleted plus inserted data lines between "measure/cedar's archive/compare/left.txt" and "measure/cedar's archive/compare/right.txt"; exclude diff headers/context. Replacements count twice and unterminated tails count. Equal or different inputs succeed; diff errors fail. | {
"kind": "COMMAND",
"value": "diff --old-line-format=x --new-line-format=x --unchanged-line-format= -- 'measure/cedar'\"'\"'s archive/compare/left.txt' 'measure/cedar'\"'\"'s archive/compare/right.txt' | wc -c; test \"${PIPESTATUS[0]}\" -le 1"
} |
Compare "measure/cedar's archive/compare/left.txt" with "measure/cedar's archive/compare/right.txt" and print one total of additions plus deletions, without headers or unchanged lines. Count each replacement as 2 and include final lines lacking LF; fail on actual diff errors. | {
"kind": "COMMAND",
"value": "diff --old-line-format=x --new-line-format=x --unchanged-line-format= -- 'measure/cedar'\"'\"'s archive/compare/left.txt' 'measure/cedar'\"'\"'s archive/compare/right.txt' | wc -c; test \"${PIPESTATUS[0]}\" -le 1"
} |
Total logical lines in regular .entry files anywhere under "measure/cedar's archive/journal". Count blank lines and each file's nonempty unterminated tail; empty files add zero. | {
"kind": "COMMAND",
"value": "find 'measure/cedar'\"'\"'s archive/journal' -type f -name '*.entry' -exec awk 'END {print NR}' {} + | awk '{s+=$1} END {print s+0}'"
} |
Count text records across regular .entry files beneath "measure/cedar's archive/journal", recursively. LF ends a record, and every file's nonempty final tail also counts; print one total. | {
"kind": "COMMAND",
"value": "find 'measure/cedar'\"'\"'s archive/journal' -type f -name '*.entry' -exec awk 'END {print NR}' {} + | awk '{s+=$1} END {print s+0}'"
} |
Count regular .page files under "measure/cedar's archive/pages" containing literal 'juniper' at least once; search recursively. | {
"kind": "COMMAND",
"value": "find 'measure/cedar'\"'\"'s archive/pages' -type f -name '*.page' -exec grep -qF -- juniper {} \\; -printf x | wc -c"
} |
How many regular .page files anywhere beneath "measure/cedar's archive/pages" contain the case-sensitive substring 'juniper'? Count each file once. | {
"kind": "COMMAND",
"value": "find 'measure/cedar'\"'\"'s archive/pages' -type f -name '*.page' -exec grep -qF -- juniper {} \\; -printf x | wc -c"
} |
List regular .note files beneath "measure/cedar's archive/manuals" as path, TAB, LF count, sorted bytewise by full path. Search recursively and omit a total row. | {
"kind": "COMMAND",
"value": "find 'measure/cedar'\"'\"'s archive/manuals' -type f -name '*.note' -print0 | LC_ALL=C sort -z | while IFS= read -r -d '' p; do printf '%s\\t%s\\n' \"$p\" \"$(wc -l < \"$p\")\"; done"
} |
For each regular .note file anywhere under "measure/cedar's archive/manuals", print its relative path and newline count separated by a tab, in C-locale path order. | {
"kind": "COMMAND",
"value": "find 'measure/cedar'\"'\"'s archive/manuals' -type f -name '*.note' -print0 | LC_ALL=C sort -z | while IFS= read -r -d '' p; do printf '%s\\t%s\\n' \"$p\" \"$(wc -l < \"$p\")\"; done"
} |
Print only the byte sizes of the 2 smallest nonempty regular files under "measure/cedar's archive/sizes", in ascending order; search recursively. | {
"kind": "COMMAND",
"value": "find 'measure/cedar'\"'\"'s archive/sizes' -type f ! -empty -printf '%s\\n' | sort -n | head -n 2"
} |
Find the 2 smallest nonempty regular files anywhere beneath "measure/cedar's archive/sizes" and output just their byte counts, smallest first. | {
"kind": "COMMAND",
"value": "find 'measure/cedar'\"'\"'s archive/sizes' -type f ! -empty -printf '%s\\n' | sort -n | head -n 2"
} |
Print the 2 largest regular files under "measure/cedar's archive/sizes" as byte count, space, full relative path. Rank descending, break ties by bytewise path, and search recursively. | {
"kind": "COMMAND",
"value": "find 'measure/cedar'\"'\"'s archive/sizes' -type f -printf '%s %p\\n' | LC_ALL=C sort -k1,1nr -k2 | head -n 2"
} |
List the top 2 regular files anywhere beneath "measure/cedar's archive/sizes" by logical bytes, largest first; show size then path and sort equal sizes by C-locale path. | {
"kind": "COMMAND",
"value": "find 'measure/cedar'\"'\"'s archive/sizes' -type f -printf '%s %p\\n' | LC_ALL=C sort -k1,1nr -k2 | head -n 2"
} |
Print only the byte count of 'measure/sable [set]/glyphs.dat', including all LF and UTF-8 bytes. | {
"kind": "COMMAND",
"value": "wc -c < 'measure/sable [set]/glyphs.dat'"
} |
How many bytes are in 'measure/sable [set]/glyphs.dat'? Output just the number; count line endings too. | {
"kind": "COMMAND",
"value": "wc -c < 'measure/sable [set]/glyphs.dat'"
} |
Count characters in UTF-8 file 'measure/sable [set]/glyphs.dat' using C.UTF-8, including LF; print only the count. | {
"kind": "COMMAND",
"value": "LC_ALL=C.UTF-8 wc -m < 'measure/sable [set]/glyphs.dat'"
} |
In C.UTF-8, report the character count of 'measure/sable [set]/glyphs.dat', including line-ending characters. | {
"kind": "COMMAND",
"value": "LC_ALL=C.UTF-8 wc -m < 'measure/sable [set]/glyphs.dat'"
} |
Count case-sensitive whole-word occurrences of 'mosaic' in 'measure/sable [set]/word records.log', using ASCII word boundaries. | {
"kind": "COMMAND",
"value": "LC_ALL=C grep -owF -- mosaic 'measure/sable [set]/word records.log' | wc -l"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.