request
stringlengths
13
923
response
dict
Print one basename per file, retaining duplicates for regular files ending in ".txt" recursively under "compose-orchid records", in ascending C order without directory prefixes. Include hidden files and hidden subdirectories within that scope.
{ "kind": "COMMAND", "value": "set -o pipefail; find 'compose-orchid records' -type f -name '*.txt' -printf '%f\\0' | LC_ALL=C sort -z | tr '\\000' '\\n'" }
List only basenames of regular files ending in ".dat" recursively under "compose-granite records", one basename per file, retaining duplicates. Sort bytewise. Exclude hidden files and anything below hidden directories.
{ "kind": "COMMAND", "value": "set -o pipefail; find 'compose-granite records' ! -path '*/.*' -type f -name '*.dat' -printf '%f\\0' | LC_ALL=C sort -z | tr '\\000' '\\n'" }
Print one basename per file, retaining duplicates for regular files ending in ".dat" recursively under "compose-granite records", in ascending C order without directory prefixes. Exclude hidden files and anything below hidden directories.
{ "kind": "COMMAND", "value": "set -o pipefail; find 'compose-granite records' ! -path '*/.*' -type f -name '*.dat' -printf '%f\\0' | LC_ALL=C sort -z | tr '\\000' '\\n'" }
List only basenames of regular files ending in ".csv" recursively under "compose-harbor records", one basename per file, retaining duplicates. Sort bytewise. Exclude hidden files and anything below hidden directories.
{ "kind": "COMMAND", "value": "set -o pipefail; find 'compose-harbor records' ! -path '*/.*' -type f -name '*.csv' -printf '%f\\0' | LC_ALL=C sort -z | tr '\\000' '\\n'" }
Print one basename per file, retaining duplicates for regular files ending in ".csv" recursively under "compose-harbor records", in ascending C order without directory prefixes. Exclude hidden files and anything below hidden directories.
{ "kind": "COMMAND", "value": "set -o pipefail; find 'compose-harbor records' ! -path '*/.*' -type f -name '*.csv' -printf '%f\\0' | LC_ALL=C sort -z | tr '\\000' '\\n'" }
List only basenames of regular files ending in ".log" recursively under "compose-copper records", one copy of each distinct basename. Sort bytewise. Include hidden files and hidden subdirectories within that scope.
{ "kind": "COMMAND", "value": "set -o pipefail; find 'compose-copper records' -type f -name '*.log' -printf '%f\\0' | LC_ALL=C sort -z -u | tr '\\000' '\\n'" }
Print one copy of each distinct basename for regular files ending in ".log" recursively under "compose-copper records", in ascending C order without directory prefixes. Include hidden files and hidden subdirectories within that scope.
{ "kind": "COMMAND", "value": "set -o pipefail; find 'compose-copper records' -type f -name '*.log' -printf '%f\\0' | LC_ALL=C sort -z -u | tr '\\000' '\\n'" }
List only basenames of regular files ending in ".txt" recursively under "compose-orchid records", one copy of each distinct basename. Sort bytewise. Include hidden files and hidden subdirectories within that scope.
{ "kind": "COMMAND", "value": "set -o pipefail; find 'compose-orchid records' -type f -name '*.txt' -printf '%f\\0' | LC_ALL=C sort -z -u | tr '\\000' '\\n'" }
Print one copy of each distinct basename for regular files ending in ".txt" recursively under "compose-orchid records", in ascending C order without directory prefixes. Include hidden files and hidden subdirectories within that scope.
{ "kind": "COMMAND", "value": "set -o pipefail; find 'compose-orchid records' -type f -name '*.txt' -printf '%f\\0' | LC_ALL=C sort -z -u | tr '\\000' '\\n'" }
List only basenames of regular files ending in ".dat" recursively under "compose-granite records", one copy of each distinct basename. Sort bytewise. Exclude hidden files and anything below hidden directories.
{ "kind": "COMMAND", "value": "set -o pipefail; find 'compose-granite records' ! -path '*/.*' -type f -name '*.dat' -printf '%f\\0' | LC_ALL=C sort -z -u | tr '\\000' '\\n'" }
Print one copy of each distinct basename for regular files ending in ".dat" recursively under "compose-granite records", in ascending C order without directory prefixes. Exclude hidden files and anything below hidden directories.
{ "kind": "COMMAND", "value": "set -o pipefail; find 'compose-granite records' ! -path '*/.*' -type f -name '*.dat' -printf '%f\\0' | LC_ALL=C sort -z -u | tr '\\000' '\\n'" }
List only basenames of regular files ending in ".csv" recursively under "compose-harbor records", one copy of each distinct basename. Sort bytewise. Exclude hidden files and anything below hidden directories.
{ "kind": "COMMAND", "value": "set -o pipefail; find 'compose-harbor records' ! -path '*/.*' -type f -name '*.csv' -printf '%f\\0' | LC_ALL=C sort -z -u | tr '\\000' '\\n'" }
Print one copy of each distinct basename for regular files ending in ".csv" recursively under "compose-harbor records", in ascending C order without directory prefixes. Exclude hidden files and anything below hidden directories.
{ "kind": "COMMAND", "value": "set -o pipefail; find 'compose-harbor records' ! -path '*/.*' -type f -name '*.csv' -printf '%f\\0' | LC_ALL=C sort -z -u | tr '\\000' '\\n'" }
List every regular file in the directory literally named "directory", recursively. Print paths including that directory, sorted.
{ "kind": "COMMAND", "value": "find directory -mindepth 1 -type f -print | LC_ALL=C sort" }
For "directory", print sorted paths of all regular files at every depth, including hidden files and the starting directory in each path.
{ "kind": "COMMAND", "value": "find directory -mindepth 1 -type f -print | LC_ALL=C sort" }
List every regular file in the directory literally named "tree", only directly inside it, without descending into subdirectories. Print paths including that directory, sorted.
{ "kind": "COMMAND", "value": "find tree -mindepth 1 -maxdepth 1 -type f -print | LC_ALL=C sort" }
For "tree", print sorted paths of all regular files at the top level only, including hidden files and the starting directory in each path.
{ "kind": "COMMAND", "value": "find tree -mindepth 1 -maxdepth 1 -type f -print | LC_ALL=C sort" }
List every regular file in the directory literally named "tree", recursively. Print paths including that directory, sorted.
{ "kind": "COMMAND", "value": "find tree -mindepth 1 -type f -print | LC_ALL=C sort" }
For "tree", print sorted paths of all regular files at every depth, including hidden files and the starting directory in each path.
{ "kind": "COMMAND", "value": "find tree -mindepth 1 -type f -print | LC_ALL=C sort" }
List every regular file in the directory literally named "amber directory", only directly inside it, without descending into subdirectories. Print paths including that directory, sorted.
{ "kind": "COMMAND", "value": "find 'amber directory' -mindepth 1 -maxdepth 1 -type f -print | LC_ALL=C sort" }
For "amber directory", print sorted paths of all regular files at the top level only, including hidden files and the starting directory in each path.
{ "kind": "COMMAND", "value": "find 'amber directory' -mindepth 1 -maxdepth 1 -type f -print | LC_ALL=C sort" }
List every regular file in the directory literally named "amber directory", recursively. Print paths including that directory, sorted.
{ "kind": "COMMAND", "value": "find 'amber directory' -mindepth 1 -type f -print | LC_ALL=C sort" }
For "amber directory", print sorted paths of all regular files at every depth, including hidden files and the starting directory in each path.
{ "kind": "COMMAND", "value": "find 'amber directory' -mindepth 1 -type f -print | LC_ALL=C sort" }
List every regular file in the directory literally named "cedar tree", only directly inside it, without descending into subdirectories. Print paths including that directory, sorted.
{ "kind": "COMMAND", "value": "find 'cedar tree' -mindepth 1 -maxdepth 1 -type f -print | LC_ALL=C sort" }
For "cedar tree", print sorted paths of all regular files at the top level only, including hidden files and the starting directory in each path.
{ "kind": "COMMAND", "value": "find 'cedar tree' -mindepth 1 -maxdepth 1 -type f -print | LC_ALL=C sort" }
List sorted paths of regular files in "byte vault 19" at any depth whose exact size is greater than 19 bytes.
{ "kind": "COMMAND", "value": "find 'byte vault 19' -mindepth 1 -type f -size +19c -print | LC_ALL=C sort" }
Under "byte vault 19", find regular files recursively with byte size greater than 19; print their sorted paths including the starting directory.
{ "kind": "COMMAND", "value": "find 'byte vault 19' -mindepth 1 -type f -size +19c -print | LC_ALL=C sort" }
List sorted paths of regular files in "byte vault 19" directly in it, without recursion whose exact size is at least 19 bytes.
{ "kind": "COMMAND", "value": "find 'byte vault 19' -mindepth 1 -maxdepth 1 -type f -size +18c -print | LC_ALL=C sort" }
Under "byte vault 19", find regular files at the top level only with byte size at least 19; print their sorted paths including the starting directory.
{ "kind": "COMMAND", "value": "find 'byte vault 19' -mindepth 1 -maxdepth 1 -type f -size +18c -print | LC_ALL=C sort" }
List sorted paths of regular files in "byte vault 19" at any depth whose exact size is less than 19 bytes.
{ "kind": "COMMAND", "value": "find 'byte vault 19' -mindepth 1 -type f -size -19c -print | LC_ALL=C sort" }
Under "byte vault 19", find regular files recursively with byte size less than 19; print their sorted paths including the starting directory.
{ "kind": "COMMAND", "value": "find 'byte vault 19' -mindepth 1 -type f -size -19c -print | LC_ALL=C sort" }
List sorted paths of regular files in "byte vault 19" directly in it, without recursion whose exact size is at most 19 bytes.
{ "kind": "COMMAND", "value": "find 'byte vault 19' -mindepth 1 -maxdepth 1 -type f -size -20c -print | LC_ALL=C sort" }
Under "byte vault 19", find regular files at the top level only with byte size at most 19; print their sorted paths including the starting directory.
{ "kind": "COMMAND", "value": "find 'byte vault 19' -mindepth 1 -maxdepth 1 -type f -size -20c -print | LC_ALL=C sort" }
List sorted paths of regular files in "byte vault 47" directly in it, without recursion whose exact size is at least 47 bytes.
{ "kind": "COMMAND", "value": "find 'byte vault 47' -mindepth 1 -maxdepth 1 -type f -size +46c -print | LC_ALL=C sort" }
Under "byte vault 47", find regular files at the top level only with byte size at least 47; print their sorted paths including the starting directory.
{ "kind": "COMMAND", "value": "find 'byte vault 47' -mindepth 1 -maxdepth 1 -type f -size +46c -print | LC_ALL=C sort" }
List sorted paths of regular files in "byte vault 47" directly in it, without recursion whose exact size is at most 47 bytes.
{ "kind": "COMMAND", "value": "find 'byte vault 47' -mindepth 1 -maxdepth 1 -type f -size -48c -print | LC_ALL=C sort" }
Under "byte vault 47", find regular files at the top level only with byte size at most 47; print their sorted paths including the starting directory.
{ "kind": "COMMAND", "value": "find 'byte vault 47' -mindepth 1 -maxdepth 1 -type f -size -48c -print | LC_ALL=C sort" }
List sorted paths of regular files in "byte vault 83" at any depth whose exact size is greater than 83 bytes.
{ "kind": "COMMAND", "value": "find 'byte vault 83' -mindepth 1 -type f -size +83c -print | LC_ALL=C sort" }
Under "byte vault 83", find regular files recursively with byte size greater than 83; print their sorted paths including the starting directory.
{ "kind": "COMMAND", "value": "find 'byte vault 83' -mindepth 1 -type f -size +83c -print | LC_ALL=C sort" }
List sorted paths of regular files in "byte vault 83" directly in it, without recursion whose exact size is at least 83 bytes.
{ "kind": "COMMAND", "value": "find 'byte vault 83' -mindepth 1 -maxdepth 1 -type f -size +82c -print | LC_ALL=C sort" }
Under "byte vault 83", find regular files at the top level only with byte size at least 83; print their sorted paths including the starting directory.
{ "kind": "COMMAND", "value": "find 'byte vault 83' -mindepth 1 -maxdepth 1 -type f -size +82c -print | LC_ALL=C sort" }
List sorted paths of regular files in "byte vault 83" at any depth whose exact size is less than 83 bytes.
{ "kind": "COMMAND", "value": "find 'byte vault 83' -mindepth 1 -type f -size -83c -print | LC_ALL=C sort" }
Under "byte vault 83", find regular files recursively with byte size less than 83; print their sorted paths including the starting directory.
{ "kind": "COMMAND", "value": "find 'byte vault 83' -mindepth 1 -type f -size -83c -print | LC_ALL=C sort" }
List sorted paths of regular files in "byte vault 83" directly in it, without recursion whose exact size is at most 83 bytes.
{ "kind": "COMMAND", "value": "find 'byte vault 83' -mindepth 1 -maxdepth 1 -type f -size -84c -print | LC_ALL=C sort" }
Under "byte vault 83", find regular files at the top level only with byte size at most 83; print their sorted paths including the starting directory.
{ "kind": "COMMAND", "value": "find 'byte vault 83' -mindepth 1 -maxdepth 1 -type f -size -84c -print | LC_ALL=C sort" }
Print only line 4 of the source text in 'notes/cobalt source.data'; do not run it.
{ "kind": "COMMAND", "value": "sed -n '4p' -- 'notes/cobalt source.data'" }
Read 'notes/cobalt source.data' as a file and display its fourth line alone.
{ "kind": "COMMAND", "value": "sed -n '4p' -- 'notes/cobalt source.data'" }
Display all source text in 'notes/cobalt source.data' without executing it.
{ "kind": "COMMAND", "value": "cat -- 'notes/cobalt source.data'" }
Print the complete contents of 'notes/cobalt source.data' as stored.
{ "kind": "COMMAND", "value": "cat -- 'notes/cobalt source.data'" }
From each line of 'snapshots/queue triplet.txt', print whitespace fields 1, 2, and 3 separated by single spaces.
{ "kind": "COMMAND", "value": "awk '{print $1, $2, $3}' 'snapshots/queue triplet.txt'" }
Show the first three whitespace-separated fields on every line of 'snapshots/queue triplet.txt', using one space between them.
{ "kind": "COMMAND", "value": "awk '{print $1, $2, $3}' 'snapshots/queue triplet.txt'" }
Print only the first whitespace field from every line of 'snapshots/queue triplet.txt'.
{ "kind": "COMMAND", "value": "awk '{print $1}' 'snapshots/queue triplet.txt'" }
For each line in 'snapshots/queue triplet.txt', show field 1 alone; fields are separated by whitespace.
{ "kind": "COMMAND", "value": "awk '{print $1}' 'snapshots/queue triplet.txt'" }
Read 'settings/crescent resolver.conf' and print the address field from each nameserver directive; ignore comments and other directives.
{ "kind": "COMMAND", "value": "awk '$1 == \"nameserver\" {print $2}' 'settings/crescent resolver.conf'" }
List only nameserver addresses from 'settings/crescent resolver.conf', in file order, excluding comment lines and unrelated settings.
{ "kind": "COMMAND", "value": "awk '$1 == \"nameserver\" {print $2}' 'settings/crescent resolver.conf'" }
Make 'drafts/amber note.txt' read-only for owner, group, and others, with no execute permission.
{ "kind": "COMMAND", "value": "chmod 444 -- 'drafts/amber note.txt'" }
Set 'drafts/amber note.txt' so everyone may read it and nobody has write or execute bits.
{ "kind": "COMMAND", "value": "chmod 444 -- 'drafts/amber note.txt'" }
Remove all read bits from 'drafts/amber note.txt', preserving its write and execute bits.
{ "kind": "COMMAND", "value": "chmod a-r -- 'drafts/amber note.txt'" }
Clear owner, group, and other read permissions on 'drafts/amber note.txt'; leave every other mode bit alone.
{ "kind": "COMMAND", "value": "chmod a-r -- 'drafts/amber note.txt'" }
Print lines containing literal 'beacon' from 'logs/fennel events.txt', retaining their order and duplicates.
{ "kind": "COMMAND", "value": "grep -F -- beacon 'logs/fennel events.txt'" }
Keep every line of 'logs/fennel events.txt' that includes 'beacon'; preserve the original sequence and repeated lines.
{ "kind": "COMMAND", "value": "grep -F -- beacon 'logs/fennel events.txt'" }
In C.UTF-8 locale, print only the character count of UTF-8 file 'text/azur glyphs.txt', including newline characters.
{ "kind": "COMMAND", "value": "LC_ALL=C.UTF-8 wc -m < 'text/azur glyphs.txt'" }
Count Unicode characters, not bytes, in 'text/azur glyphs.txt' using C.UTF-8; output just the total, with newlines counted.
{ "kind": "COMMAND", "value": "LC_ALL=C.UTF-8 wc -m < 'text/azur glyphs.txt'" }
Print only the byte count of 'text/azur glyphs.txt', including every newline byte.
{ "kind": "COMMAND", "value": "wc -c < 'text/azur glyphs.txt'" }
How many bytes are stored in 'text/azur glyphs.txt'? Output just the total.
{ "kind": "COMMAND", "value": "wc -c < 'text/azur glyphs.txt'" }
Count case-sensitive whole-word occurrences of 'mint' in journal.log, using ASCII word boundaries.
{ "kind": "COMMAND", "value": "LC_ALL=C grep -owF -- 'mint' journal.log | wc -l" }
How many times does the complete word 'mint' occur in journal.log? Match case and use ASCII word boundaries.
{ "kind": "COMMAND", "value": "LC_ALL=C grep -owF -- 'mint' journal.log | wc -l" }
Count every case-sensitive occurrence of the literal substring 'mint' in journal.log.
{ "kind": "COMMAND", "value": "LC_ALL=C grep -oF -- 'mint' journal.log | wc -l" }
How many literal 'mint' matches are in journal.log, including those inside longer words? Match case.
{ "kind": "COMMAND", "value": "LC_ALL=C grep -oF -- 'mint' journal.log | wc -l" }
Recursively average the word counts of .memo files under drafts that contain fewer than 5 words; print 0 if none qualify.
{ "kind": "COMMAND", "value": "find drafts -type f -name '*.memo' -exec sh -c 'for p; do wc -w < \"$p\"; done' sh {} + | awk '$1 < 5 {s += $1; n++} END {if (n) print s/n; else print 0}'" }
Print the mean words per qualifying .memo file in the drafts tree, keeping only counts below 5 and using 0 for no matches.
{ "kind": "COMMAND", "value": "find drafts -type f -name '*.memo' -exec sh -c 'for p; do wc -w < \"$p\"; done' sh {} + | awk '$1 < 5 {s += $1; n++} END {if (n) print s/n; else print 0}'" }
Recursively average the word counts of all .memo files under drafts; print 0 if there are none.
{ "kind": "COMMAND", "value": "find 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 .memo file in the drafts tree, or 0 when no such files exist.
{ "kind": "COMMAND", "value": "find 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}'" }
Count newline characters across all .rb and .rs regular files anywhere under codebase; print one total.
{ "kind": "COMMAND", "value": "find codebase -type f \\( -name '*.rb' -o -name '*.rs' \\) -exec cat -- {} + | wc -l" }
Print the combined newline count of the .rb and .rs files in the codebase tree, including nested directories.
{ "kind": "COMMAND", "value": "find codebase -type f \\( -name '*.rb' -o -name '*.rs' \\) -exec cat -- {} + | wc -l" }
Count .page regular files in the pages tree that contain the literal substring 'amber' at least once.
{ "kind": "COMMAND", "value": "find pages -type f -name '*.page' -exec grep -qF -- 'amber' {} \\; -printf x | wc -c" }
How many .page files anywhere under pages contain 'amber'? Count each matching file once.
{ "kind": "COMMAND", "value": "find pages -type f -name '*.page' -exec grep -qF -- 'amber' {} \\; -printf x | wc -c" }
Print True if every distinct line in needed.lst occurs in available.lst, otherwise False; ignore order and duplicate lines.
{ "kind": "COMMAND", "value": "export LC_ALL=C; if comm -23 <(sort -u needed.lst) <(sort -u available.lst) | grep -q '^'; then printf 'False\\n'; else printf 'True\\n'; fi" }
Treat needed.lst and available.lst as sets of whole lines. Print True when needed.lst is a subset, otherwise False.
{ "kind": "COMMAND", "value": "export LC_ALL=C; if comm -23 <(sort -u needed.lst) <(sort -u available.lst) | grep -q '^'; then printf 'False\\n'; else printf 'True\\n'; fi" }
Print only the MD5 digest of inputs.lst itself; it is a manifest containing pathnames.
{ "kind": "COMMAND", "value": "md5sum < inputs.lst | cut -d' ' -f1" }
Hash the bytes of the manifest inputs.lst with MD5 and print just the hexadecimal digest.
{ "kind": "COMMAND", "value": "md5sum < inputs.lst | cut -d' ' -f1" }
inputs.lst has one readable pathname per line. Sort the paths in C order, concatenate those files, and print only the MD5 digest.
{ "kind": "COMMAND", "value": "LC_ALL=C sort inputs.lst | while IFS= read -r p; do cat -- \"$p\"; done | md5sum | cut -d' ' -f1" }
Print the MD5 hex digest of the files listed in inputs.lst concatenated in C-sorted pathname order; the list has one path per line.
{ "kind": "COMMAND", "value": "LC_ALL=C sort inputs.lst | while IFS= read -r p; do cat -- \"$p\"; done | md5sum | cut -d' ' -f1" }
Print the sorted MD5 hashes shared by at least two .unit regular files in the packages tree, each duplicate hash once.
{ "kind": "COMMAND", "value": "find packages -type f -name '*.unit' -exec sh -c 'for p; do md5sum < \"$p\"; done' sh {} + | cut -d' ' -f1 | LC_ALL=C sort | uniq -d" }
Find repeated content digests among .unit files anywhere under packages; print unique repeated MD5 values in ascending order.
{ "kind": "COMMAND", "value": "find packages -type f -name '*.unit' -exec sh -c 'for p; do md5sum < \"$p\"; done' sh {} + | cut -d' ' -f1 | LC_ALL=C sort | uniq -d" }
Print only the byte sizes of the three smallest nonempty regular files in the parcels tree, in ascending order.
{ "kind": "COMMAND", "value": "find parcels -type f ! -empty -printf '%s\\n' | sort -n | head -n 3" }
Find the three smallest nonempty files anywhere under parcels and output their sizes in bytes, smallest first, with no paths.
{ "kind": "COMMAND", "value": "find parcels -type f ! -empty -printf '%s\\n' | sort -n | head -n 3" }
List each .note file in the manuals tree as path, tab, newline count, sorted by its full path in C order; omit a total row.
{ "kind": "COMMAND", "value": "find 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 every .note file under manuals, print its full relative path and newline count separated by a tab, in C pathname order, without a combined total.
{ "kind": "COMMAND", "value": "find 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" }
Delete only the regular .cache files directly inside stash, including hidden ones. Leave subfolders and their contents alone, and print nothing.
{ "kind": "COMMAND", "value": "find stash -maxdepth 1 -type f -name '*.cache' -delete" }
Without descending into stash subdirectories, silently remove its regular files whose names end in .cache, including dotfiles.
{ "kind": "COMMAND", "value": "find stash -maxdepth 1 -type f -name '*.cache' -delete" }
Delete regular files ending in .cache anywhere below stash, including hidden files and nested folders. Keep directories and other files, and print nothing.
{ "kind": "COMMAND", "value": "find stash -type f -name '*.cache' -delete" }
Recursively remove .cache files from stash without listing them; leave folders and nonmatching files alone.
{ "kind": "COMMAND", "value": "find stash -type f -name '*.cache' -delete" }
Recursively list regular files in catalog whose names both start with old- and end in .tmp. Print full relative paths in C-locale order.
{ "kind": "COMMAND", "value": "find catalog -type f -name 'old-*' -name '*.tmp' -print | LC_ALL=C sort" }
Under catalog, show sorted relative paths for files matching both old-* and *.tmp, excluding directories. Use C-locale sorting.
{ "kind": "COMMAND", "value": "find catalog -type f -name 'old-*' -name '*.tmp' -print | LC_ALL=C sort" }
Recursively list regular files in catalog whose names start with old- or end in .tmp, including files matching either condition. Sort their relative paths in the C locale.
{ "kind": "COMMAND", "value": "find catalog -type f \\( -name 'old-*' -o -name '*.tmp' \\) -print | LC_ALL=C sort" }
Under catalog, print C-locale-sorted paths for files matching either old-* or *.tmp; do not list directories.
{ "kind": "COMMAND", "value": "find catalog -type f \\( -name 'old-*' -o -name '*.tmp' \\) -print | LC_ALL=C sort" }
Recursively rename regular files in dossiers by replacing every literal draft in each basename with final. Keep directories and file contents unchanged; destinations do not exist. Print nothing.
{ "kind": "COMMAND", "value": "find dossiers -type f -name '*draft*' -exec bash -c 'for p; do d=${p%/*}; b=${p##*/}; mv -- \"$p\" \"$d/${b//draft/final}\"; done' _ {} +" }
In dossiers and its subfolders, silently change draft to final throughout each file name, preserving the containing directories and all file bytes. Assume no destination collisions.
{ "kind": "COMMAND", "value": "find dossiers -type f -name '*draft*' -exec bash -c 'for p; do d=${p%/*}; b=${p##*/}; mv -- \"$p\" \"$d/${b//draft/final}\"; done' _ {} +" }
Every regular file under dossiers is text. Recursively replace every literal draft with final in those files, keeping names and directories unchanged and printing nothing.
{ "kind": "COMMAND", "value": "find dossiers -type f -exec sed -i 's/draft/final/g' -- {} +" }