request stringlengths 13 923 | response dict |
|---|---|
move 'src/seed.txt' to 'work/result0.txt', replacing an existing destination; then copy 'work/result0.txt' to 'work/result1.txt', failing if the destination exists; then set mode 0640 on 'work/result1.txt'. | {
"kind": "COMMAND",
"value": "mv -f -- 'src/seed.txt' 'work/result0.txt' && if test -e 'work/result1.txt' -o -L 'work/result1.txt'; then exit 1; else cp -- 'work/result0.txt' 'work/result1.txt'; fi && chmod 0640 -- 'work/result1.txt'"
} |
move 'src/seed.txt' to 'work/result0.txt', replacing an existing destination; then copy 'work/result0.txt' to 'work/result1.txt', failing if the destination exists; then set mode 0660 on 'work/result1.txt'. | {
"kind": "COMMAND",
"value": "mv -f -- 'src/seed.txt' 'work/result0.txt' && if test -e 'work/result1.txt' -o -L 'work/result1.txt'; then exit 1; else cp -- 'work/result0.txt' 'work/result1.txt'; fi && chmod 0660 -- 'work/result1.txt'"
} |
move 'src/seed.txt' to 'work/result0.txt', replacing an existing destination; then copy 'work/result0.txt' to 'work/result1.txt', failing if the destination exists; then set mode 0620 on 'work/result1.txt'. | {
"kind": "COMMAND",
"value": "mv -f -- 'src/seed.txt' 'work/result0.txt' && if test -e 'work/result1.txt' -o -L 'work/result1.txt'; then exit 1; else cp -- 'work/result0.txt' 'work/result1.txt'; fi && chmod 0620 -- 'work/result1.txt'"
} |
move 'src/seed.txt' to 'work/result0.txt', replacing an existing destination; then copy 'work/result0.txt' to 'work/result1.txt', failing if the destination exists; then concatenate 'work/result1.txt', 'src/second.txt' into 'work/result2.txt', failing if the destination exists. | {
"kind": "COMMAND",
"value": "mv -f -- 'src/seed.txt' 'work/result0.txt' && if test -e 'work/result1.txt' -o -L 'work/result1.txt'; then exit 1; else cp -- 'work/result0.txt' 'work/result1.txt'; fi && if test -e 'work/result2.txt' -o -L 'work/result2.txt'; then exit 1; else cat -- 'work/result1.txt' 'src/second.tx... |
move 'src/seed.txt' to 'work/result0.txt', replacing an existing destination; then copy 'work/result0.txt' to 'work/result1.txt', failing if the destination exists; then concatenate 'work/result1.txt', 'src/second.txt' into 'work/result2.txt', replacing an existing destination. | {
"kind": "COMMAND",
"value": "mv -f -- 'src/seed.txt' 'work/result0.txt' && if test -e 'work/result1.txt' -o -L 'work/result1.txt'; then exit 1; else cp -- 'work/result0.txt' 'work/result1.txt'; fi && cat -- 'work/result1.txt' 'src/second.txt' > 'work/result2.txt'"
} |
move 'src/seed.txt' to 'work/result0.txt', replacing an existing destination; then copy 'work/result0.txt' to 'work/result1.txt', failing if the destination exists; then copy 'work/result1.txt' to 'work/result2.txt', failing if the destination exists. | {
"kind": "COMMAND",
"value": "mv -f -- 'src/seed.txt' 'work/result0.txt' && if test -e 'work/result1.txt' -o -L 'work/result1.txt'; then exit 1; else cp -- 'work/result0.txt' 'work/result1.txt'; fi && if test -e 'work/result2.txt' -o -L 'work/result2.txt'; then exit 1; else cp -- 'work/result1.txt' 'work/result2.t... |
move 'src/seed.txt' to 'work/result0.txt', replacing an existing destination; then copy 'work/result0.txt' to 'work/result1.txt', failing if the destination exists; then copy 'work/result1.txt' to 'work/result2.txt', replacing an existing destination. | {
"kind": "COMMAND",
"value": "mv -f -- 'src/seed.txt' 'work/result0.txt' && if test -e 'work/result1.txt' -o -L 'work/result1.txt'; then exit 1; else cp -- 'work/result0.txt' 'work/result1.txt'; fi && cp -f -- 'work/result1.txt' 'work/result2.txt'"
} |
move 'src/seed.txt' to 'work/result0.txt', replacing an existing destination; then copy 'work/result0.txt' to 'work/result1.txt', failing if the destination exists; then delete 'work/result1.txt' as an empty directory or file, failing if absent. | {
"kind": "COMMAND",
"value": "mv -f -- 'src/seed.txt' 'work/result0.txt' && if test -e 'work/result1.txt' -o -L 'work/result1.txt'; then exit 1; else cp -- 'work/result0.txt' 'work/result1.txt'; fi && if test ! -e 'work/result1.txt' -a ! -L 'work/result1.txt'; then exit 1; else rm -d -- 'work/result1.txt'; fi"
} |
move 'src/seed.txt' to 'work/result0.txt', replacing an existing destination; then copy 'work/result0.txt' to 'work/result1.txt', failing if the destination exists; then move 'work/result1.txt' to 'work/result2.txt', failing if the destination exists. | {
"kind": "COMMAND",
"value": "mv -f -- 'src/seed.txt' 'work/result0.txt' && if test -e 'work/result1.txt' -o -L 'work/result1.txt'; then exit 1; else cp -- 'work/result0.txt' 'work/result1.txt'; fi && if test -e 'work/result2.txt' -o -L 'work/result2.txt'; then exit 1; else mv -- 'work/result1.txt' 'work/result2.t... |
move 'src/seed.txt' to 'work/result0.txt', replacing an existing destination; then copy 'work/result0.txt' to 'work/result1.txt', failing if the destination exists; then move 'work/result1.txt' to 'work/result2.txt', replacing an existing destination. | {
"kind": "COMMAND",
"value": "mv -f -- 'src/seed.txt' 'work/result0.txt' && if test -e 'work/result1.txt' -o -L 'work/result1.txt'; then exit 1; else cp -- 'work/result0.txt' 'work/result1.txt'; fi && mv -f -- 'work/result1.txt' 'work/result2.txt'"
} |
move 'src/seed.txt' to 'work/result0.txt', replacing an existing destination; then copy 'work/result0.txt' to 'work/result1.txt', replacing an existing destination. | {
"kind": "COMMAND",
"value": "mv -f -- 'src/seed.txt' 'work/result0.txt' && cp -f -- 'work/result0.txt' 'work/result1.txt'"
} |
move 'src/seed.txt' to 'work/result0.txt', replacing an existing destination; then copy 'work/result0.txt' to 'work/result1.txt', replacing an existing destination; then set mode 0640 on 'work/result1.txt'. | {
"kind": "COMMAND",
"value": "mv -f -- 'src/seed.txt' 'work/result0.txt' && cp -f -- 'work/result0.txt' 'work/result1.txt' && chmod 0640 -- 'work/result1.txt'"
} |
move 'src/seed.txt' to 'work/result0.txt', replacing an existing destination; then copy 'work/result0.txt' to 'work/result1.txt', replacing an existing destination; then set mode 0660 on 'work/result1.txt'. | {
"kind": "COMMAND",
"value": "mv -f -- 'src/seed.txt' 'work/result0.txt' && cp -f -- 'work/result0.txt' 'work/result1.txt' && chmod 0660 -- 'work/result1.txt'"
} |
move 'src/seed.txt' to 'work/result0.txt', replacing an existing destination; then copy 'work/result0.txt' to 'work/result1.txt', replacing an existing destination; then set mode 0620 on 'work/result1.txt'. | {
"kind": "COMMAND",
"value": "mv -f -- 'src/seed.txt' 'work/result0.txt' && cp -f -- 'work/result0.txt' 'work/result1.txt' && chmod 0620 -- 'work/result1.txt'"
} |
move 'src/seed.txt' to 'work/result0.txt', replacing an existing destination; then copy 'work/result0.txt' to 'work/result1.txt', replacing an existing destination; then concatenate 'work/result1.txt', 'src/second.txt' into 'work/result2.txt', failing if the destination exists. | {
"kind": "COMMAND",
"value": "mv -f -- 'src/seed.txt' 'work/result0.txt' && cp -f -- 'work/result0.txt' 'work/result1.txt' && if test -e 'work/result2.txt' -o -L 'work/result2.txt'; then exit 1; else cat -- 'work/result1.txt' 'src/second.txt' > 'work/result2.txt'; fi"
} |
move 'src/seed.txt' to 'work/result0.txt', replacing an existing destination; then copy 'work/result0.txt' to 'work/result1.txt', replacing an existing destination; then copy 'work/result1.txt' to 'work/result2.txt', failing if the destination exists. | {
"kind": "COMMAND",
"value": "mv -f -- 'src/seed.txt' 'work/result0.txt' && cp -f -- 'work/result0.txt' 'work/result1.txt' && if test -e 'work/result2.txt' -o -L 'work/result2.txt'; then exit 1; else cp -- 'work/result1.txt' 'work/result2.txt'; fi"
} |
move 'src/seed.txt' to 'work/result0.txt', replacing an existing destination; then copy 'work/result0.txt' to 'work/result1.txt', replacing an existing destination; then copy 'work/result1.txt' to 'work/result2.txt', replacing an existing destination. | {
"kind": "COMMAND",
"value": "mv -f -- 'src/seed.txt' 'work/result0.txt' && cp -f -- 'work/result0.txt' 'work/result1.txt' && cp -f -- 'work/result1.txt' 'work/result2.txt'"
} |
move 'src/seed.txt' to 'work/result0.txt', replacing an existing destination; then copy 'work/result0.txt' to 'work/result1.txt', replacing an existing destination; then move 'work/result1.txt' to 'work/result2.txt', failing if the destination exists. | {
"kind": "COMMAND",
"value": "mv -f -- 'src/seed.txt' 'work/result0.txt' && cp -f -- 'work/result0.txt' 'work/result1.txt' && if test -e 'work/result2.txt' -o -L 'work/result2.txt'; then exit 1; else mv -- 'work/result1.txt' 'work/result2.txt'; fi"
} |
move 'src/seed.txt' to 'work/result0.txt', replacing an existing destination; then copy 'work/result0.txt' to 'work/result1.txt', replacing an existing destination; then move 'work/result1.txt' to 'work/result2.txt', replacing an existing destination. | {
"kind": "COMMAND",
"value": "mv -f -- 'src/seed.txt' 'work/result0.txt' && cp -f -- 'work/result0.txt' 'work/result1.txt' && mv -f -- 'work/result1.txt' 'work/result2.txt'"
} |
move 'src/seed.txt' to 'work/result0.txt', replacing an existing destination; then delete 'work/result0.txt' as an empty directory or file, failing if absent. | {
"kind": "COMMAND",
"value": "mv -f -- 'src/seed.txt' 'work/result0.txt' && if test ! -e 'work/result0.txt' -a ! -L 'work/result0.txt'; then exit 1; else rm -d -- 'work/result0.txt'; fi"
} |
move 'src/seed.txt' to 'work/result0.txt', replacing an existing destination; then delete 'work/result0.txt' as an empty directory or file, failing if absent; then create directory 'work/result0.txt' with mode 0710 without creating parents, failing if the directory already exists. | {
"kind": "COMMAND",
"value": "mv -f -- 'src/seed.txt' 'work/result0.txt' && if test ! -e 'work/result0.txt' -a ! -L 'work/result0.txt'; then exit 1; else rm -d -- 'work/result0.txt'; fi && if test -e 'work/result0.txt' -o -L 'work/result0.txt'; then exit 1; else mkdir -m 0710 -- 'work/result0.txt'; fi"
} |
move 'src/seed.txt' to 'work/result0.txt', replacing an existing destination; then delete 'work/result0.txt' as an empty directory or file, failing if absent; then create directory 'work/result0.txt' with mode 0720 without creating parents, failing if the directory already exists. | {
"kind": "COMMAND",
"value": "mv -f -- 'src/seed.txt' 'work/result0.txt' && if test ! -e 'work/result0.txt' -a ! -L 'work/result0.txt'; then exit 1; else rm -d -- 'work/result0.txt'; fi && if test -e 'work/result0.txt' -o -L 'work/result0.txt'; then exit 1; else mkdir -m 0720 -- 'work/result0.txt'; fi"
} |
move 'src/seed.txt' to 'work/result0.txt', replacing an existing destination; then delete 'work/result0.txt' as an empty directory or file, failing if absent; then create directory 'work/result0.txt' with mode 0730 without creating parents, failing if the directory already exists. | {
"kind": "COMMAND",
"value": "mv -f -- 'src/seed.txt' 'work/result0.txt' && if test ! -e 'work/result0.txt' -a ! -L 'work/result0.txt'; then exit 1; else rm -d -- 'work/result0.txt'; fi && if test -e 'work/result0.txt' -o -L 'work/result0.txt'; then exit 1; else mkdir -m 0730 -- 'work/result0.txt'; fi"
} |
move 'src/seed.txt' to 'work/result0.txt', replacing an existing destination; then delete 'work/result0.txt' as an empty directory or file, failing if absent; then create directory 'work/result0.txt' with mode 0740 without creating parents, failing if the directory already exists. | {
"kind": "COMMAND",
"value": "mv -f -- 'src/seed.txt' 'work/result0.txt' && if test ! -e 'work/result0.txt' -a ! -L 'work/result0.txt'; then exit 1; else rm -d -- 'work/result0.txt'; fi && if test -e 'work/result0.txt' -o -L 'work/result0.txt'; then exit 1; else mkdir -m 0740 -- 'work/result0.txt'; fi"
} |
move 'src/seed.txt' to 'work/result0.txt', replacing an existing destination; then delete 'work/result0.txt' as an empty directory or file, failing if absent; then create directory 'work/result0.txt' with mode 0710 creating missing parents, failing if the directory already exists. | {
"kind": "COMMAND",
"value": "mv -f -- 'src/seed.txt' 'work/result0.txt' && if test ! -e 'work/result0.txt' -a ! -L 'work/result0.txt'; then exit 1; else rm -d -- 'work/result0.txt'; fi && if test -e 'work/result0.txt' -o -L 'work/result0.txt'; then exit 1; else mkdir -p -m 0710 -- 'work/result0.txt'; fi"
} |
move 'src/seed.txt' to 'work/result0.txt', replacing an existing destination; then delete 'work/result0.txt' as an empty directory or file, failing if absent; then create directory 'work/result0.txt' with mode 0720 creating missing parents, failing if the directory already exists. | {
"kind": "COMMAND",
"value": "mv -f -- 'src/seed.txt' 'work/result0.txt' && if test ! -e 'work/result0.txt' -a ! -L 'work/result0.txt'; then exit 1; else rm -d -- 'work/result0.txt'; fi && if test -e 'work/result0.txt' -o -L 'work/result0.txt'; then exit 1; else mkdir -p -m 0720 -- 'work/result0.txt'; fi"
} |
move 'src/seed.txt' to 'work/result0.txt', replacing an existing destination; then delete 'work/result0.txt' as an empty directory or file, failing if absent; then create directory 'work/result0.txt' with mode 0730 creating missing parents, failing if the directory already exists. | {
"kind": "COMMAND",
"value": "mv -f -- 'src/seed.txt' 'work/result0.txt' && if test ! -e 'work/result0.txt' -a ! -L 'work/result0.txt'; then exit 1; else rm -d -- 'work/result0.txt'; fi && if test -e 'work/result0.txt' -o -L 'work/result0.txt'; then exit 1; else mkdir -p -m 0730 -- 'work/result0.txt'; fi"
} |
move 'src/seed.txt' to 'work/result0.txt', replacing an existing destination; then delete 'work/result0.txt' as an empty directory or file, failing if absent; then create directory 'work/result0.txt' with mode 0740 creating missing parents, failing if the directory already exists. | {
"kind": "COMMAND",
"value": "mv -f -- 'src/seed.txt' 'work/result0.txt' && if test ! -e 'work/result0.txt' -a ! -L 'work/result0.txt'; then exit 1; else rm -d -- 'work/result0.txt'; fi && if test -e 'work/result0.txt' -o -L 'work/result0.txt'; then exit 1; else mkdir -p -m 0740 -- 'work/result0.txt'; fi"
} |
move 'src/seed.txt' to 'work/result0.txt', replacing an existing destination; then move 'work/result0.txt' to 'work/result1.txt', failing if the destination exists. | {
"kind": "COMMAND",
"value": "mv -f -- 'src/seed.txt' 'work/result0.txt' && if test -e 'work/result1.txt' -o -L 'work/result1.txt'; then exit 1; else mv -- 'work/result0.txt' 'work/result1.txt'; fi"
} |
move 'src/seed.txt' to 'work/result0.txt', replacing an existing destination; then move 'work/result0.txt' to 'work/result1.txt', failing if the destination exists; then concatenate 'work/result1.txt', 'src/second.txt' into 'work/result2.txt', failing if the destination exists. | {
"kind": "COMMAND",
"value": "mv -f -- 'src/seed.txt' 'work/result0.txt' && if test -e 'work/result1.txt' -o -L 'work/result1.txt'; then exit 1; else mv -- 'work/result0.txt' 'work/result1.txt'; fi && if test -e 'work/result2.txt' -o -L 'work/result2.txt'; then exit 1; else cat -- 'work/result1.txt' 'src/second.tx... |
move 'src/seed.txt' to 'work/result0.txt', replacing an existing destination; then move 'work/result0.txt' to 'work/result1.txt', failing if the destination exists; then concatenate 'work/result1.txt', 'src/second.txt' into 'work/result2.txt', replacing an existing destination. | {
"kind": "COMMAND",
"value": "mv -f -- 'src/seed.txt' 'work/result0.txt' && if test -e 'work/result1.txt' -o -L 'work/result1.txt'; then exit 1; else mv -- 'work/result0.txt' 'work/result1.txt'; fi && cat -- 'work/result1.txt' 'src/second.txt' > 'work/result2.txt'"
} |
move 'src/seed.txt' to 'work/result0.txt', replacing an existing destination; then move 'work/result0.txt' to 'work/result1.txt', failing if the destination exists; then copy 'work/result1.txt' to 'work/result2.txt', failing if the destination exists. | {
"kind": "COMMAND",
"value": "mv -f -- 'src/seed.txt' 'work/result0.txt' && if test -e 'work/result1.txt' -o -L 'work/result1.txt'; then exit 1; else mv -- 'work/result0.txt' 'work/result1.txt'; fi && if test -e 'work/result2.txt' -o -L 'work/result2.txt'; then exit 1; else cp -- 'work/result1.txt' 'work/result2.t... |
move 'src/seed.txt' to 'work/result0.txt', replacing an existing destination; then move 'work/result0.txt' to 'work/result1.txt', failing if the destination exists; then copy 'work/result1.txt' to 'work/result2.txt', replacing an existing destination. | {
"kind": "COMMAND",
"value": "mv -f -- 'src/seed.txt' 'work/result0.txt' && if test -e 'work/result1.txt' -o -L 'work/result1.txt'; then exit 1; else mv -- 'work/result0.txt' 'work/result1.txt'; fi && cp -f -- 'work/result1.txt' 'work/result2.txt'"
} |
move 'src/seed.txt' to 'work/result0.txt', replacing an existing destination; then move 'work/result0.txt' to 'work/result1.txt', failing if the destination exists; then delete 'work/result1.txt' as an empty directory or file, failing if absent. | {
"kind": "COMMAND",
"value": "mv -f -- 'src/seed.txt' 'work/result0.txt' && if test -e 'work/result1.txt' -o -L 'work/result1.txt'; then exit 1; else mv -- 'work/result0.txt' 'work/result1.txt'; fi && if test ! -e 'work/result1.txt' -a ! -L 'work/result1.txt'; then exit 1; else rm -d -- 'work/result1.txt'; fi"
} |
move 'src/seed.txt' to 'work/result0.txt', replacing an existing destination; then move 'work/result0.txt' to 'work/result1.txt', failing if the destination exists; then move 'work/result1.txt' to 'work/result2.txt', failing if the destination exists. | {
"kind": "COMMAND",
"value": "mv -f -- 'src/seed.txt' 'work/result0.txt' && if test -e 'work/result1.txt' -o -L 'work/result1.txt'; then exit 1; else mv -- 'work/result0.txt' 'work/result1.txt'; fi && if test -e 'work/result2.txt' -o -L 'work/result2.txt'; then exit 1; else mv -- 'work/result1.txt' 'work/result2.t... |
move 'src/seed.txt' to 'work/result0.txt', replacing an existing destination; then move 'work/result0.txt' to 'work/result1.txt', failing if the destination exists; then move 'work/result1.txt' to 'work/result2.txt', replacing an existing destination. | {
"kind": "COMMAND",
"value": "mv -f -- 'src/seed.txt' 'work/result0.txt' && if test -e 'work/result1.txt' -o -L 'work/result1.txt'; then exit 1; else mv -- 'work/result0.txt' 'work/result1.txt'; fi && mv -f -- 'work/result1.txt' 'work/result2.txt'"
} |
move 'src/seed.txt' to 'work/result0.txt', replacing an existing destination; then move 'work/result0.txt' to 'work/result1.txt', replacing an existing destination. | {
"kind": "COMMAND",
"value": "mv -f -- 'src/seed.txt' 'work/result0.txt' && mv -f -- 'work/result0.txt' 'work/result1.txt'"
} |
move 'src/seed.txt' to 'work/result0.txt', replacing an existing destination; then move 'work/result0.txt' to 'work/result1.txt', replacing an existing destination; then set mode 0640 on 'work/result1.txt'. | {
"kind": "COMMAND",
"value": "mv -f -- 'src/seed.txt' 'work/result0.txt' && mv -f -- 'work/result0.txt' 'work/result1.txt' && chmod 0640 -- 'work/result1.txt'"
} |
move 'src/seed.txt' to 'work/result0.txt', replacing an existing destination; then move 'work/result0.txt' to 'work/result1.txt', replacing an existing destination; then set mode 0660 on 'work/result1.txt'. | {
"kind": "COMMAND",
"value": "mv -f -- 'src/seed.txt' 'work/result0.txt' && mv -f -- 'work/result0.txt' 'work/result1.txt' && chmod 0660 -- 'work/result1.txt'"
} |
move 'src/seed.txt' to 'work/result0.txt', replacing an existing destination; then move 'work/result0.txt' to 'work/result1.txt', replacing an existing destination; then set mode 0600 on 'work/result1.txt'. | {
"kind": "COMMAND",
"value": "mv -f -- 'src/seed.txt' 'work/result0.txt' && mv -f -- 'work/result0.txt' 'work/result1.txt' && chmod 0600 -- 'work/result1.txt'"
} |
move 'src/seed.txt' to 'work/result0.txt', replacing an existing destination; then move 'work/result0.txt' to 'work/result1.txt', replacing an existing destination; then set mode 0620 on 'work/result1.txt'. | {
"kind": "COMMAND",
"value": "mv -f -- 'src/seed.txt' 'work/result0.txt' && mv -f -- 'work/result0.txt' 'work/result1.txt' && chmod 0620 -- 'work/result1.txt'"
} |
move 'src/seed.txt' to 'work/result0.txt', replacing an existing destination; then move 'work/result0.txt' to 'work/result1.txt', replacing an existing destination; then concatenate 'work/result1.txt', 'src/second.txt' into 'work/result2.txt', failing if the destination exists. | {
"kind": "COMMAND",
"value": "mv -f -- 'src/seed.txt' 'work/result0.txt' && mv -f -- 'work/result0.txt' 'work/result1.txt' && if test -e 'work/result2.txt' -o -L 'work/result2.txt'; then exit 1; else cat -- 'work/result1.txt' 'src/second.txt' > 'work/result2.txt'; fi"
} |
move 'src/seed.txt' to 'work/result0.txt', replacing an existing destination; then move 'work/result0.txt' to 'work/result1.txt', replacing an existing destination; then concatenate 'work/result1.txt', 'src/second.txt' into 'work/result2.txt', replacing an existing destination. | {
"kind": "COMMAND",
"value": "mv -f -- 'src/seed.txt' 'work/result0.txt' && mv -f -- 'work/result0.txt' 'work/result1.txt' && cat -- 'work/result1.txt' 'src/second.txt' > 'work/result2.txt'"
} |
move 'src/seed.txt' to 'work/result0.txt', replacing an existing destination; then move 'work/result0.txt' to 'work/result1.txt', replacing an existing destination; then copy 'work/result1.txt' to 'work/result2.txt', failing if the destination exists. | {
"kind": "COMMAND",
"value": "mv -f -- 'src/seed.txt' 'work/result0.txt' && mv -f -- 'work/result0.txt' 'work/result1.txt' && if test -e 'work/result2.txt' -o -L 'work/result2.txt'; then exit 1; else cp -- 'work/result1.txt' 'work/result2.txt'; fi"
} |
move 'src/seed.txt' to 'work/result0.txt', replacing an existing destination; then move 'work/result0.txt' to 'work/result1.txt', replacing an existing destination; then copy 'work/result1.txt' to 'work/result2.txt', replacing an existing destination. | {
"kind": "COMMAND",
"value": "mv -f -- 'src/seed.txt' 'work/result0.txt' && mv -f -- 'work/result0.txt' 'work/result1.txt' && cp -f -- 'work/result1.txt' 'work/result2.txt'"
} |
move 'src/seed.txt' to 'work/result0.txt', replacing an existing destination; then move 'work/result0.txt' to 'work/result1.txt', replacing an existing destination; then delete 'work/result1.txt' as an empty directory or file, failing if absent. | {
"kind": "COMMAND",
"value": "mv -f -- 'src/seed.txt' 'work/result0.txt' && mv -f -- 'work/result0.txt' 'work/result1.txt' && if test ! -e 'work/result1.txt' -a ! -L 'work/result1.txt'; then exit 1; else rm -d -- 'work/result1.txt'; fi"
} |
move 'src/seed.txt' to 'work/result0.txt', replacing an existing destination; then move 'work/result0.txt' to 'work/result1.txt', replacing an existing destination; then move 'work/result1.txt' to 'work/result2.txt', failing if the destination exists. | {
"kind": "COMMAND",
"value": "mv -f -- 'src/seed.txt' 'work/result0.txt' && mv -f -- 'work/result0.txt' 'work/result1.txt' && if test -e 'work/result2.txt' -o -L 'work/result2.txt'; then exit 1; else mv -- 'work/result1.txt' 'work/result2.txt'; fi"
} |
move 'src/seed.txt' to 'work/result0.txt', replacing an existing destination; then move 'work/result0.txt' to 'work/result1.txt', replacing an existing destination; then move 'work/result1.txt' to 'work/result2.txt', replacing an existing destination. | {
"kind": "COMMAND",
"value": "mv -f -- 'src/seed.txt' 'work/result0.txt' && mv -f -- 'work/result0.txt' 'work/result1.txt' && mv -f -- 'work/result1.txt' 'work/result2.txt'"
} |
Split each record in `data/records.csv` on comma and print field 1. | {
"kind": "COMMAND",
"value": "awk -F , '{print $1}' data/records.csv"
} |
Split each record in `data/records.csv` on comma and print field 2. | {
"kind": "COMMAND",
"value": "awk -F , '{print $2}' data/records.csv"
} |
Split each record in `data/records.csv` on comma and print field 3. | {
"kind": "COMMAND",
"value": "awk -F , '{print $3}' data/records.csv"
} |
Split each record in `data/records.csv` on comma and print field 4. | {
"kind": "COMMAND",
"value": "awk -F , '{print $4}' data/records.csv"
} |
Split each record in `data/records.csv` on comma; print fields 1 and 3 separated by '|'. | {
"kind": "COMMAND",
"value": "awk -F , 'BEGIN{OFS=\"|\"} {print $1,$3}' data/records.csv"
} |
Split each record in `data/records.csv` on comma; print fields 1 and 3 separated by ' / '. | {
"kind": "COMMAND",
"value": "awk -F , 'BEGIN{OFS=\" / \"} {print $1,$3}' data/records.csv"
} |
Split each record in `data/records.csv` on comma; print fields 1 and 3 separated by '_'. | {
"kind": "COMMAND",
"value": "awk -F , 'BEGIN{OFS=\"_\"} {print $1,$3}' data/records.csv"
} |
Split each record in `data/scores.tsv` on tab and print its field count. | {
"kind": "COMMAND",
"value": "awk -F '\\t' '{print NF}' data/scores.tsv"
} |
Split each record in `data/words.txt` on whitespace and print its field count. | {
"kind": "COMMAND",
"value": "awk -F ' ' '{print NF}' data/words.txt"
} |
Split each record in `data/records.csv` on comma and print its field count. | {
"kind": "COMMAND",
"value": "awk -F , '{print NF}' data/records.csv"
} |
Split each record in `data/records.csv` on comma and print its last field. | {
"kind": "COMMAND",
"value": "awk -F , '{print $NF}' data/records.csv"
} |
Read `data/records.csv` using comma-separated fields and prefix every record with its one-based record number. | {
"kind": "COMMAND",
"value": "awk -F , '{printf \"%d:%s\\n\", NR, $0}' data/records.csv"
} |
Read `data/records.csv` using comma-separated fields and print only even-numbered records. | {
"kind": "COMMAND",
"value": "awk -F , 'NR%2==0 {print}' data/records.csv"
} |
Read `data/records.csv` using comma-separated fields and print only the first record. | {
"kind": "COMMAND",
"value": "awk -F , NR==1 data/records.csv"
} |
Read `data/records.csv` using comma-separated fields and print the total record count. | {
"kind": "COMMAND",
"value": "awk -F , 'END{print NR}' data/records.csv"
} |
Read `data/records.csv` using comma-separated fields and skip blank records. | {
"kind": "COMMAND",
"value": "awk -F , 'NF>0' data/records.csv"
} |
Read `data/records.csv` using comma-separated fields and skip records beginning with #. | {
"kind": "COMMAND",
"value": "awk -F , '/^#/ {next} {print}' data/records.csv"
} |
Read `data/words.txt` using whitespace-separated fields and print only even-numbered records. | {
"kind": "COMMAND",
"value": "awk -F ' ' 'NR%2==0 {print}' data/words.txt"
} |
Rebuild every `data/records.csv` record with '|' between its comma fields. | {
"kind": "COMMAND",
"value": "awk -F , 'BEGIN{OFS=\"|\"} {$1=$1; print}' data/records.csv"
} |
Rebuild every `data/records.csv` record with ' / ' between its comma fields. | {
"kind": "COMMAND",
"value": "awk -F , 'BEGIN{OFS=\" / \"} {$1=$1; print}' data/records.csv"
} |
Rebuild every `data/records.csv` record with '_' between its comma fields. | {
"kind": "COMMAND",
"value": "awk -F , 'BEGIN{OFS=\"_\"} {$1=$1; print}' data/records.csv"
} |
From `data/records.csv`, print fields 1 and 3 joined with ' '. | {
"kind": "COMMAND",
"value": "awk -F , 'BEGIN{OFS=\" \"} {print $1,$3}' data/records.csv"
} |
Treat blank lines as record separators in `data/paragraphs.txt` and print the paragraph count. | {
"kind": "COMMAND",
"value": "awk 'BEGIN{RS=\"\"} END{print NR}' data/paragraphs.txt"
} |
Print records from `data/records.csv` whose third field is at least 10. | {
"kind": "COMMAND",
"value": "awk -F , '$3+0 >= 10 {print}' data/records.csv"
} |
Print records from `data/records.csv` whose third field is at least 15. | {
"kind": "COMMAND",
"value": "awk -F , '$3+0 >= 15 {print}' data/records.csv"
} |
Print records from `data/records.csv` from the record containing 'bob' through the record containing 'dan'. | {
"kind": "COMMAND",
"value": "awk -F , '/bob/,/dan/ {print}' data/records.csv"
} |
Print records from `data/records.csv` whose record number is divisible by 3. | {
"kind": "COMMAND",
"value": "awk -F , 'NR%3==0 {print}' data/records.csv"
} |
Print records from `data/records.csv` with exactly 4 fields. | {
"kind": "COMMAND",
"value": "awk -F , 'NF==4 {print}' data/records.csv"
} |
Use BEGIN and END while reading `data/records.csv` to sum the third fields. | {
"kind": "COMMAND",
"value": "awk -F , 'BEGIN{s=0} {s+=$3} END{print s}' data/records.csv"
} |
Use BEGIN and END while reading `data/records.csv` to print TOTAL followed by the sum of the third fields. | {
"kind": "COMMAND",
"value": "awk -F , 'BEGIN{print \"TOTAL\"} {s+=$3} END{print s}' data/records.csv"
} |
Use BEGIN and END while reading `data/records.csv` to count records whose status field is active. | {
"kind": "COMMAND",
"value": "awk -F , '{if($4==\"active\") n++} END{print n+0}' data/records.csv"
} |
Use BEGIN and END while reading `data/records.csv` to sum the third fields and prefix the result with 'TOTAL='. | {
"kind": "COMMAND",
"value": "awk -F , 'BEGIN{s=0} {s+=$3} END{print \"TOTAL=\" s}' data/records.csv"
} |
For each `data/records.csv` record, print the one-based position of the first match of 'eng'. | {
"kind": "COMMAND",
"value": "awk -F , '{print match($0,/eng/)}' data/records.csv"
} |
For each `data/records.csv` record, print the one-based position of the first match of '[0-9]+'. | {
"kind": "COMMAND",
"value": "awk -F , '{print match($0,/[0-9]+/)}' data/records.csv"
} |
For each `data/records.csv` record, print the length of the first match of '[a-z]+'. | {
"kind": "COMMAND",
"value": "awk -F , '{if(match($0,/[a-z]+/)) print RLENGTH; else print 0}' data/records.csv"
} |
For each `data/records.csv` record, replace the first 'active' with 'ready'. | {
"kind": "COMMAND",
"value": "awk -F , '{s=$0; sub(/active/,\"ready\",s); print s}' data/records.csv"
} |
For each `data/records.csv` record, replace every 'e' with 'E'. | {
"kind": "COMMAND",
"value": "awk -F , '{s=$0; gsub(/e/,\"E\",s); print s}' data/records.csv"
} |
For each `data/records.csv` record, count fields after splitting on ','. | {
"kind": "COMMAND",
"value": "awk -F , '{n=split($0,a,/,/); print n}' data/records.csv"
} |
For each `data/records.csv` record, count fields after splitting on '[aeiou]'. | {
"kind": "COMMAND",
"value": "awk -F , '{n=split($0,a,/[aeiou]/); print n}' data/records.csv"
} |
Use an awk associative array on `data/records.csv` to count rows grouped by field 2. | {
"kind": "COMMAND",
"value": "awk -F , '{if(!seen[$2]++){order[++n]=$2} count[$2]++} END{for(i=1;i<=n;i++) print order[i],count[order[i]]}' data/records.csv"
} |
Use an awk associative array on `data/records.csv` to print each group key once grouped by field 2. | {
"kind": "COMMAND",
"value": "awk -F , '{if(!seen[$2]){seen[$2]=1; order[++n]=$2}} END{for(i=1;i<=n;i++) print order[i]}' data/records.csv"
} |
Use an awk associative array on `data/records.csv` to count rows grouped by field 4. | {
"kind": "COMMAND",
"value": "awk -F , '{if(!seen[$4]++){order[++n]=$4} count[$4]++} END{for(i=1;i<=n;i++) print order[i],count[order[i]]}' data/records.csv"
} |
Define an awk function and use it while reading `data/records.csv` to clamp each third field to the range 5..15. | {
"kind": "COMMAND",
"value": "awk -F , 'function clamp(x,a,b){return x<a?a:(x>b?b:x)} {print clamp($3,5,15)}' data/records.csv"
} |
Define an awk function and use it while reading `data/records.csv` to clamp each third field to the range 0..10. | {
"kind": "COMMAND",
"value": "awk -F , 'function clamp(x,a,b){return x<a?a:(x>b?b:x)} {print clamp($3,0,10)}' data/records.csv"
} |
Define an awk function and use it while reading `data/records.csv` to uppercase the first field and join it to the second with a colon. | {
"kind": "COMMAND",
"value": "awk -F , 'function label(a,b){return toupper(a) \":\" b} {print label($1,$2)}' data/records.csv"
} |
Define an awk function and use it while reading `data/records.csv` to print the absolute value of each third field. | {
"kind": "COMMAND",
"value": "awk -F , 'function absolute(x){return x<0?-x:x} {print absolute($3)}' data/records.csv"
} |
Use awk conditional control flow on `data/records.csv` to print names of active rows. | {
"kind": "COMMAND",
"value": "awk -F , '$4==\"active\"{print $1}' data/records.csv"
} |
Use awk for-loop control flow on `data/records.csv` to print each of the first three fields with its index. | {
"kind": "COMMAND",
"value": "awk -F , '{for(i=1;i<=NF && i<=3;i++) printf \"%s:%s\\n\",$i,i}' data/records.csv"
} |
Use awk next-statement control flow on `data/records.csv` to use next to skip rows whose numeric third field is not positive. | {
"kind": "COMMAND",
"value": "awk -F , '$3+0<=0{next} {print}' data/records.csv"
} |
Use awk printf on `data/records.csv` to print a fixed-width name, department, and score table. | {
"kind": "COMMAND",
"value": "awk -F , '{printf \"%-5s %-7s %4d\\n\",$1,$2,$3}' data/records.csv"
} |
Use awk printf on `data/records.csv` to print each score divided by 3 with two decimals. | {
"kind": "COMMAND",
"value": "awk -F , '{printf \"%.2f\\n\",$3/3}' data/records.csv"
} |
Use awk printf on `data/records.csv` to format each row as [name]={department}. | {
"kind": "COMMAND",
"value": "awk -F , '{printf \"[%s]={%s}\\n\",$1,$2}' data/records.csv"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.