text large_stringlengths 242 1.17k | nl large_stringlengths 13 387 | bash large_stringlengths 1 715 | source large_stringclasses 3
values |
|---|---|---|---|
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Compress all files in the "$FILE" directory tree that were last modified 30 days ago<|im_end|>
<|im_start|>assistant
find $FILE -type f -mtime... | Compress all files in the "$FILE" directory tree that were last modified 30 days ago | find $FILE -type f -mtime 30 -exec gzip {} \; | GWHed/nl2bash |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Compress all files in the "$FILE" directory tree that were last modified 30 days ago and have not already been compressed with gzip<|im_end|>
... | Compress all files in the "$FILE" directory tree that were last modified 30 days ago and have not already been compressed with gzip | find $FILE -type f -not -name '*.gz' -mtime 30 -exec gzip {} \; | GWHed/nl2bash |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
compresses all the files in the current folder with default depth<|im_end|>
<|im_start|>assistant
find . -depth -print | cpio -dump /backup<|i... | compresses all the files in the current folder with default depth | find . -depth -print | cpio -dump /backup | GWHed/nl2bash |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Compresses all files listed in array $*, executing in background.<|im_end|>
<|im_start|>assistant
compress $* &<|im_end|> | Compresses all files listed in array $*, executing in background. | compress $* & | GWHed/nl2bash |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Compress all files under /source directory tree using gzip with best compression method<|im_end|>
<|im_start|>assistant
find /source -type f -... | Compress all files under /source directory tree using gzip with best compression method | find /source -type f -print0 | xargs -0 -n 1 -P $CORES gzip -9 | GWHed/nl2bash |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Compress all files under current directory tree with gzip<|im_end|>
<|im_start|>assistant
find . -type f -print0 | xargs -0r gzip<|im_end|> | Compress all files under current directory tree with gzip | find . -type f -print0 | xargs -0r gzip | GWHed/nl2bash |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Compress all files with '.txt' extension under current directory<|im_end|>
<|im_start|>assistant
echo *.txt | xargs gzip -9<|im_end|> | Compress all files with '.txt' extension under current directory | echo *.txt | xargs gzip -9 | GWHed/nl2bash |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Compress and display the gzip compression ratio of every file on the system that is greater than 100000 bytes and ends in ".log"<|im_end|>
<|i... | Compress and display the gzip compression ratio of every file on the system that is greater than 100000 bytes and ends in ".log" | sudo find / -xdev -type f -size +100000 -name "*.log" -exec gzip -v {} \; | GWHed/nl2bash |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Compress and display the original filename of every file on the system that is greater than 100000 bytes and ends in ".log"<|im_end|>
<|im_sta... | Compress and display the original filename of every file on the system that is greater than 100000 bytes and ends in ".log" | sudo find / -xdev -type f -size +100000 -name "*.log" -exec gzip {} \; -exec echo {} \; | GWHed/nl2bash |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Compress every file in the current directory that matches "*cache.html" and keep the original file<|im_end|>
<|im_start|>assistant
gzip -k *ca... | Compress every file in the current directory that matches "*cache.html" and keep the original file | gzip -k *cache.html | GWHed/nl2bash |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Compress every file in the current directory tree that matches "*cache.html" and keep the original file<|im_end|>
<|im_start|>assistant
find .... | Compress every file in the current directory tree that matches "*cache.html" and keep the original file | find . -type f -name "*cache.html" -exec gzip -k {} \; | GWHed/nl2bash |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Compress every file in the current directory tree with gzip and keep file extensions the same<|im_end|>
<|im_start|>assistant
find folder -typ... | Compress every file in the current directory tree with gzip and keep file extensions the same | find folder -type f -exec gzip -9 {} \; -exec mv {}.gz {} \; | GWHed/nl2bash |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Compresses file 'example.log' keeping original file in place.<|im_end|>
<|im_start|>assistant
bzip2 -k example.log<|im_end|> | Compresses file 'example.log' keeping original file in place. | bzip2 -k example.log | GWHed/nl2bash |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Compress the file 'file' with 'bzip2' and append all output to the file 'logfile' and stdout<|im_end|>
<|im_start|>assistant
bzip2 file | tee ... | Compress the file 'file' with 'bzip2' and append all output to the file 'logfile' and stdout | bzip2 file | tee -a logfile | GWHed/nl2bash |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Compress files excluding *.Z files<|im_end|>
<|im_start|>assistant
find . \! -name "*.Z" -exec compress -f {} \;<|im_end|> | Compress files excluding *.Z files | find . \! -name "*.Z" -exec compress -f {} \; | GWHed/nl2bash |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Compress from standard input and print the byte count preceded with 'gzip.'<|im_end|>
<|im_start|>assistant
echo gzip. $( gzip | wc -c )<|im_e... | Compress from standard input and print the byte count preceded with 'gzip.' | echo gzip. $( gzip | wc -c ) | GWHed/nl2bash |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Compress from standard input with gzip<|im_end|>
<|im_start|>assistant
gzip<|im_end|> | Compress from standard input with gzip | gzip | GWHed/nl2bash |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Compress in parallel regular files in the current directory tree that were last modified more than 7 days ago<|im_end|>
<|im_start|>assistant
... | Compress in parallel regular files in the current directory tree that were last modified more than 7 days ago | find . -type f -mtime +7 | tee compressedP.list | xargs -I{} -P10 compress {} & | GWHed/nl2bash |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Concatenate all files under the current directory and below that contain "test" in their names<|im_end|>
<|im_start|>assistant
find . -iname '... | Concatenate all files under the current directory and below that contain "test" in their names | find . -iname '*test*' -exec cat {} \; | GWHed/nl2bash |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Concatenate files containing `test' in their names<|im_end|>
<|im_start|>assistant
find . -name '*test*' -exec cat {} \;<|im_end|> | Concatenate files containing `test' in their names | find . -name '*test*' -exec cat {} \; | GWHed/nl2bash |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Concatenate with a space every other line in "input.txt"<|im_end|>
<|im_start|>assistant
paste -s -d' \n' input.txt<|im_end|> | Concatenate with a space every other line in "input.txt" | paste -s -d' \n' input.txt | GWHed/nl2bash |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Connect as ssh user specified by variable USER to host whose IP address or host name is specified by HOST, and copy remote file specified by v... | Connect as ssh user specified by variable USER to host whose IP address or host name is specified by HOST, and copy remote file specified by variable SRC to location on local host specified by variable DEST, disabling progress info but enabling debug info. | scp -qv $USER@$HOST:$SRC $DEST | GWHed/nl2bash |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Connect to "$USER_AT_HOST" using connection sharing on "$SSHSOCKET" and request the master to exit<|im_end|>
<|im_start|>assistant
ssh -S "$SS... | Connect to "$USER_AT_HOST" using connection sharing on "$SSHSOCKET" and request the master to exit | ssh -S "$SSHSOCKET" -O exit "$USER_AT_HOST" | GWHed/nl2bash |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Connect to host "$USER_AT_HOST" in master mode in the background without executing any commands and set the ControlPath to "$SSHSOCKET"<|im_en... | Connect to host "$USER_AT_HOST" in master mode in the background without executing any commands and set the ControlPath to "$SSHSOCKET" | ssh -M -f -N -o ControlPath="$SSHSOCKET" "$USER_AT_HOST" | GWHed/nl2bash |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Connect to host "server_b" as ssh user "user" and copy local file "/my_folder/my_file.xml" to server_b's directory "/my_new_folder/".<|im_end|... | Connect to host "server_b" as ssh user "user" and copy local file "/my_folder/my_file.xml" to server_b's directory "/my_new_folder/". | scp -v /my_folder/my_file.xml user@server_b:/my_new_folder/ | GWHed/nl2bash |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Connect to port 1234 of specified IP address or hostname as ssh user "user", and copy all visible files in /var/www/mywebsite/dumps/ on this h... | Connect to port 1234 of specified IP address or hostname as ssh user "user", and copy all visible files in /var/www/mywebsite/dumps/ on this host to local directory /myNewPathOnCurrentLocalMachine - this directory must already exist on local host. | scp -P 1234 user@[ip address or host name]:/var/www/mywebsite/dumps/* /var/www/myNewPathOnCurrentLocalMachine | GWHed/nl2bash |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Connect to port 2222 of example.com as ssh user "user", and copy local file "/absolute_path/source-folder/some-file" to remote directory "/abs... | Connect to port 2222 of example.com as ssh user "user", and copy local file "/absolute_path/source-folder/some-file" to remote directory "/absolute_path/destination-folder" | scp -P 2222 /absolute_path/source-folder/some-file user@example.com:/absolute_path/destination-folder | GWHed/nl2bash |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Continuously send "y" to all prompts of command "rm"<|im_end|>
<|im_start|>assistant
yes | rm<|im_end|> | Continuously send "y" to all prompts of command "rm" | yes | rm | GWHed/nl2bash |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Convert "1199092913" to dotted decimal IPv4 address<|im_end|>
<|im_start|>assistant
ping -c1 1199092913 | head -n1 | grep -Eow "[0-9]+[.][0-9]... | Convert "1199092913" to dotted decimal IPv4 address | ping -c1 1199092913 | head -n1 | grep -Eow "[0-9]+[.][0-9]+[.][0-9]+[.][0-9]+" | GWHed/nl2bash |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Convert ";" separated list "luke;yoda;leila" to new line separated list<|im_end|>
<|im_start|>assistant
echo "luke;yoda;leila" | tr ";" "\n"<|... | Convert ";" separated list "luke;yoda;leila" to new line separated list | echo "luke;yoda;leila" | tr ";" "\n" | GWHed/nl2bash |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Convert "abc" to a string of hexadecimal bytes<|im_end|>
<|im_start|>assistant
echo abc | od -A n -v -t x1 | tr -d ' \n'<|im_end|> | Convert "abc" to a string of hexadecimal bytes | echo abc | od -A n -v -t x1 | tr -d ' \n' | GWHed/nl2bash |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Convert the contents of 'var1' variable to lowercase<|im_end|>
<|im_start|>assistant
var1=`echo $var1 | tr '[A-Z]' '[a-z]'`<|im_end|> | Convert the contents of 'var1' variable to lowercase | var1=`echo $var1 | tr '[A-Z]' '[a-z]'` | GWHed/nl2bash |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Convert the content of variable 'CLEAN' to small letters<|im_end|>
<|im_start|>assistant
CLEAN=`echo -n $CLEAN | tr A-Z a-z`<|im_end|> | Convert the content of variable 'CLEAN' to small letters | CLEAN=`echo -n $CLEAN | tr A-Z a-z` | GWHed/nl2bash |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Convert relative path "/x/y/../../a/b/z/../c/d" into absolute path with resolved symbolic links<|im_end|>
<|im_start|>assistant
readlink -f /x... | 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 | GWHed/nl2bash |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Convert relative symbolic link "$link" to absolute symbolic link<|im_end|>
<|im_start|>assistant
ln -sf "$(readlink -f "$link")" "$link"<|im_e... | Convert relative symbolic link "$link" to absolute symbolic link | ln -sf "$(readlink -f "$link")" "$link" | GWHed/nl2bash |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Convert standard input into a dump of octal bytes without the first 8 bytes of address and count the unique results<|im_end|>
<|im_start|>assi... | 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 | GWHed/nl2bash |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
cope *.mp3 files to /tmp/MusicFiles<|im_end|>
<|im_start|>assistant
find . -type f -name "*.mp3" -exec cp {} /tmp/MusicFiles \;<|im_end|> | cope *.mp3 files to /tmp/MusicFiles | find . -type f -name "*.mp3" -exec cp {} /tmp/MusicFiles \; | GWHed/nl2bash |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Copies ""$project_dir"/iTunesArtwork", to the 'Payload/iTunesArtwork', rewriting files if necessary.<|im_end|>
<|im_start|>assistant
cp -f "$p... | Copies ""$project_dir"/iTunesArtwork", to the 'Payload/iTunesArtwork', rewriting files if necessary. | cp -f "$project_dir"/iTunesArtwork Payload/iTunesArtwork | GWHed/nl2bash |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Copy "./export" recursively to "/path/to/webroot" preserving permissions<|im_end|>
<|im_start|>assistant
rsync -pr ./export /path/to/webroot<|... | Copy "./export" recursively to "/path/to/webroot" preserving permissions | rsync -pr ./export /path/to/webroot | GWHed/nl2bash |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Copy "/Users/username/path/on/machine/" to "username@server.ip.address.here:/home/username/path/on/server/" and convert encoding from UTF-8-MA... | 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/' | GWHed/nl2bash |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Copy "/home/username/path/on/server/" to "username@your.ip.address.here:/Users/username/path/on/machine/" and convert encoding from UTF-8 to U... | 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/' | GWHed/nl2bash |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Copy "/new/x/y/z/" over the network to "user@remote:/pre_existing/dir/" preserving the directory hierarchy<|im_end|>
<|im_start|>assistant
rsy... | 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/ | GWHed/nl2bash |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Copy "/path/to/source" to '/path/to/dest' in remote "username@computer"<|im_end|>
<|im_start|>assistant
rsync -r /path/to/source username@comp... | Copy "/path/to/source" to '/path/to/dest' in remote "username@computer" | rsync -r /path/to/source username@computer:/path/to/dest | GWHed/nl2bash |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
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/bina... | 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/ | GWHed/nl2bash |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Copy "fileName.txt" to all directories listed in "allFolders.txt" - names may not contain spaces.<|im_end|>
<|im_start|>assistant
cat allFolde... | Copy "fileName.txt" to all directories listed in "allFolders.txt" - names may not contain spaces. | cat allFolders.txt | xargs -n 1 cp fileName.txt | GWHed/nl2bash |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Copy "some_file_name" to "destination_directory" and change ownership to "someuser:somegroup"<|im_end|>
<|im_start|>assistant
echo 'some_file_... | Copy "some_file_name" to "destination_directory" and change ownership to "someuser:somegroup" | echo 'some_file_name' | cpio -p --owner someuser:somegroup destination_directory | GWHed/nl2bash |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Copy "source" recursively to "destination" excluding "path1/to/exclude" and "path2/to/exclude"<|im_end|>
<|im_start|>assistant
rsync -av --exc... | 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 | GWHed/nl2bash |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Copy "src" to "dest" if "src" is newer than "dest"<|im_end|>
<|im_start|>assistant
rsync -u src dest<|im_end|> | Copy "src" to "dest" if "src" is newer than "dest" | rsync -u src dest | GWHed/nl2bash |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Copy "src/prog.js" and "images/icon.jpg" to "/tmp/package" keeping relative path names<|im_end|>
<|im_start|>assistant
rsync -R src/prog.js im... | 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 | GWHed/nl2bash |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Copy '/path/to/source' from remote "username@computer" to local "/path/to/dest"<|im_end|>
<|im_start|>assistant
rsync -r username@computer:/pa... | Copy '/path/to/source' from remote "username@computer" to local "/path/to/dest" | rsync -r username@computer:/path/to/source /path/to/dest | GWHed/nl2bash |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Copies 'libgtest_main.so' and 'libgtest.so' to '/usr/lib/', preserving all attributes, and copying symlinks as symlinks, without following in ... | 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/ | GWHed/nl2bash |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Copies 'src' to 'dest' preserving overwriting the existing files.<|im_end|>
<|im_start|>assistant
cp -n src dest<|im_end|> | Copies 'src' to 'dest' preserving overwriting the existing files. | cp -n src dest | GWHed/nl2bash |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Copy *.txt files from the dir/ directory tree along with their parent directories<|im_end|>
<|im_start|>assistant
find dir/ -name '*.txt' | xa... | 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 | GWHed/nl2bash |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Copy /my/configfile to all empty directories of the $somedir directory tree<|im_end|>
<|im_start|>assistant
find "$somedir" -type d -empty -ex... | Copy /my/configfile to all empty directories of the $somedir directory tree | find "$somedir" -type d -empty -exec cp /my/configfile {} \; | GWHed/nl2bash |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Copy the 3 specified files to /tmp/package, preserving/creating directory structure of each file as specified on command line.<|im_end|>
<|im_... | Copy the 3 specified files to /tmp/package, preserving/creating directory structure of each file as specified on command line. | cp --parents src/prog.js images/icon.jpg /tmp/package | GWHed/nl2bash |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Copy a comlex directory tree from one machine o another while preserving copy permissions and ownership<|im_end|>
<|im_start|>assistant
find .... | Copy a comlex directory tree from one machine o another while preserving copy permissions and ownership | find . -depth -print | cpio -o -O /target/directory | GWHed/nl2bash |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
copy a files from one folder to all the folder in the /raid which have an extension local_sd_customize.<|im_end|>
<|im_start|>assistant
find /... | copy a files from one folder to all the folder in the /raid which have an extension local_sd_customize. | find /raid -type d -name ".local_sd_customize" -ok cp /raid/04d/MCAD-apps/I_Custom/SD_custom/site_sd_customize/user_filer_project_dirs {} \; | GWHed/nl2bash |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Copy a file xyz.c to all the directories below the current one whose names begin with "temp"<|im_end|>
<|im_start|>assistant
find . -type d -n... | 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 | GWHed/nl2bash |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
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<|im_end|... | 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 | GWHed/nl2bash |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Copy a large sparse file "sparse-1" to "sparse-1-copy"<|im_end|>
<|im_start|>assistant
rsync --sparse sparse-1 sparse-1-copy<|im_end|> | Copy a large sparse file "sparse-1" to "sparse-1-copy" | rsync --sparse sparse-1 sparse-1-copy | GWHed/nl2bash |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Copy a whole directory tree skipping files residing on other files systems to destination_dir<|im_end|>
<|im_start|>assistant
find ./ -mount -... | Copy a whole directory tree skipping files residing on other files systems to destination_dir | find ./ -mount -depth -print | cpio -pdm /destination_dir | GWHed/nl2bash |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Copy all ".php" files in "projects/" directory tree to "copy/" preserving directory hierarchy<|im_end|>
<|im_start|>assistant
find projects/ -... | Copy all ".php" files in "projects/" directory tree to "copy/" preserving directory hierarchy | find projects/ -name '*.php' -print | cpio -pdm copy/ | GWHed/nl2bash |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Copy all .patch files from the current directory tree to patches/<|im_end|>
<|im_start|>assistant
find -name '*.patch' -print0 | xargs -0 -I {... | Copy all .patch files from the current directory tree to patches/ | find -name '*.patch' -print0 | xargs -0 -I {} cp {} patches/ | GWHed/nl2bash |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
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<|im_... | 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/ | GWHed/nl2bash |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Copy all .png files from the home directory tree to imagesdir/<|im_end|>
<|im_start|>assistant
find ~/ -name *.png -exec cp {} imagesdir \;<|i... | Copy all .png files from the home directory tree to imagesdir/ | find ~/ -name *.png -exec cp {} imagesdir \; | GWHed/nl2bash |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Copy all files and directories in "/home/" to "/newhome" preserving directory hierarchy and modification time<|im_end|>
<|im_start|>assistant
... | Copy all files and directories in "/home/" to "/newhome" preserving directory hierarchy and modification time | find /home/ -maxdepth 1 -print | sudo cpio -pamVd /newhome | GWHed/nl2bash |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Copy all files and directories under the current directory into "../new" preserving relative paths<|im_end|>
<|im_start|>assistant
find -print... | Copy all files and directories under the current directory into "../new" preserving relative paths | find -print0 | sort -z | cpio -pdv0 ../new | GWHed/nl2bash |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Copy all files below the current directory whose names contain "FooBar" to directory foo/bar/ in user's home directory.<|im_end|>
<|im_start|>... | 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 | GWHed/nl2bash |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Copy all files below the current directory whose names contain "FooBar" to directory foo/bar/ in user's home directory.<|im_end|>
<|im_start|>... | 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 | GWHed/nl2bash |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Copy all files below the current directory whose names contain "foobar" (case-insensitive) to directory foo/bar/ in user's home directory.<|im... | 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 \; | GWHed/nl2bash |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Copy all files ending in ".a" in directory trees matching "folder*" to "/path/to/dest" preserving directory hierarchy<|im_end|>
<|im_start|>as... | 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 | GWHed/nl2bash |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Copy all files from the current directory tree to /path/to/destination/dir preserving their times, permissions, and ownership<|im_end|>
<|im_s... | 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 | GWHed/nl2bash |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Copy all files in "/var/spool/mail" to "/home/username/mail" preserving the directory hierarchy and modification times<|im_end|>
<|im_start|>a... | 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 | GWHed/nl2bash |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Copy all files in the current directory except those containing 'Music' to '/target_directory'.<|im_end|>
<|im_start|>assistant
cp `ls | grep ... | Copy all files in the current directory except those containing 'Music' to '/target_directory'. | cp `ls | grep -v Music` /target_directory | GWHed/nl2bash |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Copy all files in current directory that do not match */exlude-path/* in their paths to /destination/ preserving directory structure<|im_end|>... | 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/' \; | GWHed/nl2bash |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Copy all files in current directory that do not match */not-from-here/* in their names to /dest<|im_end|>
<|im_start|>assistant
find . -type f... | 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/{}' ';' | GWHed/nl2bash |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Copy all files in current directory that do not match */not-from-here/* in their paths to /dest<|im_end|>
<|im_start|>assistant
find . -type f... | 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/{}' \; | GWHed/nl2bash |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Copy all files in the current directory tree matching "textToSearch" to "$destination_path"<|im_end|>
<|im_start|>assistant
find . -type f | x... | Copy all files in the current directory tree matching "textToSearch" to "$destination_path" | find . -type f | xargs grep -l "textToSearch" | cpio -pV $destination_path | GWHed/nl2bash |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Copies all files like "*FooBar*" under the current directory to the '~/foobar' directory.<|im_end|>
<|im_start|>assistant
find . -name '*FooBa... | Copies all files like "*FooBar*" under the current directory to the '~/foobar' directory. | find . -name '*FooBar*' -exec cp -t ~/foobar -- {} + | GWHed/nl2bash |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Copies all files like 'lib*.so' to '~/usr/gtest/lib/' directory.<|im_end|>
<|im_start|>assistant
cp lib*.so ~/usr/gtest/lib<|im_end|> | Copies all files like 'lib*.so' to '~/usr/gtest/lib/' directory. | cp lib*.so ~/usr/gtest/lib | GWHed/nl2bash |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Copy all files matching "*.sh" in "$from/*" to "root@$host:/home/tmp/" compressing data during transmission<|im_end|>
<|im_start|>assistant
rs... | 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/ | GWHed/nl2bash |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Copy all files matching "*failed.ipynb" in the current directory tree to "./fails" preserving the directory hierarchy<|im_end|>
<|im_start|>as... | Copy all files matching "*failed.ipynb" in the current directory tree to "./fails" preserving the directory hierarchy | find . -name "*failed.ipynb" | cpio -pd ./fails | GWHed/nl2bash |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Copy all files matching "file_name.extension" to "/path/to/receiving/folder" preserving directory hierarchy<|im_end|>
<|im_start|>assistant
fi... | 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 | GWHed/nl2bash |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Copy all files named 'script.sh' in directory 'olddir' to directory 'newdir'<|im_end|>
<|im_start|>assistant
find olddir -name script.sh -prin... | Copy all files named 'script.sh' in directory 'olddir' to directory 'newdir' | find olddir -name script.sh -printf "%p\0" -printf "newdir/%P\0" | xargs -0L2 cp -n | GWHed/nl2bash |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Copy all files that match 'FooBar' in their paths under current directory tree to the '~/foo/bar' directory<|im_end|>
<|im_start|>assistant
fi... | Copy all files that match 'FooBar' in their paths under current directory tree to the '~/foo/bar' directory | find . | grep "FooBar" | tr \\n \\0 | xargs -0 -I{} cp "{}" ~/foo/bar | GWHed/nl2bash |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Copy all files unconditionally and directories in directory tree "myfiles" to "target-dir" preserving directory hierarchy and modification tim... | Copy all files unconditionally and directories in directory tree "myfiles" to "target-dir" preserving directory hierarchy and modification time | find myfiles | cpio -pmud target-dir | GWHed/nl2bash |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Copies all files under the current folder like "file.ext" with "FooBar" in the path to the root of the current folder, preserving mode, owners... | 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 "{}" . | GWHed/nl2bash |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Copy all files under director 'foo' whose name doesn't contain 'Music' to directory 'bar'.<|im_end|>
<|im_start|>assistant
find foo -type f ! ... | Copy all files under director 'foo' whose name doesn't contain 'Music' to directory 'bar'. | find foo -type f ! -name '*Music*' -exec cp {} bar \; | GWHed/nl2bash |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
copy all files which do not have execute permission to another folder<|im_end|>
<|im_start|>assistant
cp `find -perm -111 -type f` /usr/local/... | copy all files which do not have execute permission to another folder | cp `find -perm -111 -type f` /usr/local/bin | GWHed/nl2bash |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Copy all files with '.png' (case insensitive) extension under '/home/mine' directory tree to '/home/mine/pngcoppies/' directory with new names... | Copy all files with '.png' (case insensitive) extension under '/home/mine' directory tree to '/home/mine/pngcoppies/' directory with new names constructed by prepending 'copy' in their names | find /home/mine -iname "*.png" -printf "%P\n " | xargs -I % -n1 cp % /home/mine/pngcoppies/copy% | GWHed/nl2bash |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Copy all files with '.png' (case insensitive) extension under '/home/mine' directory tree to '/home/mine/pngcoppies/copy.' directory<|im_end|>... | Copy all files with '.png' (case insensitive) extension under '/home/mine' directory tree to '/home/mine/pngcoppies/copy.' directory | find /home/mine -iname "*.png" -execdir cp {} /home/mine/pngcoppies/copy{} \; | GWHed/nl2bash |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Copy all files with name pattern $j.sh (case insensitive) under '/tmp/2' directory tree to $i directory<|im_end|>
<|im_start|>assistant
find "... | Copy all files with name pattern $j.sh (case insensitive) under '/tmp/2' directory tree to $i directory | find "/tmp/2/" -iname "$j.sh" -exec cp {} "$i" \; | GWHed/nl2bash |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
copy all the log files in the current folder which have not been accessed in the last 30*24 hours to the folder old<|im_end|>
<|im_start|>assi... | copy all the log files in the current folder which have not been accessed in the last 30*24 hours to the folder old | find . -type f -mtime +30 -name "*.log" -exec cp {} old \; | GWHed/nl2bash |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
copy all the mp3 files from current folder to another folder<|im_end|>
<|im_start|>assistant
find . -name '*.mp3' -exec cp -a {} /path/to/copy... | copy all the mp3 files from current folder to another folder | find . -name '*.mp3' -exec cp -a {} /path/to/copy/stuff/to \; | GWHed/nl2bash |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Copy all regular files from the current directory tree to directory `TARGET'<|im_end|>
<|im_start|>assistant
find . -type f -exec cp -t TARGET... | Copy all regular files from the current directory tree to directory `TARGET' | find . -type f -exec cp -t TARGET {} \+ | GWHed/nl2bash |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
copy all the regular/normal files from temp folder which have been modified in the last 30*24 hours to /tmp/backup<|im_end|>
<|im_start|>assis... | copy all the regular/normal files from temp folder which have been modified in the last 30*24 hours to /tmp/backup | find /tmp -type f -mtime -30 -exec cp {} /tmp/backup \; | GWHed/nl2bash |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
copy all the regular files in the current directory to the temporary diectory.<|im_end|>
<|im_start|>assistant
find . -type f -exec cp {} /tmp... | copy all the regular files in the current directory to the temporary diectory. | find . -type f -exec cp {} /tmp + | GWHed/nl2bash |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Copy all regular files whose names end in "~" from the /path directory tree to ~/backups/<|im_end|>
<|im_start|>assistant
find /path -type f -... | Copy all regular files whose names end in "~" from the /path directory tree to ~/backups/ | find /path -type f -name '*~' -print0 | xargs -0 -I % cp -a % ~/backups | GWHed/nl2bash |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Copy an entire file structure, creating empty files in the copy instead of copying the actual files.<|im_end|>
<|im_start|>assistant
find src/... | Copy an entire file structure, creating empty files in the copy instead of copying the actual files. | find src/ -type d -exec mkdir -p dest/{} \; -o -type f -exec touch dest/{} \; | GWHed/nl2bash |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Copy and always overwrite all files in "/zzz/zzz" to "/xxx/xxx"<|im_end|>
<|im_start|>assistant
yes | cp -rf /zzz/zzz/* /xxx/xxx<|im_end|> | Copy and always overwrite all files in "/zzz/zzz" to "/xxx/xxx" | yes | cp -rf /zzz/zzz/* /xxx/xxx | GWHed/nl2bash |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.