Instruction
stringlengths
13
387
Response
stringlengths
1
532
Text
stringlengths
158
1.06k
Continuously answer "y" to any prompt from "mv ..."
yes | mv ...
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Continuously answer "y" to any prompt from "mv ..." ### Response: yes | mv ...
Continuously convert "20131202" into "2013 12 02" and print the result
yes a=\"20131202\" | sed -e :a -e 's/...\([0-9]\{4\}\)\([0-9]\{2\}\)\([0-9]\{2\}\)./\1 \2 \3/'
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Continuously convert "20131202" into "2013 12 02" and print the result ### Response: yes a=\"20131202\" | sed -e :a -e 's/...\([0-9]\{4\}\)\([0-9]\{2\}\)\([0-9]\{2\}\)./\1 \2 \3/'
Continuously print the seconds since Unix epoch and the ping time to "google.com"
ping google.com | awk -F'[ =]' 'NR>1{print system("echo -n $(date +%s)"), $11}'
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Continuously print the seconds since Unix epoch and the ping time to "google.com" ### Response: ping google.com | awk -F'[ =]' 'NR>1{print system("echo -n $(date +%s)"), $11}'
Continuously send "y" as input to "cat" which outputs to "more"
yes | cat | more
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Continuously send "y" as input to "cat" which outputs to "more" ### Response: yes | cat | more
Continuously send "y" to all prompts of command "rm"
yes | rm
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Continuously send "y" to all prompts of command "rm" ### Response: yes | rm
Continuously send ping requests to broadcast address "10.10.0.255" and print the IP addresses who respond
ping -b 10.10.0.255 | grep 'bytes from' | awk '{ print $4 }'
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Continuously send ping requests to broadcast address "10.10.0.255" and print the IP addresses who respond ### Response: ping -b 10.10.0.255 | grep 'bytes from' | awk '{ print $4 }'
Convert "1199092913" to dotted decimal IPv4 address
ping -c1 1199092913 | head -n1 | grep -Eow "[0-9]+[.][0-9]+[.][0-9]+[.][0-9]+"
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Convert "1199092913" to dotted decimal IPv4 address ### Response: ping -c1 1199092913 | head -n1 | grep -Eow "[0-9]+[.][0-9]+[.][0-9]+[.][0-9]+"
Convert "595a" into characters and then print the hexadecimal and printable characters of each byte
echo 595a | awk -niord '$0=chr("0x"RT)' RS=.. ORS= | od -tx1c
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Convert "595a" into characters and then print the hexadecimal and printable characters of each byte ### Response: echo 595a | awk -niord '$0=chr("0x"RT)' RS=.. ORS= | od -tx1c
Convert ";" separated list "luke;yoda;leila" to new line separated list
echo "luke;yoda;leila" | tr ";" "\n"
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Convert ";" separated list "luke;yoda;leila" to new line separated list ### Response: echo "luke;yoda;leila" | tr ";" "\n"
Convert "abc" to a string of hexadecimal bytes
echo abc | od -A n -v -t x1 | tr -d ' \n'
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Convert "abc" to a string of hexadecimal bytes ### Response: echo abc | od -A n -v -t x1 | tr -d ' \n'
Convert *.au files to *.wav files using `sox'
find -type f -name '*.au' | awk '{printf "sox %s %s\n",$0,$0".wav" }' | bash
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Convert *.au files to *.wav files using `sox' ### Response: find -type f -name '*.au' | awk '{printf "sox %s %s\n",$0,$0".wav" }' | bash
Convert Unix `cal` output to latex table code.
cal -h 02 2012| cut -c4-17 | sed -r 's/(..)\s/\0\t\&/g' | sed 's/$/\t\\\\/' | head -n-1 | tail -n +2
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Convert Unix `cal` output to latex table code. ### Response: cal -h 02 2012| cut -c4-17 | sed -r 's/(..)\s/\0\t\&/g' | sed 's/$/\t\\\\/' | head -n-1 | tail -n +2
Convert Unix `cal` output to latex table code.
cal | sed '1d;2{h;s/./ /g;x};/^\s*$/b;G;s/\n/ /;s/^...\(.\{15\}\).*/\1/;s/.../ &\t\&/g;s/\&$/\\\\/'
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Convert Unix `cal` output to latex table code. ### Response: cal | sed '1d;2{h;s/./ /g;x};/^\s*$/b;G;s/\n/ /;s/^...\(.\{15\}\).*/\1/;s/.../ &\t\&/g;s/\&$/\\\\/'
Convert all characters in "$a" to lower case and save to variable "b"
b=`echo "$a" | sed 's/./\L&/g'`
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Convert all characters in "$a" to lower case and save to variable "b" ### Response: b=`echo "$a" | sed 's/./\L&/g'`
Convert all characters in "$a" to upper case and save to variable "b"
b=`echo "$a" | sed 's/./\U&/g'`
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Convert all characters in "$a" to upper case and save to variable "b" ### Response: b=`echo "$a" | sed 's/./\U&/g'`
Convert all characters in standard input to lower case
sed 's/.*/\L&/'
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Convert all characters in standard input to lower case ### Response: sed 's/.*/\L&/'
Convert relative path "/x/y/../../a/b/z/../c/d" into absolute path with resolved symbolic links
readlink -f /x/y/../../a/b/z/../c/d
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Convert relative path "/x/y/../../a/b/z/../c/d" into absolute path with resolved symbolic links ### Response: readlink -f /x/y/../../a/b/z/../c/d
Convert relative symbolic link "$link" to absolute symbolic link
ln -sf "$(readlink -f "$link")" "$link"
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Convert relative symbolic link "$link" to absolute symbolic link ### Response: ln -sf "$(readlink -f "$link")" "$link"
Convert standard input into a dump of octal bytes without the first 8 bytes of address and count the unique results
od | cut -b 8- | xargs -n 1 | sort | uniq | wc -l
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Convert standard input into a dump of octal bytes without the first 8 bytes of address and count the unique results ### Response: od | cut -b 8- | xargs -n 1 | sort | uniq | wc -l
Convert the content of variable 'CLEAN' to small letters
CLEAN=`echo -n $CLEAN | tr A-Z a-z`
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Convert the content of variable 'CLEAN' to small letters ### Response: CLEAN=`echo -n $CLEAN | tr A-Z a-z`
Convert the contents of 'var1' variable to lowercase
var1=`echo $var1 | tr '[A-Z]' '[a-z]'`
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Convert the contents of 'var1' variable to lowercase ### Response: var1=`echo $var1 | tr '[A-Z]' '[a-z]'`
Convert the first 16 characters in "/dev/random" to a single hexadecimal value
head /dev/random -c16 | od -tx1 -w16 | head -n1 | cut -d' ' -f2- | tr -d ' '
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Convert the first 16 characters in "/dev/random" to a single hexadecimal value ### Response: head /dev/random -c16 | od -tx1 -w16 | head -n1 | cut -d' ' -f2- | tr -d ' '
Converts all windows line endings to unix line endings
find $(pwd) -type f | xargs -I xxx sed -i 's/\r//g' xxx
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Converts all windows line endings to unix line endings ### Response: find $(pwd) -type f | xargs -I xxx sed -i 's/\r//g' xxx
Copies ""$project_dir"/iTunesArtwork", to the 'Payload/iTunesArtwork', rewriting files if necessary.
cp -f "$project_dir"/iTunesArtwork Payload/iTunesArtwork
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Copies ""$project_dir"/iTunesArtwork", to the 'Payload/iTunesArtwork', rewriting files if necessary. ### Response: cp -f "$project_dir"/iTunesArtwork Payload/iTunesArtwork
Copies ${FILE} to COLLECT folder with unique name formatted like 'job_XXXXXXXXX'.
cp "${FILE}" "COLLECT/$(mktemp job_XXXXXXXXX)"
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Copies ${FILE} to COLLECT folder with unique name formatted like 'job_XXXXXXXXX'. ### Response: cp "${FILE}" "COLLECT/$(mktemp job_XXXXXXXXX)"
Copies '[MacVim_source_folder]/src/MacVim/mvim' to the '/usr/local/bin', printing info message on each operation.
cp -v [MacVim_source_folder]/src/MacVim/mvim /usr/local/bin
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Copies '[MacVim_source_folder]/src/MacVim/mvim' to the '/usr/local/bin', printing info message on each operation. ### Response: cp -v [MacVim_source_folder]/src/MacVim/mvim /usr/local/bin
Copies 'libgtest_main.so' and 'libgtest.so' to '/usr/lib/', preserving all attributes, and copying symlinks as symlinks, without following in source files.
sudo cp -a libgtest_main.so libgtest.so /usr/lib/
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Copies 'libgtest_main.so' and 'libgtest.so' to '/usr/lib/', preserving all attributes, and copying symlinks as symlinks, without following in source files. ### Response: sudo cp -a libgtest_main.so libgtest.so /usr/lib/
Copies 'src' to 'dest' preserving overwriting the existing files.
cp -n src dest
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Copies 'src' to 'dest' preserving overwriting the existing files. ### Response: cp -n src dest
Copies all files like "*FooBar*" under the current directory to the '~/foo/bar' directory.
find . -name '*FoooBar*' | sed 's/.*/"&"/' | xargs cp ~/foo/bar
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Copies all files like "*FooBar*" under the current directory to the '~/foo/bar' directory. ### Response: find . -name '*FoooBar*' | sed 's/.*/"&"/' | xargs cp ~/foo/bar
Copies all files like "*FooBar*" under the current directory to the '~/foobar' directory.
find . -name '*FooBar*' -exec cp -t ~/foobar -- {} +
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Copies all files like "*FooBar*" under the current directory to the '~/foobar' directory. ### Response: find . -name '*FooBar*' -exec cp -t ~/foobar -- {} +
Copies all files like "*foo*" under the current directory to the '/your/dest' directory.
find . -name "*foo*" | sed -e "s/'/\\\'/g" -e 's/"/\\"/g' -e 's/ /\\ /g' | xargs cp /your/dest
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Copies all files like "*foo*" under the current directory to the '/your/dest' directory. ### Response: find . -name "*foo*" | sed -e "s/'/\\\'/g" -e 's/"/\\"/g' -e 's/ /\\ /g' | xargs cp /your/dest
Copies all files like '*.txt' under the current directory to the './tmp/' directory.
find . -type f -name '*.txt' | sed 's/'"'"'/\'"'"'/g' | sed 's/.*/"&"/' | xargs -I{} cp -v {} ./tmp/
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Copies all files like '*.txt' under the current directory to the './tmp/' directory. ### Response: find . -type f -name '*.txt' | sed 's/'"'"'/\'"'"'/g' | sed 's/.*/"&"/' | xargs -I{} cp -v {} ./tmp/
Copies all files like 'lib*.so' to '~/usr/gtest/lib/' directory.
cp lib*.so ~/usr/gtest/lib
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Copies all files like 'lib*.so' to '~/usr/gtest/lib/' directory. ### Response: cp lib*.so ~/usr/gtest/lib
Copies all files under current directory like '*FooBar*' to the '~/foo/bar' directory.
find -name '*FooBar*' -print0 | xargs -0 cp -t ~/foo/bar
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Copies all files under current directory like '*FooBar*' to the '~/foo/bar' directory. ### Response: find -name '*FooBar*' -print0 | xargs -0 cp -t ~/foo/bar
Copies all files under the current directory but ones with '*/not-from-here/*' in path to the '/dest/' directory.
find . -type f -not -iname '*/not-from-here/*' -exec cp '{}' '/dest/{}' ';'
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Copies all files under the current directory but ones with '*/not-from-here/*' in path to the '/dest/' directory. ### Response: find . -type f -not -iname '*/not-from-here/*' -exec cp '{}' '/dest/{}' ';'
Copies all files under the current directory like any-cased '*foobar*' to the '~/foo/bar' directory.
find . -iname "*foobar*" -exec cp "{}" ~/foo/bar \;
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Copies all files under the current directory like any-cased '*foobar*' to the '~/foo/bar' directory. ### Response: find . -iname "*foobar*" -exec cp "{}" ~/foo/bar \;
Copies all files under the current folder like "file.ext" with "FooBar" in the path to the root of the current folder, preserving mode, ownership and timestamp attributes.
find . -name "file.ext"| grep "FooBar" | xargs -i cp -p "{}" .
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Copies all files under the current folder like "file.ext" with "FooBar" in the path to the root of the current folder, preserving mode, ownership and timestamp attributes. ### Response: find . -name "file.ext"| grep "FooBar" | xargs -i cp -p "{}" .
Copies all files with "FooBar" in the path under the current directory to the '~/foo/bar' directory.
find . | grep FooBar | xargs -I{} cp {} ~/foo/bar
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Copies all files with "FooBar" in the path under the current directory to the '~/foo/bar' directory. ### Response: find . | grep FooBar | xargs -I{} cp {} ~/foo/bar
Copies defined file to the target folder without overwriting existing files.
cp -n
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Copies defined file to the target folder without overwriting existing files. ### Response: cp -n
Copies file '/boot/config-`uname -r`' to the '.config', printing info message and prompting before owerwriting files.
cp -vi /boot/config-`uname -r` .config
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Copies file '/boot/config-`uname -r`' to the '.config', printing info message and prompting before owerwriting files. ### Response: cp -vi /boot/config-`uname -r` .config
Copies file 'file.dat' to each top-level directory in the current directory.
ls | xargs -n 1 cp -i file.dat
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Copies file 'file.dat' to each top-level directory in the current directory. ### Response: ls | xargs -n 1 cp -i file.dat
Copies file 'file.txt' to each top-level directory in the current directory.
ls -d */ | xargs -iA cp file.txt A
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Copies file 'file.txt' to each top-level directory in the current directory. ### Response: ls -d */ | xargs -iA cp file.txt A
Copies file 'file1' to each of directories 'dir1', 'dir2', 'dir3'.
echo dir1 dir2 dir3 | xargs -n 1 cp file1
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Copies file 'file1' to each of directories 'dir1', 'dir2', 'dir3'. ### Response: echo dir1 dir2 dir3 | xargs -n 1 cp file1
Copies file 'fileName.txt' to each of directories listed in the 'allFolders.txt' list.
cat allFolders.txt | xargs -n 1 cp fileName.txt
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Copies file 'fileName.txt' to each of directories listed in the 'allFolders.txt' list. ### Response: cat allFolders.txt | xargs -n 1 cp fileName.txt
Copies file 'index.html' to each top-level directory in the current directory beginning with 'd'.
find . -mindepth 1 -maxdepth 1 -type d| grep \/a |xargs -n 1 cp -i index.html
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Copies file 'index.html' to each top-level directory in the current directory beginning with 'd'. ### Response: find . -mindepth 1 -maxdepth 1 -type d| grep \/a |xargs -n 1 cp -i index.html
Copies file 'index.html' to each top-level directory in the current directory.
find . -mindepth 1 -maxdepth 1 -type d| xargs -n 1 cp -i index.html
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Copies file 'index.html' to each top-level directory in the current directory. ### Response: find . -mindepth 1 -maxdepth 1 -type d| xargs -n 1 cp -i index.html
Copies file 'test' to each of directories like './fs*/*'.
echo ./fs*/* | xargs -n 1 cp test
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Copies file 'test' to each of directories like './fs*/*'. ### Response: echo ./fs*/* | xargs -n 1 cp test
Copies files 'src/prog.js' and 'images/icon.jpg' with fully-defined path to '/tmp/package' directory.
cp --parents src/prog.js images/icon.jpg /tmp/package
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Copies files 'src/prog.js' and 'images/icon.jpg' with fully-defined path to '/tmp/package' directory. ### Response: cp --parents src/prog.js images/icon.jpg /tmp/package
Copies newest file under the current folder to the '/tmp/'
cp $(ls -1tr * | tail -1) /tmp/
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Copies newest file under the current folder to the '/tmp/' ### Response: cp $(ls -1tr * | tail -1) /tmp/
Copy "*.cc", "*.h", and "SConstruct" to "rsync://localhost:40001/bledge_ce" using blocking IO
rsync --blocking-io *.cc *.h SConstruct rsync://localhost:40001/bledge_ce
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Copy "*.cc", "*.h", and "SConstruct" to "rsync://localhost:40001/bledge_ce" using blocking IO ### Response: rsync --blocking-io *.cc *.h SConstruct rsync://localhost:40001/bledge_ce
Copy "./export" recursively to "/path/to/webroot" preserving permissions
rsync -pr ./export /path/to/webroot
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Copy "./export" recursively to "/path/to/webroot" preserving permissions ### Response: rsync -pr ./export /path/to/webroot
Copy "/Users/username/path/on/machine/" to "username@server.ip.address.here:/home/username/path/on/server/" and convert encoding from UTF-8-MAC to UTF-8
rsync --iconv=UTF-8-MAC,UTF-8 /Users/username/path/on/machine/ 'username@server.ip.address.here:/home/username/path/on/server/'
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Copy "/Users/username/path/on/machine/" to "username@server.ip.address.here:/home/username/path/on/server/" and convert encoding from UTF-8-MAC to UTF-8 ### Response: rsync --iconv=UTF-8-MAC,UTF-8 /Users/username/path/on/machine/ 'username@server.ip.address.here:/home/username/path/on/server/'
Copy "/home/username/path/on/server/" to "username@your.ip.address.here:/Users/username/path/on/machine/" and convert encoding from UTF-8 to UTF-8-MAC
rsync --iconv=UTF-8,UTF-8-MAC /home/username/path/on/server/ 'username@your.ip.address.here:/Users/username/path/on/machine/'
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Copy "/home/username/path/on/server/" to "username@your.ip.address.here:/Users/username/path/on/machine/" and convert encoding from UTF-8 to UTF-8-MAC ### Response: rsync --iconv=UTF-8,UTF-8-MAC /home/username/path/on/server/ 'username@your.ip.address.here:/Users/username/path/on/machine/'
Copy "/new/x/y/z/" over the network to "user@remote:/pre_existing/dir/" preserving the directory hierarchy
rsync -a --relative /new/x/y/z/ user@remote:/pre_existing/dir/
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Copy "/new/x/y/z/" over the network to "user@remote:/pre_existing/dir/" preserving the directory hierarchy ### Response: rsync -a --relative /new/x/y/z/ user@remote:/pre_existing/dir/
Copy "/path/to/source" to '/path/to/dest' in remote "username@computer"
rsync -r /path/to/source username@computer:/path/to/dest
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Copy "/path/to/source" to '/path/to/dest' in remote "username@computer" ### Response: rsync -r /path/to/source username@computer:/path/to/dest
Copy "6.3.3/6.3.3/macosx/bin/mybinary" to "~/work/binaries/macosx/6.3.3/" and create directory "~/work/binaries/macosx/6.3.3/" if "~/work/binaries/macosx/" exists
rsync 6.3.3/6.3.3/macosx/bin/mybinary ~/work/binaries/macosx/6.3.3/
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Copy "6.3.3/6.3.3/macosx/bin/mybinary" to "~/work/binaries/macosx/6.3.3/" and create directory "~/work/binaries/macosx/6.3.3/" if "~/work/binaries/macosx/" exists ### Response: rsync 6.3.3/6.3.3/macosx/bin/mybinary ~/work/binaries/macosx/6.3.3/
Copy "fileName.txt" to all directories listed in "allFolders.txt" - names may not contain spaces.
cat allFolders.txt | xargs -n 1 cp fileName.txt
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Copy "fileName.txt" to all directories listed in "allFolders.txt" - names may not contain spaces. ### Response: cat allFolders.txt | xargs -n 1 cp fileName.txt
Copy "some_file_name" to "destination_directory" and change ownership to "someuser:somegroup"
echo 'some_file_name' | cpio -p --owner someuser:somegroup destination_directory
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Copy "some_file_name" to "destination_directory" and change ownership to "someuser:somegroup" ### Response: echo 'some_file_name' | cpio -p --owner someuser:somegroup destination_directory
Copy "source" recursively to "destination" excluding "path1/to/exclude" and "path2/to/exclude"
rsync -av --exclude='path1/to/exclude' --exclude='path2/to/exclude' source destination
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Copy "source" recursively to "destination" excluding "path1/to/exclude" and "path2/to/exclude" ### Response: rsync -av --exclude='path1/to/exclude' --exclude='path2/to/exclude' source destination
Copy "src" to "dest" if "src" is newer than "dest"
rsync -u src dest
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Copy "src" to "dest" if "src" is newer than "dest" ### Response: rsync -u src dest
Copy "src/prog.js" and "images/icon.jpg" to "/tmp/package" keeping relative path names
rsync -R src/prog.js images/icon.jpg /tmp/package
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Copy "src/prog.js" and "images/icon.jpg" to "/tmp/package" keeping relative path names ### Response: rsync -R src/prog.js images/icon.jpg /tmp/package
Copy "src/prog.js" and "images/icon.jpg" to "/tmp/package/" keeping relative path names
rsync -Rv src/prog.js images/icon.jpg /tmp/package/
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Copy "src/prog.js" and "images/icon.jpg" to "/tmp/package/" keeping relative path names ### Response: rsync -Rv src/prog.js images/icon.jpg /tmp/package/
Copy '/path/to/source' from remote "username@computer" to local "/path/to/dest"
rsync -r username@computer:/path/to/source /path/to/dest
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Copy '/path/to/source' from remote "username@computer" to local "/path/to/dest" ### Response: rsync -r username@computer:/path/to/source /path/to/dest
Copy *.mp3 files to /tmp/MusicFiles
find . -type f -name "*.mp3" -exec cp {} /tmp/MusicFiles \;
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Copy *.mp3 files to /tmp/MusicFiles ### Response: find . -type f -name "*.mp3" -exec cp {} /tmp/MusicFiles \;
Copy *.txt files from the dir/ directory tree along with their parent directories
find dir/ -name '*.txt' | xargs cp -a --target-directory=dir_txt/ --parents
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Copy *.txt files from the dir/ directory tree along with their parent directories ### Response: find dir/ -name '*.txt' | xargs cp -a --target-directory=dir_txt/ --parents
Copy /my/configfile to all empty directories of the $somedir directory tree
find "$somedir" -type d -empty -exec cp /my/configfile {} \;
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Copy /my/configfile to all empty directories of the $somedir directory tree ### Response: find "$somedir" -type d -empty -exec cp /my/configfile {} \;
Copy a comlex directory tree from one machine o another while preserving copy permissions and ownership
find . -depth -print | cpio -o -O /target/directory
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Copy a comlex directory tree from one machine o another while preserving copy permissions and ownership ### Response: find . -depth -print | cpio -o -O /target/directory
Copy a file xyz.c to all directories or over all files matching the letter 'c' at the end of their names under current directory tree
find . -name "*c" -print0 | xargs -0 -n1 cp xyz.c
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Copy a file xyz.c to all directories or over all files matching the letter 'c' at the end of their names under current directory tree ### Response: find . -name "*c" -print0 | xargs -0 -n1 cp xyz.c
Copy a file xyz.c to all the .c files present in the C directory and below
find ./C -name "*.c" | xargs -n1 cp xyz.c
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Copy a file xyz.c to all the .c files present in the C directory and below ### Response: find ./C -name "*.c" | xargs -n1 cp xyz.c
Copy a file xyz.c to all the directories below the current one whose names begin with "temp"
find . -type d -name "temp*" | xargs -n1 cp xyz.c
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Copy a file xyz.c to all the directories below the current one whose names begin with "temp" ### Response: find . -type d -name "temp*" | xargs -n1 cp xyz.c
Copy a large sparse file "sparse-1" to "sparse-1-copy"
rsync --sparse sparse-1 sparse-1-copy
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Copy a large sparse file "sparse-1" to "sparse-1-copy" ### Response: rsync --sparse sparse-1 sparse-1-copy
Copy a whole directory tree skipping files residing on other files systems to destination_dir
find ./ -mount -depth -print | cpio -pdm /destination_dir
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Copy a whole directory tree skipping files residing on other files systems to destination_dir ### Response: find ./ -mount -depth -print | cpio -pdm /destination_dir
Copy all ".php" files in "projects/" directory tree to "copy/" preserving directory hierarchy
find projects/ -name '*.php' -print | cpio -pdm copy/
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Copy all ".php" files in "projects/" directory tree to "copy/" preserving directory hierarchy ### Response: find projects/ -name '*.php' -print | cpio -pdm copy/
Copy all ".xml" files in the current directory tree to "/new/parent/dir" preserving the directory hierarchy
find . -name \*.xml -print0 | cpio -pamvd0 /new/parent/dir
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Copy all ".xml" files in the current directory tree to "/new/parent/dir" preserving the directory hierarchy ### Response: find . -name \*.xml -print0 | cpio -pamvd0 /new/parent/dir
Copy all *.data files under /source_path to /target_path
find /source_path -name *.data -exec cp {} /target_path \;
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Copy all *.data files under /source_path to /target_path ### Response: find /source_path -name *.data -exec cp {} /target_path \;
Copy all *.mp3 files under the current directory to /tmp/MusicFiles/
find . -type f -name "*.mp3" -exec cp {} /tmp/MusicFiles \;
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Copy all *.mp3 files under the current directory to /tmp/MusicFiles/ ### Response: find . -type f -name "*.mp3" -exec cp {} /tmp/MusicFiles \;
Copy all .patch files from the current directory tree to patches/
find -name '*.patch' -print0 | xargs -0 -I {} cp {} patches/
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Copy all .patch files from the current directory tree to patches/ ### Response: find -name '*.patch' -print0 | xargs -0 -I {} cp {} patches/
Copy all .pdf files in the ./work/ directory tree with size bigger then 2 MB and modified more than 5 days ago to the ./backup/ directory
find ./work/ -type f -name "*.pdf" -mtime +5 -size +2M | xargs -r cp -t ./backup/
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Copy all .pdf files in the ./work/ directory tree with size bigger then 2 MB and modified more than 5 days ago to the ./backup/ directory ### Response: find ./work/ -type f -name "*.pdf" -mtime +5 -size +2M | xargs -r cp -t ./backup/
Copy all .png files from the home directory tree to imagesdir/
find ~/ -name *.png -exec cp {} imagesdir \;
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Copy all .png files from the home directory tree to imagesdir/ ### Response: find ~/ -name *.png -exec cp {} imagesdir \;
Copy all .txt files from the dir/ directory tree along with their parent directories hierarchy
find dir/ -name '*.txt' | xargs cp -a --target-directory=dir_txt/ --parents
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Copy all .txt files from the dir/ directory tree along with their parent directories hierarchy ### Response: find dir/ -name '*.txt' | xargs cp -a --target-directory=dir_txt/ --parents
Copy all directories recursively from "source/" to "destination/" excluding all files
rsync -a --include='*/' --exclude='*' source/ destination/
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Copy all directories recursively from "source/" to "destination/" excluding all files ### Response: rsync -a --include='*/' --exclude='*' source/ destination/
Copy all directories recursively from "source/" to "destination/" excluding all files
rsync -a -f"+ */" -f"- *" source/ destination/
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Copy all directories recursively from "source/" to "destination/" excluding all files ### Response: rsync -a -f"+ */" -f"- *" source/ destination/
Copy all files (not directories) in "/path/to/local/storage" to "/path/to/copy" on host "remote.host" authenticating as user "user"
rsync /path/to/local/storage user@remote.host:/path/to/copy
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Copy all files (not directories) in "/path/to/local/storage" to "/path/to/copy" on host "remote.host" authenticating as user "user" ### Response: rsync /path/to/local/storage user@remote.host:/path/to/copy
Copy all files and directories in "/home/" to "/newhome" preserving directory hierarchy and modification time
find /home/ -maxdepth 1 -print | sudo cpio -pamVd /newhome
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Copy all files and directories in "/home/" to "/newhome" preserving directory hierarchy and modification time ### Response: find /home/ -maxdepth 1 -print | sudo cpio -pamVd /newhome
Copy all files and directories under the current directory into "../new" preserving relative paths
find -print0 | sort -z | cpio -pdv0 ../new
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Copy all files and directories under the current directory into "../new" preserving relative paths ### Response: find -print0 | sort -z | cpio -pdv0 ../new
Copy all files below the current directory whose names contain "FooBar" to directory foo/bar/ in user's home directory.
find -name '*FooBar*' -print0 | xargs -0 cp -t ~/foo/bar
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Copy all files below the current directory whose names contain "FooBar" to directory foo/bar/ in user's home directory. ### Response: find -name '*FooBar*' -print0 | xargs -0 cp -t ~/foo/bar
Copy all files below the current directory whose names contain "FooBar" to directory foo/bar/ in user's home directory.
find . | grep FooBar | xargs -I{} cp {} ~/foo/bar
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Copy all files below the current directory whose names contain "FooBar" to directory foo/bar/ in user's home directory. ### Response: find . | grep FooBar | xargs -I{} cp {} ~/foo/bar
Copy all files below the current directory whose names contain "foobar" (case-insensitive) to directory foo/bar/ in user's home directory.
find . -iname "*foobar*" -exec cp "{}" ~/foo/bar \;
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Copy all files below the current directory whose names contain "foobar" (case-insensitive) to directory foo/bar/ in user's home directory. ### Response: find . -iname "*foobar*" -exec cp "{}" ~/foo/bar \;
Copy all files ending in ".a" in directory trees matching "folder*" to "/path/to/dest" preserving directory hierarchy
find folder* -name '*.a' -print | cpio -pvd /path/to/dest
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Copy all files ending in ".a" in directory trees matching "folder*" to "/path/to/dest" preserving directory hierarchy ### Response: find folder* -name '*.a' -print | cpio -pvd /path/to/dest
Copy all files from the current directory tree to /path/to/destination/dir preserving their times, permissions, and ownership
find . | cpio -pdumv /path/to/destination/dir
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Copy all files from the current directory tree to /path/to/destination/dir preserving their times, permissions, and ownership ### Response: find . | cpio -pdumv /path/to/destination/dir
Copy all files in "/mail" to "/home/username" preserving the directory hierarchy and modification times
find /mail -type f | cpio -pvdmB /home/username
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Copy all files in "/mail" to "/home/username" preserving the directory hierarchy and modification times ### Response: find /mail -type f | cpio -pvdmB /home/username
Copy all files in "/var/spool/mail" to "/home/username/mail" preserving the directory hierarchy and modification times
find /var/spool/mail -type f | cpio -pvdmB /home/username/mail
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Copy all files in "/var/spool/mail" to "/home/username/mail" preserving the directory hierarchy and modification times ### Response: find /var/spool/mail -type f | cpio -pvdmB /home/username/mail
Copy all files in current directory that do not match */exlude-path/* in their paths to /destination/ preserving directory structure
find . -type f -not -path '*/exlude-path/*' -exec cp --parents '{}' '/destination/' \;
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Copy all files in current directory that do not match */exlude-path/* in their paths to /destination/ preserving directory structure ### Response: find . -type f -not -path '*/exlude-path/*' -exec cp --parents '{}' '/destination/' \;
Copy all files in current directory that do not match */not-from-here/* in their names to /dest
find . -type f -not -iname '*/not-from-here/*' -exec cp '{}' '/dest/{}' ';'
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Copy all files in current directory that do not match */not-from-here/* in their names to /dest ### Response: find . -type f -not -iname '*/not-from-here/*' -exec cp '{}' '/dest/{}' ';'
Copy all files in current directory that do not match */not-from-here/* in their paths to /dest
find . -type f -not -path '*/not-from-here/*' -exec cp '{}' '/dest/{}' \;
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Copy all files in current directory that do not match */not-from-here/* in their paths to /dest ### Response: find . -type f -not -path '*/not-from-here/*' -exec cp '{}' '/dest/{}' \;
Copy all files in the current directory except those containing 'Music' to '/target_directory'.
cp `ls | grep -v Music` /target_directory
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Copy all files in the current directory except those containing 'Music' to '/target_directory'. ### Response: cp `ls | grep -v Music` /target_directory
Copy all files in the current directory tree matching "textToSearch" to "$destination_path"
find . -type f | xargs grep -l "textToSearch" | cpio -pV $destination_path
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Copy all files in the current directory tree matching "textToSearch" to "$destination_path" ### Response: find . -type f | xargs grep -l "textToSearch" | cpio -pV $destination_path
Copy all files matching "*.sh" in "$from/*" to "root@$host:/home/tmp/" compressing data during transmission
rsync -zvr --include="*.sh" --exclude="*" $from/* root@$host:/home/tmp/
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Copy all files matching "*.sh" in "$from/*" to "root@$host:/home/tmp/" compressing data during transmission ### Response: rsync -zvr --include="*.sh" --exclude="*" $from/* root@$host:/home/tmp/
Copy all files matching "*failed.ipynb" in the current directory tree to "./fails" preserving the directory hierarchy
find . -name "*failed.ipynb" | cpio -pd ./fails
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Copy all files matching "*failed.ipynb" in the current directory tree to "./fails" preserving the directory hierarchy ### Response: find . -name "*failed.ipynb" | cpio -pd ./fails
Copy all files matching "file_name.extension" to "/path/to/receiving/folder" preserving directory hierarchy
find . -name 'file_name.extension' -print | cpio -pavd /path/to/receiving/folder
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Copy all files matching "file_name.extension" to "/path/to/receiving/folder" preserving directory hierarchy ### Response: find . -name 'file_name.extension' -print | cpio -pavd /path/to/receiving/folder