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 Find all files and directories with permissions 664<|im_end|> <|im_start|>assistant find . -perm 664<|im_end|>
Find all files and directories with permissions 664
find . -perm 664
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 Find all files/directories with space in their names under $1 directory<|im_end|> <|im_start|>assistant find $1 -name '* *'<|im_end|>
Find all files/directories with space in their names under $1 directory
find $1 -name '* *'
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 Find all files/directories with space in their names under /tmp/ directory and rename them by replacing all spaces with _<|im_end|> <|im_star...
Find all files/directories with space in their names under /tmp/ directory and rename them by replacing all spaces with _
find /tmp/ -depth -name "* *" -execdir rename " " "_" "{}" ";"
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 Find all files/directories with space in their names under /tmp/ directory and rename them by replacing all spaces with _<|im_end|> <|im_star...
Find all files/directories with space in their names under /tmp/ directory and rename them by replacing all spaces with _
find /tmp/ -depth -name "* *" -execdir rename 's/ /_/g' "{}" \;
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 Find all files/directories with spaces in their names under ~/Library directory<|im_end|> <|im_start|>assistant find ~/Library -name '* *'<|im...
Find all files/directories with spaces in their names under ~/Library directory
find ~/Library -name '* *'
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 Find all files beneath the current directory that end with the extension .java and contain the characters StringBuffer. Print the name of the...
Find all files beneath the current directory that end with the extension .java and contain the characters StringBuffer. Print the name of the file where a match is found.
find . -type f -name "*.java" -exec grep -l StringBuffer {} \;
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 Find all files called wp-config.php in the /var/www directory and below<|im_end|> <|im_start|>assistant find /var/www/ -name wp-config.php<|im...
Find all files called wp-config.php in the /var/www directory and below
find /var/www/ -name wp-config.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 Find all files changed on the 29th of September, 2008, starting from the current directory<|im_end|> <|im_start|>assistant find . -type f -new...
Find all files changed on the 29th of September, 2008, starting from the current directory
find . -type f -newerct 2008-09-29 ! -newerct 2008-09-30
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 find all files the current folder which have not been accessed in the last 7 days and which are bigger than 20KB<|im_end|> <|im_start|>assist...
find all files the current folder which have not been accessed in the last 7 days and which are bigger than 20KB
find . -atime +7 -size +20480 -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 find all the files ending with ".coffee" in the current folder and search for the words "re" in each line<|im_end|> <|im_start|>assistant find...
find all the files ending with ".coffee" in the current folder and search for the words "re" in each line
find . -name \*.coffee -exec grep -m1 -i 're' {} \;
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 find all the files ending with ".foo" in the folder /usr<|im_end|> <|im_start|>assistant find /usr -name '*.foo' -print<|im_end|>
find all the files ending with ".foo" in the folder /usr
find /usr -name '*.foo' -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 find all the files ending with "clj" in the current folder and search for a pattern<|im_end|> <|im_start|>assistant find . -name '*.clj' -exec...
find all the files ending with "clj" in the current folder and search for a pattern
find . -name '*.clj' -exec grep -r resources {} \;
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 find all the files ending with "clj" in the current folder and search for a pattern<|im_end|> <|im_start|>assistant find . -name *.clj | xargs...
find all the files ending with "clj" in the current folder and search for a pattern
find . -name *.clj | xargs grep -r resources
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 find all the files ending with "mkv" in current folder<|im_end|> <|im_start|>assistant find -name "*.mkv"<|im_end|>
find all the files ending with "mkv" in current folder
find -name "*.mkv"
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 find all the files ending with "rb" and display the first 10000 lines from these files.<|im_end|> <|im_start|>assistant find . -name "*rb" -pr...
find all the files ending with "rb" and display the first 10000 lines from these files.
find . -name "*rb" -print0 | xargs -0 head -10000
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 find all the files ending with "~" in current folder and move them to temp folder<|im_end|> <|im_start|>assistant find -name '*~' -print0 | xa...
find all the files ending with "~" in current folder and move them to temp folder
find -name '*~' -print0 | xargs -0 -I _ mv _ /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 find all the files ending with .mp3 or .jpg<|im_end|> <|im_start|>assistant find . \( -name '*.mp3' -o -name '*.jpg' \) -print<|im_end|>
find all the files ending with .mp3 or .jpg
find . \( -name '*.mp3' -o -name '*.jpg' \) -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 find all the files ending with jpg in current folder and display their count ( case insensitive )<|im_end|> <|im_start|>assistant find ./ -ina...
find all the files ending with jpg in current folder and display their count ( case insensitive )
find ./ -iname '*.jpg' -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 find all the files ending with jpg in current folder and display their count ( case insensitive )<|im_end|> <|im_start|>assistant find ./ -typ...
find all the files ending with jpg in current folder and display their count ( case insensitive )
find ./ -type f -regex ".*\.[Jj][Pp][gG]$" | 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 Find all files except files with '.gz' extension in the current directory non-recursively and compress them with gzip<|im_end|> <|im_start|>as...
Find all files except files with '.gz' extension in the current directory non-recursively and compress them with gzip
find . -maxdepth 1 -type f ! -name '*.gz' -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 Find all files excluding *.gz files in the current directory tree and compress them with gzip<|im_end|> <|im_start|>assistant find . -type f !...
Find all files excluding *.gz files in the current directory tree and compress them with gzip
find . -type f ! -name '*.gz' -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 Find all files files under the current directory except *.txt<|im_end|> <|im_start|>assistant find . -maxdepth 1 -type f -not -regex '.*\.txt'...
Find all files files under the current directory except *.txt
find . -maxdepth 1 -type f -not -regex '.*\.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 find all files having certain word in its name in the current folder<|im_end|> <|im_start|>assistant find . -name "*bsd*" -print<|im_end|>
find all files having certain word in its name in the current folder
find . -name "*bsd*" -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 Findx all files having text "texthere" recursively in a current folder, and prints only file names with matching strings.<|im_end|> <|im_start...
Findx all files having text "texthere" recursively in a current folder, and prints only file names with matching strings.
find -type f -exec grep -l "texthere" {} +
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 Find all files in "/home/" which contain "string1", "string2" or the host name in its filename<|im_end|> <|im_start|>assistant find /home/ -ty...
Find all files in "/home/" which contain "string1", "string2" or the host name in its filename
find /home/ -type f -regextype posix-extended -regex ".*(string1|string2|$(hostname)).*"
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 Finds all files in $LOCATION, prints file names, overwrite files with random content $TIMES times, and finally remove them.<|im_end|> <|im_sta...
Finds all files in $LOCATION, prints file names, overwrite files with random content $TIMES times, and finally remove them.
find $LOCATION -print -exec shred $TIMES -u '{}' \;
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 Find all files in $dir directory (non-recursive) and count them<|im_end|> <|im_start|>assistant find "$dir" -maxdepth 1 -type f | wc -l<|im_en...
Find all files in $dir directory (non-recursive) and count them
find "$dir" -maxdepth 1 -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 Find all files in the `sourceDir' directory<|im_end|> <|im_start|>assistant find sourceDir -mindepth 1 -maxdepth 1<|im_end|>
Find all files in the `sourceDir' directory
find sourceDir -mindepth 1 -maxdepth 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 Find all files in the `sourceDir' directory tree<|im_end|> <|im_start|>assistant find sourceDir -mindepth 1<|im_end|>
Find all files in the `sourceDir' directory tree
find sourceDir -mindepth 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 Find all files in the `work' directory tree, pass them to grep and search for "profit"<|im_end|> <|im_start|>assistant find ./work -print | xa...
Find all files in the `work' directory tree, pass them to grep and search for "profit"
find ./work -print | xargs grep "profit"
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 Find all files in /dir1 and print only the filenames (not paths)<|im_end|> <|im_start|>assistant find ./dir1 -type f -exec basename {} \;<|im_...
Find all files in /dir1 and print only the filenames (not paths)
find ./dir1 -type f -exec basename {} \;
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 Find all files in /dir1 and print only the filenames (not paths)<|im_end|> <|im_start|>assistant find /dir1 -type f -printf "%f\n"<|im_end|>
Find all files in /dir1 and print only the filenames (not paths)
find /dir1 -type f -printf "%f\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 Find all files in the /etc folder that have been modified within the last 30 days and copy them to /a/path/.<|im_end|> <|im_start|>assistant f...
Find all files in the /etc folder that have been modified within the last 30 days and copy them to /a/path/.
find /etc/ -mtime -30 | xargs -0 cp /a/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 Find all files in the /home/ directory tree that were last accessed more than 7 days ago<|im_end|> <|im_start|>assistant find /home -atime +7<...
Find all files in the /home/ directory tree that were last accessed more than 7 days ago
find /home -atime +7
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 Find all files in the /home/ directory tree that were last modified less than 7 days ago<|im_end|> <|im_start|>assistant find /home -mtime -7<...
Find all files in the /home/ directory tree that were last modified less than 7 days ago
find /home -mtime -7
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 find all the files in the /usr folder which have modification date less than or equal to the file "/FirstFile"<|im_end|> <|im_start|>assistant...
find all the files in the /usr folder which have modification date less than or equal to the file "/FirstFile"
find /usr ! -newer /FirstFile -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 Find all files in /var/www/html/zip/data/*/*/*/*/* that are older than 90 days<|im_end|> <|im_start|>assistant find /var/www/html/zip/data/*/*...
Find all files in /var/www/html/zip/data/*/*/*/*/* that are older than 90 days
find /var/www/html/zip/data/*/*/*/*/* -type f -mtime +90
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 Find all files in /var/www/html/zip/data/*/*/*/*/* that are older than 90 days and print only unique parent directory paths<|im_end|> <|im_sta...
Find all files in /var/www/html/zip/data/*/*/*/*/* that are older than 90 days and print only unique parent directory paths
find /var/www/html/zip/data/*/*/*/*/* -type f -mtime +90 -printf "%h\n" | sort | uniq
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 Finds all files in a '/path' folder and prints long listing for them.<|im_end|> <|im_start|>assistant find /path -type f -exec ls -l \{\} \;<|...
Finds all files in a '/path' folder and prints long listing for them.
find /path -type f -exec ls -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 Find all the files in the current directory<|im_end|> <|im_start|>assistant find * -type f -print -o -type d -prune<|im_end|>
Find all the files in the current directory
find * -type f -print -o -type d -prune
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 Find all files in the current directory and below with extension .php and replace "php" with "html" in their names<|im_end|> <|im_start|>assis...
Find all files in the current directory and below with extension .php and replace "php" with "html" in their names
find ./ -type f -name "*.php" | xargs -r rename "s/php/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 find all the files in the current directory and change the permissions to 775.<|im_end|> <|im_start|>assistant find . -exec chmod 775 {} \;<|i...
find all the files in the current directory and change the permissions to 775.
find . -exec chmod 775 {} \;
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 find all the files in the current directory and display them<|im_end|> <|im_start|>assistant find . -exec echo {} ;<|im_end|>
find all the files in the current directory and display them
find . -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 Find all files in the current directory and its sub-directories that have been modified sometime in the last 24 hours.<|im_end|> <|im_start|>a...
Find all files in the current directory and its sub-directories that have been modified sometime in the last 24 hours.
find . -mtime -1 -prin
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 find all the files in the current directory and print them excluding those that have the name SCCS.<|im_end|> <|im_start|>assistant find . -pr...
find all the files in the current directory and print them excluding those that have the name SCCS.
find . -print -o -name SCCS -prune
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 Find all files in current directory and search for 'searchName' in those files<|im_end|> <|im_start|>assistant find ./ -name "*" | xargs grep ...
Find all files in current directory and search for 'searchName' in those files
find ./ -name "*" | xargs grep "searchName"
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 Find all files in current directory and search for 'searchName' in those files and show errors for files that are not directly on the current ...
Find all files in current directory and search for 'searchName' in those files and show errors for files that are not directly on the current directory
find ./ -name "*" -printf "%f\n" | xargs grep "searchName"
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 find all files in the current directory and sub-directories that were accessed after modifying /etc/hosts<|im_end|> <|im_start|>assistant find...
find all files in the current directory and sub-directories that were accessed after modifying /etc/hosts
find -anewer /etc/hosts
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 find all the files in the current directory and sub-directories, that were edited within the last 1 hour and execute the list command with lon...
find all the files in the current directory and sub-directories, that were edited within the last 1 hour and execute the list command with long listing format
find -mmin -60 -exec ls -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 find all the files in the current directory and sub-directories whose status was changed after /etc/fstab was modified<|im_end|> <|im_start|>a...
find all the files in the current directory and sub-directories whose status was changed after /etc/fstab was modified
find -cnewer /etc/fstab
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 find all the files in the current directory ending with ".i"<|im_end|> <|im_start|>assistant find . -name ".*\.i"<|im_end|>
find all the files in the current directory ending with ".i"
find . -name ".*\.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 Find all files in current directory excluding hidden files and put the output into full_backup_dir variable<|im_end|> <|im_start|>assistant fu...
Find all files in current directory excluding hidden files and put the output into full_backup_dir variable
full_backup_dir=$(find . -depth '(' -wholename './.*' ')' -prune -o -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 find all files in the current directory excluding those that end with .js or have the words .min or console in their name<|im_end|> <|im_start...
find all files in the current directory excluding those that end with .js or have the words .min or console in their name
find . -type f \( -name "*.js" ! -name "*-min*" ! -name "*console*" \)
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 find all files in the current directory do not display the files which do not have read permission to all users<|im_end|> <|im_start|>assistan...
find all files in the current directory do not display the files which do not have read permission to all users
find . ! -perm -g+r,u+r,o+r -prune
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 find all the files in current directory of size exactly 6MB.<|im_end|> <|im_start|>assistant find . -size 6M<|im_end|>
find all the files in current directory of size exactly 6MB.
find . -size 6M
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 find all the files in current directory of size greater than 10MB and less than 20 MB.<|im_end|> <|im_start|>assistant find . -size +10M -size...
find all the files in current directory of size greater than 10MB and less than 20 MB.
find . -size +10M -size -20M
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 find all the files in current directory of size greater than 2GB.<|im_end|> <|im_start|>assistant find . -size +2G<|im_end|>
find all the files in current directory of size greater than 2GB.
find . -size +2G
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 Find all the files in the current directory recursively whose permissions are 644 and show the first 10 of them<|im_end|> <|im_start|>assistan...
Find all the files in the current directory recursively whose permissions are 644 and show the first 10 of them
find . -perm 0644 | head
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 Find all the files in the current directory recursively whose permissions are 777<|im_end|> <|im_start|>assistant find . -type f -perm 0777 -p...
Find all the files in the current directory recursively whose permissions are 777
find . -type f -perm 0777 -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 Find all the files in the current directory recursively whose permissions are not 777<|im_end|> <|im_start|>assistant find . -type f ! -perm 7...
Find all the files in the current directory recursively whose permissions are not 777
find . -type f ! -perm 777 | head
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 Find all files in the current directory recursively with "linkin park" in their names and copy them to /Users/tommye/Desktop/LP, preserving pa...
Find all files in the current directory recursively with "linkin park" in their names and copy them to /Users/tommye/Desktop/LP, preserving path hierarchy
find . -type f -iname "*linkin park*" | cpio -pvdmu /Users/tommye/Desktop/LP
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 Find all files in current directory that were modified less than 1 day ago excluding hidden files and put the output to full_backup_dir variab...
Find all files in current directory that were modified less than 1 day ago excluding hidden files and put the output to full_backup_dir variable
full_backup_dir=$(find . -depth \( -wholename \./\.\* \) -prune -o -mtime -1 -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 find all the files in the current directory that have the word "bash" in their name<|im_end|> <|im_start|>assistant find . -name "*bash*"<|im_...
find all the files in the current directory that have the word "bash" in their name
find . -name "*bash*"
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 Find all files in the current directory tree containing "foo" in their names<|im_end|> <|im_start|>assistant find . -print | grep -i foo<|im_e...
Find all files in the current directory tree containing "foo" in their names
find . -print | grep -i foo
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 Find all files in the current directory tree except .html, ignoring .svn directories<|im_end|> <|im_start|>assistant find . \( -type d -name '...
Find all files in the current directory tree except .html, ignoring .svn directories
find . \( -type d -name '.svn' -o -type f -name '*.html' \) -prune -o -print0
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 Find all files in the current directory tree, except GIT files<|im_end|> <|im_start|>assistant find -type f -name .git -prune -o -print<|im_en...
Find all files in the current directory tree, except GIT files
find -type f -name .git -prune -o -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 Find all files in the current directory tree ignoring the ".git" directory<|im_end|> <|im_start|>assistant find . -type d -name '.git*' -prune...
Find all files in the current directory tree ignoring the ".git" directory
find . -type d -name '.git*' -prune -o -type f -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 Find all files in the current directory tree named 'FILES.EXT'<|im_end|> <|im_start|>assistant find . -name "FILES.EXT"<|im_end|>
Find all files in the current directory tree named 'FILES.EXT'
find . -name "FILES.EXT"
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 Find all files in the current directory tree that are newer than some_file<|im_end|> <|im_start|>assistant find . -newer some_file<|im_end|>
Find all files in the current directory tree that are newer than some_file
find . -newer some_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 Find all files in the current directory tree that are not newer than some_file<|im_end|> <|im_start|>assistant find . ! -newer some_file<|im_e...
Find all files in the current directory tree that are not newer than some_file
find . ! -newer some_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 Find all files in the current directory tree that match pattern 'a(b*'<|im_end|> <|im_start|>assistant find . -name 'a(b*' -print<|im_end|>
Find all files in the current directory tree that match pattern 'a(b*'
find . -name 'a(b*' -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 Find all files in the current directory tree that were last changed $minutes minutes ago<|im_end|> <|im_start|>assistant find . -cmin $minutes...
Find all files in the current directory tree that were last changed $minutes minutes ago
find . -cmin $minutes -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 Find all files in the current directory tree whose names are ".DS_STORE"<|im_end|> <|im_start|>assistant find . -name ".DS_STORE"<|im_end|>
Find all files in the current directory tree whose names are ".DS_STORE"
find . -name ".DS_STORE"
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 Find all files in the current directory tree whose names are ".DS_STORE" and delete them<|im_end|> <|im_start|>assistant find . -name ".DS_STO...
Find all files in the current directory tree whose names are ".DS_STORE" and delete them
find . -name ".DS_STORE" -delete
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 Find all files in the current directory tree whose names are "file_name", except for those with pathnames matching pattern "./dirt to be Exclu...
Find all files in the current directory tree whose names are "file_name", except for those with pathnames matching pattern "./dirt to be Excluded/*"
find ./ -iname file_name ! -path "./dirt to be Excluded/*"
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 Find all files in the current directory tree whose names begin with '-'<|im_end|> <|im_start|>assistant find . -name '[-]*'<|im_end|>
Find all files in the current directory tree whose names begin with '-'
find . -name '[-]*'
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 Find all files in the current directory tree whose names end with the suffix ".keep.$1", where $1 is the first command line argument, and remo...
Find all files in the current directory tree whose names end with the suffix ".keep.$1", where $1 is the first command line argument, and remove that suffix
find . -type f -name "*.keep.$1" -print0 | xargs -0 rename "s/\.keep\.$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 Find all files in the current directory tree whose pathnames match pattern '*/1/lang/en.css'<|im_end|> <|im_start|>assistant find . -path ‘*/1...
Find all files in the current directory tree whose pathnames match pattern '*/1/lang/en.css'
find . -path ‘*/1/lang/en.css’ -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 Find all files in the current directory tree whose size is greater than 1MB, and move them to the "files" folder<|im_end|> <|im_start|>assista...
Find all files in the current directory tree whose size is greater than 1MB, and move them to the "files" folder
find . -size +1M -exec mv {} files \+
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 Find all files in the current directory tree whose size is greater than 1MB, and move them to the "files" folder<|im_end|> <|im_start|>assista...
Find all files in the current directory tree whose size is greater than 1MB, and move them to the "files" folder
find . -size +1M -print0 | xargs -0 -I '{}' mv '{}' files
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 Find all files in the current directory tree whose size is greater than 1MB, and move them to the "files" folder with confirmation<|im_end|> <...
Find all files in the current directory tree whose size is greater than 1MB, and move them to the "files" folder with confirmation
find . -size +1M -ok mv {} files \+
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 Find all files in the current directory tree with size bigger than 5 MB and sort them by size<|im_end|> <|im_start|>assistant find ./ -size +5...
Find all files in the current directory tree with size bigger than 5 MB and sort them by size
find ./ -size +5M -type f | xargs -r ls -Ssh
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 find all the files in the current directory which are bigger than 1000MB<|im_end|> <|im_start|>assistant find . -size +1000M<|im_end|>
find all the files in the current directory which are bigger than 1000MB
find . -size +1000M
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 find all files in the current directory which are bigger than 2MB<|im_end|> <|im_start|>assistant find -size +2M<|im_end|>
find all files in the current directory which are bigger than 2MB
find -size +2M
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 find all files in the current directory which are bigger than 4MB<|im_end|> <|im_start|>assistant find . -size +4096k -print<|im_end|>
find all files in the current directory which are bigger than 4MB
find . -size +4096k -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 find all the files in the current directory which have been accessed in the last 1 day and move them to TMP folder.<|im_end|> <|im_start|>assi...
find all the files in the current directory which have been accessed in the last 1 day and move them to TMP folder.
find . -atime +1 -type f -exec mv {} 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 find all the files in the current directory which have been modified after a file<|im_end|> <|im_start|>assistant find . -newer file<|im_end|>
find all the files in the current directory which have been modified after a file
find . -newer 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 find all the files in the current directory which have been modified in the last 24 hours<|im_end|> <|im_start|>assistant find . -mtime 0<|im_...
find all the files in the current directory which have been modified in the last 24 hours
find . -mtime 0
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 find all the files in the current directory which have been modified in the last 30 days and display the contents.<|im_end|> <|im_start|>assis...
find all the files in the current directory which have been modified in the last 30 days and display the contents.
find . -atime +30 -exec ls \;
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 find all the files in the current directory which have been modified in the last 6 days.<|im_end|> <|im_start|>assistant find . -atime +6<|im...
find all the files in the current directory which have been modified in the last 6 days.
find . -atime +6
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 find all the files in the current directory which end with orig<|im_end|> <|im_start|>assistant find . -name '*.orig' -exec echo {} \ ;<|im_e...
find all the files in the current directory which end with orig
find . -name '*.orig' -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 find all the files in the current directory which have the inode number 31246 and remove them.<|im_end|> <|im_start|>assistant find . -inum 31...
find all the files in the current directory which have the inode number 31246 and remove them.
find . -inum 31246 -exec 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 find all the files in the current directory which have the size 40 bytes in the current disk partition.<|im_end|> <|im_start|>assistant find ....
find all the files in the current directory which have the size 40 bytes in the current disk partition.
find . -size -40 -xdev -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 find all the files in the current directory which start with t and have been modified between one hour (60 minutes) and 12 hours (720 minutes)...
find all the files in the current directory which start with t and have been modified between one hour (60 minutes) and 12 hours (720 minutes) ago.
find . -mmin -720 -mmin +60 -type f -name "t*" -exec ls -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 find all files in the current directory whose size is 24 or 25 bytes.<|im_end|> <|im_start|>assistant find . -size -26c -size +23c -print<|im_...
find all files in the current directory whose size is 24 or 25 bytes.
find . -size -26c -size +23c -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 Find all the files in the current directory with “linkin park” in their names<|im_end|> <|im_start|>assistant find . -maxdepth 1 -iname "*link...
Find all the files in the current directory with “linkin park” in their names
find . -maxdepth 1 -iname "*linkin park*"
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 Find all file in current directory with have .c extenstion & have 777 permission . delete then<|im_end|> <|im_start|>assistant find . -name "*...
Find all file in current directory with have .c extenstion & have 777 permission . delete then
find . -name "*.c" -a -perm -777 | xargs rm -rf
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 find all the files in the current directory with the name "wagoneer" which are in the current device.<|im_end|> <|im_start|>assistant find . -...
find all the files in the current directory with the name "wagoneer" which are in the current device.
find . -xdev -name "wagoneer*" -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 Find all files in the current directory аргумент and its sub-directories with the optional constraints of опция_поиска, значение and/or значен...
Find all files in the current directory аргумент and its sub-directories with the optional constraints of опция_поиска, значение and/or значение.
find аргумент [опция_поиска] [значение] [значение]
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 find all the files in the current folder (handles files which contain newlines or only spaces in their names)<|im_end|> <|im_start|>assistant ...
find all the files in the current folder (handles files which contain newlines or only spaces in their names)
find . -print0 | xargs -0 -l -i echo "{}";
GWHed/nl2bash