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
Copy the current directory tree to "newdirpathname" preserving directory hierarchy<|im_end|>
<|im_start|>assistant
find ./ -depth -print | cpi... | Copy the current directory tree to "newdirpathname" preserving directory hierarchy | find ./ -depth -print | cpio -pvd newdirpathname | 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 directory hierarchy from "original" to "new"<|im_end|>
<|im_start|>assistant
find original -type d -exec mkdir new/{} \;<|im_end|> | Copy the directory hierarchy from "original" to "new" | find original -type d -exec mkdir 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 directory hierarchy from the current working directory to "/path/to/backup/"<|im_end|>
<|im_start|>assistant
find . -type d -exec mkdir -... | Copy directory hierarchy from the current working directory to "/path/to/backup/" | find . -type d -exec mkdir -p -- /path/to/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 the directory hierarchy of the current directory to "destdir"<|im_end|>
<|im_start|>assistant
find . -type d | cpio -pdvm destdir<|im_end... | Copy the directory hierarchy of the current directory to "destdir" | find . -type d | cpio -pdvm destdir | 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 entire "/lib" and "/usr" directory including symlinks from "pi@192.168.1.PI" to "$HOME/raspberrypi/rootfs" and delete files after the... | Copy the entire "/lib" and "/usr" directory including symlinks from "pi@192.168.1.PI" to "$HOME/raspberrypi/rootfs" and delete files after the transfer | rsync -rl --delete-after --safe-links pi@192.168.1.PI:/{lib,usr} $HOME/raspberrypi/rootfs | 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 entire directory tree under t1 to t2, do not create a containing t1 directory in t2.<|im_end|>
<|im_start|>assistant
cp -R t1/ t2<|im... | Copy the entire directory tree under t1 to t2, do not create a containing t1 directory in t2. | cp -R t1/ t2 | 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 file "exist" from directory "/file/that" to a new file named "file" in "/location/for/new"<|im_end|>
<|im_start|>assistant
cp /file/that/... | Copy file "exist" from directory "/file/that" to a new file named "file" in "/location/for/new" | cp /file/that/exists /location/for/new/file | 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 file '/boot/config-`uname -r`' to the '.config', printing info message and prompting before owerwriting files.<|im_end|>
<|im_start|>a... | Copies file '/boot/config-`uname -r`' to the '.config', printing info message and prompting before owerwriting files. | cp -vi /boot/config-`uname -r` .config | 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 file 'file.dat' to each top-level directory in the current directory.<|im_end|>
<|im_start|>assistant
ls | xargs -n 1 cp -i file.dat<|i... | Copies file 'file.dat' to each top-level directory in the current directory. | ls | xargs -n 1 cp -i file.dat | 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 file 'file.txt' to each top-level directory in the current directory.<|im_end|>
<|im_start|>assistant
ls -d */ | xargs -iA cp file.txt ... | Copies file 'file.txt' to each top-level directory in the current directory. | ls -d */ | xargs -iA cp file.txt A | 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 file 'file1' to each of directories 'dir1', 'dir2', 'dir3'.<|im_end|>
<|im_start|>assistant
echo dir1 dir2 dir3 | xargs -n 1 cp file1<|... | Copies file 'file1' to each of directories 'dir1', 'dir2', 'dir3'. | echo dir1 dir2 dir3 | xargs -n 1 cp file1 | 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 file 'index.html' to each top-level directory in the current directory.<|im_end|>
<|im_start|>assistant
find . -mindepth 1 -maxdepth 1 ... | 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 | 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 file 'index.html' to each top-level directory in the current directory beginning with 'd'.<|im_end|>
<|im_start|>assistant
find . -mind... | 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 | 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 file 'test' to each of directories like './fs*/*'.<|im_end|>
<|im_start|>assistant
echo ./fs*/* | xargs -n 1 cp test<|im_end|> | Copies file 'test' to each of directories like './fs*/*'. | echo ./fs*/* | xargs -n 1 cp test | 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 file header.shtml to directories dir1, dir2, dir3, and dir4<|im_end|>
<|im_start|>assistant
find dir1 dir2 dir3 dir4 -type d -exec cp hea... | Copy file header.shtml to directories dir1, dir2, dir3, and dir4 | find dir1 dir2 dir3 dir4 -type d -exec cp header.shtml {} \; | 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 file or directory 'gtest' from directory 'include' in current directory to /usr/include, preserving ownerships and permissions.<|im_end|>... | Copy file or directory 'gtest' from directory 'include' in current directory to /usr/include, preserving ownerships and permissions. | sudo cp -a include/gtest /usr/include | 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 file or folder linked to by "file" to "file"<|im_end|>
<|im_start|>assistant
cp -rf --remove-destination `readlink file` file<|im_end|> | Copy file or folder linked to by "file" to "file" | cp -rf --remove-destination `readlink file` file | 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
(Linux specific) Copy loadable kernel module "mymodule.ko" to the drivers in modules directory matchig current kernel.<|im_end|>
<|im_start|>a... | (Linux specific) Copy loadable kernel module "mymodule.ko" to the drivers in modules directory matchig current kernel. | sudo cp mymodule.ko /lib/modules/$(uname -r)/kernel/drivers/ | 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 local file "$1" to host "$2" into host directory "$3"<|im_end|>
<|im_start|>assistant
cat $1 | ssh $2 "mkdir $3;cat >> $3/$1"<|im_end|> | Copy local file "$1" to host "$2" into host directory "$3" | cat $1 | ssh $2 "mkdir $3;cat >> $3/$1" | 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 newest file under the current folder to the '/tmp/'<|im_end|>
<|im_start|>assistant
cp $(ls -1tr * | tail -1) /tmp/<|im_end|> | Copies newest file under the current folder to the '/tmp/' | cp $(ls -1tr * | tail -1) /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 the owner and group of "oldfile" to "newfile"<|im_end|>
<|im_start|>assistant
chown --reference=oldfile newfile<|im_end|> | Copy the owner and group of "oldfile" to "newfile" | chown --reference=oldfile newfile | 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 permissions from "version2/somefile" to "version1/somefile"<|im_end|>
<|im_start|>assistant
chmod --reference version2/somefile version1/... | Copy permissions from "version2/somefile" to "version1/somefile" | chmod --reference version2/somefile version1/somefile | 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 recursively "/source/backup" to "/destination" preserving symbolic links, modification times, and permissions<|im_end|>
<|im_start|>assis... | Copy recursively "/source/backup" to "/destination" preserving symbolic links, modification times, and permissions | rsync -rtvpl /source/backup /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 recursively "tata/" to "tata2/" and remove read, write, and execute permission for other<|im_end|>
<|im_start|>assistant
rsync -avz --chm... | Copy recursively "tata/" to "tata2/" and remove read, write, and execute permission for other | rsync -avz --chmod=o-rwx -p tata/ tata2/ | 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_dir recursively to dest_dir, but without overwriting existing files.<|im_end|>
<|im_start|>assistant
cp -nr src_dir dest_dir<|im_end|... | Copy src_dir recursively to dest_dir, but without overwriting existing files. | cp -nr src_dir dest_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 the standard output of a "bash" session to "/var/log/bash.out.log"<|im_end|>
<|im_start|>assistant
bash | tee /var/log/bash.out.log<|im_e... | Copy the standard output of a "bash" session to "/var/log/bash.out.log" | bash | tee /var/log/bash.out.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
Correct permissions for directories in the web directory<|im_end|>
<|im_start|>assistant
find /your/webdir/ -type d -print0 | xargs -0 chmod 7... | Correct permissions for directories in the web directory | find /your/webdir/ -type d -print0 | xargs -0 chmod 755 | 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
Correct permissions for files in the web directory<|im_end|>
<|im_start|>assistant
find /your/webdir -type f | xargs chmod 644<|im_end|> | Correct permissions for files in the web directory | find /your/webdir -type f | xargs chmod 644 | 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
Count the *.html files residing in the /usr/src directory tree and containing string "foo"<|im_end|>
<|im_start|>assistant
find /usr/src -name... | Count the *.html files residing in the /usr/src directory tree and containing string "foo" | find /usr/src -name "*.html" -exec grep -l foo '{}' ';' | 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
Count the *.html files residing in the /usr/src directory tree and containing string "foo"<|im_end|>
<|im_start|>assistant
find /usr/src -name... | Count the *.html files residing in the /usr/src directory tree and containing string "foo" | find /usr/src -name "*.html" | xargs grep -l foo | 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
Counts all *.mod files in a /boot/grub/ folder.<|im_end|>
<|im_start|>assistant
ls -l /boot/grub/*.mod | wc -l<|im_end|> | Counts all *.mod files in a /boot/grub/ folder. | ls -l /boot/grub/*.mod | 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
Counts all business days in a current month.<|im_end|>
<|im_start|>assistant
cal -h | cut -c 4-17 | tail -n +3 | wc -w<|im_end|> | Counts all business days in a current month. | cal -h | cut -c 4-17 | tail -n +3 | wc -w | 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
Count all directories in maximum 1 level down the current directory<|im_end|>
<|im_start|>assistant
find . -maxdepth 1 -type d -exec ls -dlrt ... | Count all directories in maximum 1 level down the current directory | find . -maxdepth 1 -type d -exec ls -dlrt {} \; | wc --lines | 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
Counts all files in a DIR_NAME folder and subfolders.<|im_end|>
<|im_start|>assistant
find DIR_NAME -type f | wc -l<|im_end|> | Counts all files in a DIR_NAME folder and subfolders. | find DIR_NAME -type f | 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
Counts all files in a current folder and subfolders.<|im_end|>
<|im_start|>assistant
find -type f -printf '\n' | wc -l<|im_end|> | Counts all files in a current folder and subfolders. | find -type f -printf '\n' | 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
Counts all files in a current folder and subfolders.<|im_end|>
<|im_start|>assistant
find . -type f | wc -l<|im_end|> | Counts all files in a current folder and subfolders. | find . -type f | 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
Counts all files in a current folder and subfolders.<|im_end|>
<|im_start|>assistant
find `pwd` -type f -exec ls -l {} \; | wc -l<|im_end|> | Counts all files in a current folder and subfolders. | find `pwd` -type f -exec ls -l {} \; | 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
Count all files under "/DIR"<|im_end|>
<|im_start|>assistant
find /DIR -type f -print0 | tr -dc '\0' | wc -c<|im_end|> | Count all files under "/DIR" | find /DIR -type f -print0 | tr -dc '\0' | 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
Count all the lines of all '*.c' files in current directory recursively<|im_end|>
<|im_start|>assistant
find . -name "*.c" -print0 | xargs -0 ... | Count all the lines of all '*.c' files in current directory recursively | find . -name "*.c" -print0 | xargs -0 cat | 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
Count all the lines of all files with names ending with 'php' in current directory recursively<|im_end|>
<|im_start|>assistant
find -name '*ph... | Count all the lines of all files with names ending with 'php' in current directory recursively | find -name '*php' | xargs cat | 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
Count all the mp3 files in the music user's home and subdirs.<|im_end|>
<|im_start|>assistant
find ~music -type f -iname *.mp3 | wc -l<|im_end... | Count all the mp3 files in the music user's home and subdirs. | find ~music -type f -iname *.mp3 | 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
Counts all top-level files in a current folder.<|im_end|>
<|im_start|>assistant
ls -1 | wc -l<|im_end|> | Counts all top-level files in a current folder. | ls -1 | 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
count amount of jobs running<|im_end|>
<|im_start|>assistant
jobs | wc -l<|im_end|> | count amount of jobs running | jobs | 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
Count and show the number of lines for each PHP files in the current directory tree<|im_end|>
<|im_start|>assistant
find . -name '*.php' | xar... | Count and show the number of lines for each PHP files in the current directory tree | find . -name '*.php' | xargs 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
Count files in $DIR_TO_CLEAN that are older than $DAYS_TO_SAVE days<|im_end|>
<|im_start|>assistant
find "$DIR_TO_CLEAN" -mtime +$DAYS_TO_SAVE... | Count files in $DIR_TO_CLEAN that are older than $DAYS_TO_SAVE days | find "$DIR_TO_CLEAN" -mtime +$DAYS_TO_SAVE | 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
Counts lines in each *.cpp, *.c, *.h file.<|im_end|>
<|im_start|>assistant
wc -l `find . -type f \( -name "*.cpp" -o -name "*.c" -o -name "*.h... | Counts lines in each *.cpp, *.c, *.h file. | wc -l `find . -type f \( -name "*.cpp" -o -name "*.c" -o -name "*.h" \) -print` | 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
Counts lines in each *.php file sorted by file path.<|im_end|>
<|im_start|>assistant
find . -name '*.php' -type f | sort | xargs wc -l<|im_end... | Counts lines in each *.php file sorted by file path. | find . -name '*.php' -type f | sort | xargs 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
Counts lines in each *.php file, sorted by number of lines, descending.<|im_end|>
<|im_start|>assistant
find . -name '*.php' -type f | xargs w... | Counts lines in each *.php file, sorted by number of lines, descending. | find . -name '*.php' -type f | xargs wc -l | sort -nr | 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
Counts lines in each of *.php files in a current folder and subfolders and prints total count as well.<|im_end|>
<|im_start|>assistant
find . ... | Counts lines in each of *.php files in a current folder and subfolders and prints total count as well. | find . -name "*.php" | xargs 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
Counts lines in each of *.php files in a current folder and subfolders and prints total count as well.<|im_end|>
<|im_start|>assistant
wc -l *... | Counts lines in each of *.php files in a current folder and subfolders and prints total count as well. | wc -l **/*.php | 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
Counts lines in each of *.php files in a current folder and subfolders ignoring 'tests' folder and prints total count as well.<|im_end|>
<|im_... | Counts lines in each of *.php files in a current folder and subfolders ignoring 'tests' folder and prints total count as well. | find . -name tests -prune -o -type f -name '*.php' | xargs 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
Counts lines in each of *.php files in a current folder and subfolders ignoring 'tests*' folders and prints total count as well.<|im_end|>
<|i... | Counts lines in each of *.php files in a current folder and subfolders ignoring 'tests*' folders and prints total count as well. | find . -name "*.php" -not -path "./tests*" | xargs 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
Counts lines in each of *.php files in current folder with subfolders and prints total count as well.<|im_end|>
<|im_start|>assistant
find . -... | Counts lines in each of *.php files in current folder with subfolders and prints total count as well. | find . -name '*.php' | xargs wc -l | sort -r | 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
Counts lines in file 'filename' ignoring empty lines and lines with spaces only.<|im_end|>
<|im_start|>assistant
cat 'filename' | grep '[^ ]' ... | Counts lines in file 'filename' ignoring empty lines and lines with spaces only. | cat 'filename' | grep '[^ ]' | 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
Counts lines of 'file' file.<|im_end|>
<|im_start|>assistant
wc -l file<|im_end|> | Counts lines of 'file' file. | wc -l file | 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
Counts lines of /dir/file.txt file.<|im_end|>
<|im_start|>assistant
cat /dir/file.txt | wc -l<|im_end|> | Counts lines of /dir/file.txt file. | cat /dir/file.txt | 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
Counts lines of /dir/file.txt file.<|im_end|>
<|im_start|>assistant
wc -l /dir/file.txt<|im_end|> | Counts lines of /dir/file.txt file. | wc -l /dir/file.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
Counts lines of /etc/fstab file.<|im_end|>
<|im_start|>assistant
cat /etc/fstab | wc -l<|im_end|> | Counts lines of /etc/fstab file. | cat /etc/fstab | 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
Counts lines of all *.txt files in a current folder.<|im_end|>
<|im_start|>assistant
cat *.txt | wc -l<|im_end|> | Counts lines of all *.txt files in a current folder. | cat *.txt | 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
count lines of C or C++ or Obj-C code under the current directory<|im_end|>
<|im_start|>assistant
find . \( -name "*.c" -or -name "*.cpp" -or ... | count lines of C or C++ or Obj-C code under the current directory | find . \( -name "*.c" -or -name "*.cpp" -or -name "*.h" -or -name "*.m" \) -print0 | xargs -0 wc | 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
count the lines of java code for all the java files in the current directory<|im_end|>
<|im_start|>assistant
find . -name "*.java" -print0 | x... | count the lines of java code for all the java files in the current directory | find . -name "*.java" -print0 | xargs -0 wc | 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
Counts lines of myfile.txt file.<|im_end|>
<|im_start|>assistant
cat myfile.txt | wc -l<|im_end|> | Counts lines of myfile.txt file. | cat myfile.txt | 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
Counts lines with all-cased word 'null' in file 'myfile.txt'.<|im_end|>
<|im_start|>assistant
grep -n -i null myfile.txt | wc -l<|im_end|> | Counts lines with all-cased word 'null' in file 'myfile.txt'. | grep -n -i null myfile.txt | 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
Counts non-empty lines in file fileName.<|im_end|>
<|im_start|>assistant
cat fileName | grep -v ^$ | wc -l<|im_end|> | Counts non-empty lines in file fileName. | cat fileName | grep -v ^$ | 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
Counts number of *.php files in a current folder and subfolders.<|im_end|>
<|im_start|>assistant
find . -name '*.php' | wc -l<|im_end|> | Counts number of *.php files in a current folder and subfolders. | find . -name '*.php' | 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
Count the number of .gz files in the current directory tree<|im_end|>
<|im_start|>assistant
find -name "*.gz" | wc -l<|im_end|> | Count the number of .gz files in the current directory tree | find -name "*.gz" | 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
Count the number of .gz files in directory tree /home/user1/data1/2012/mainDir<|im_end|>
<|im_start|>assistant
find /home/user1/data1/2012/mai... | Count the number of .gz files in directory tree /home/user1/data1/2012/mainDir | find /home/user1/data1/2012/mainDir -name '*.gz' | 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
Count the number of .java files in all folders rooted in the current folder<|im_end|>
<|im_start|>assistant
find . -name "*.java" | wc -l<|im_... | Count the number of .java files in all folders rooted in the current folder | find . -name "*.java" | 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
Count number of A records of domain '$domain' on nameserver '$server' and save value in 'result' variable<|im_end|>
<|im_start|>assistant
resu... | Count number of A records of domain '$domain' on nameserver '$server' and save value in 'result' variable | result="$(dig +short @"$server" "$domain" | 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
Count the number of all directories under current directory non-recursively<|im_end|>
<|im_start|>assistant
find . -mindepth 1 -maxdepth 1 -ty... | Count the number of all directories under current directory non-recursively | find . -mindepth 1 -maxdepth 1 -type d | 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
Count the number of all directories under directory '/mount/point' non-recursively<|im_end|>
<|im_start|>assistant
find /mount/point -maxdepth... | Count the number of all directories under directory '/mount/point' non-recursively | find /mount/point -maxdepth 1 -type d | 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
Count the number of areas that differ in "file1" and "file2" with 0 lines of unified context<|im_end|>
<|im_start|>assistant
diff -U 0 file1 f... | Count the number of areas that differ in "file1" and "file2" with 0 lines of unified context | diff -U 0 file1 file2 | grep ^@ | 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
Count the number of characters in the list of regular files from the current directory tree<|im_end|>
<|im_start|>assistant
find . -type f | x... | Count the number of characters in the list of regular files from the current directory tree | find . -type f | xargs | 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
Count the number of differing lines in "file1" and "file2"<|im_end|>
<|im_start|>assistant
diff file1 file2 | grep ^[\>\<] | wc -l<|im_end|> | Count the number of differing lines in "file1" and "file2" | diff file1 file2 | grep ^[\>\<] | 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
Count the number of directories in the current directory and below<|im_end|>
<|im_start|>assistant
find . -type f -exec basename {} \; | wc -l... | Count the number of directories in the current directory and below | find . -type f -exec basename {} \; | 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
Count the number of equal lines in sorted files "ignore.txt" and "input.txt"<|im_end|>
<|im_start|>assistant
comm -12 ignore.txt input.txt | w... | Count the number of equal lines in sorted files "ignore.txt" and "input.txt" | comm -12 ignore.txt input.txt | 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
Count the number of files/directories named file1 under current directory<|im_end|>
<|im_start|>assistant
find -name file1 | wc -l<|im_end|> | Count the number of files/directories named file1 under current directory | find -name file1 | 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
Count the number of files in the /usr/ports directory tree whose names begin with 'pkg-plist' and which contain 'etc/rc.d/'<|im_end|>
<|im_sta... | Count the number of files in the /usr/ports directory tree whose names begin with 'pkg-plist' and which contain 'etc/rc.d/' | find /usr/ports/ -name pkg-plist\* -exec grep -l etc/rc.d/ '{}' '+' | 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
Count the number of files in the /usr/ports directory tree whose names begin with 'pkg-plist' and which contain 'unexec.rmdir%D'<|im_end|>
<|i... | Count the number of files in the /usr/ports directory tree whose names begin with 'pkg-plist' and which contain 'unexec.rmdir%D' | find /usr/ports/ -name pkg-plist\* -exec grep 'unexec.rmdir %D' '{}' '+' | 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
Count the number of files in the current directory and below<|im_end|>
<|im_start|>assistant
find . -type d -exec basename {} \; | wc –l<|im_e... | Count the number of files in the current directory and below | find . -type d -exec basename {} \; | 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
Count the number of files in the directory trees whose pathnames match pattern '/dev/sd*[a-z]'<|im_end|>
<|im_start|>assistant
find /dev/sd*[a... | Count the number of files in the directory trees whose pathnames match pattern '/dev/sd*[a-z]' | find /dev/sd*[a-z] -printf . | 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
Count the number of files in the directory trees whose pathnames match pattern '/dev/sd*[a-z]'<|im_end|>
<|im_start|>assistant
find /dev/sd*[a... | Count the number of files in the directory trees whose pathnames match pattern '/dev/sd*[a-z]' | find /dev/sd*[a-z] | 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
Count number of lines in "Sample_51770BL1_R1.fastq.gz"<|im_end|>
<|im_start|>assistant
zcat Sample_51770BL1_R1.fastq.gz | wc -l<|im_end|> | Count number of lines in "Sample_51770BL1_R1.fastq.gz" | zcat Sample_51770BL1_R1.fastq.gz | 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
Count the number of lines in "testfile" wrapped to fit in a width of "$COLUMNS" characters<|im_end|>
<|im_start|>assistant
fold -w "$COLUMNS" ... | Count the number of lines in "testfile" wrapped to fit in a width of "$COLUMNS" characters | fold -w "$COLUMNS" testfile | 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
Counts the number of lines in *.php and *.inc files in a current folder and subfolders.<|im_end|>
<|im_start|>assistant
find . -name '*.php' -... | Counts the number of lines in *.php and *.inc files in a current folder and subfolders. | find . -name '*.php' -o -name '*.inc' | xargs 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
Count the number of lines in all ".php" files in the current directory tree<|im_end|>
<|im_start|>assistant
find . -name '*.php' -type f | xar... | Count the number of lines in all ".php" files in the current directory tree | find . -name '*.php' -type f | xargs cat | 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
Count the number of lines in all ".php" files in the current directory tree<|im_end|>
<|im_start|>assistant
wc -l `tree -if --noreport | grep ... | Count the number of lines in all ".php" files in the current directory tree | wc -l `tree -if --noreport | grep -e'\.php$'` | 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
Count the number of lines in all files in the xargstest/ directory tree that match pattern 'file??'<|im_end|>
<|im_start|>assistant
find xargs... | Count the number of lines in all files in the xargstest/ directory tree that match pattern 'file??' | find xargstest/ -name 'file??' | sort | xargs 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
Count number of lines in all files matching "*R1*.fastq.gz"<|im_end|>
<|im_start|>assistant
zcat *R1*.fastq.gz | wc -l<|im_end|> | Count number of lines in all files matching "*R1*.fastq.gz" | zcat *R1*.fastq.gz | 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
Count the number of lines in each .java file in the current directory tree<|im_end|>
<|im_start|>assistant
find . -name "*.java" -exec wc -l {... | Count the number of lines in each .java file in the current directory tree | find . -name "*.java" -exec 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
Count the number of lines in every regular .rb file in the current directory tree<|im_end|>
<|im_start|>assistant
find . -name "*.rb" -type f ... | Count the number of lines in every regular .rb file in the current directory tree | find . -name "*.rb" -type f -exec 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
Count the number of lines in every regular .rb file in the current directory tree<|im_end|>
<|im_start|>assistant
find . -name "*.rb" -type f ... | Count the number of lines in every regular .rb file in the current directory tree | find . -name "*.rb" -type f -print0 | xargs -0 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
Count the number of non localhost users<|im_end|>
<|im_start|>assistant
who | grep -v localhost | wc -l<|im_end|> | Count the number of non localhost users | who | grep -v localhost | 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
Count number of occurences of "123" in the string "123 123 123" (ie. 3)<|im_end|>
<|im_start|>assistant
echo "123 123 123" | grep -o 123 | wc ... | Count number of occurences of "123" in the string "123 123 123" (ie. 3) | echo "123 123 123" | grep -o 123 | 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
Count the number of regular files in the current directory that contain a vowel in their names<|im_end|>
<|im_start|>assistant
find . -maxdept... | Count the number of regular files in the current directory that contain a vowel in their names | find . -maxdepth 1 -type f -iname '*[aeiouy]*' -printf ".\n" | 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
Count the number of the regular files residing under and below ./randfiles/<|im_end|>
<|im_start|>assistant
find ./randfiles/ -type f | wc -l<... | Count the number of the regular files residing under and below ./randfiles/ | find ./randfiles/ -type f | 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
Count the number of regular files with 755 permission under current directory tree<|im_end|>
<|im_start|>assistant
find . -type f -perm 755 | ... | Count the number of regular files with 755 permission under current directory tree | find . -type f -perm 755 | 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
Count the number of total files and folders under current directory tree<|im_end|>
<|im_start|>assistant
find . -print0 | tr -cd '\0' | wc -c<... | Count the number of total files and folders under current directory tree | find . -print0 | tr -cd '\0' | 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
Count the number of unique duplicate lines in "file1" and "file2" combined<|im_end|>
<|im_start|>assistant
sort file1 file2 | uniq -d | wc -l<... | Count the number of unique duplicate lines in "file1" and "file2" combined | sort file1 file2 | uniq -d | 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
Count the number of unique lines in sorted file "a.txt" compared to sorted file "b.txt"<|im_end|>
<|im_start|>assistant
comm -23 a.txt b.txt |... | Count the number of unique lines in sorted file "a.txt" compared to sorted file "b.txt" | comm -23 a.txt b.txt | wc -l | GWHed/nl2bash |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.