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 regular files in and below the home directory that have been modified in the last 90 minutes<|im_end|> <|im_start|>assistant find ~ -...
Find all regular files in and below the home directory that have been modified in the last 90 minutes
find ~ -type f -mmin -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 the regular/normal files in the current direcoty which have not been accessed in the last 30 days.<|im_end|> <|im_start|>assistant fi...
find all the regular/normal files in the current direcoty which have not been accessed in the last 30 days.
find . -type f -atime +30 -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 regular files in the current director and set their permissions to '644'.<|im_end|> <|im_start|>assistant find ./ -type f -exec chmod...
Find all regular files in the current director and set their permissions to '644'.
find ./ -type f -exec 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 find all normal/regular files in the current directory<|im_end|> <|im_start|>assistant find . -type f -print<|im_end|>
find all normal/regular files in the current directory
find . -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 the normal/regular files in the current directory<|im_end|> <|im_start|>assistant find -type f<|im_end|>
find all the normal/regular files in the current directory
find -type f
GWHed/nl2bash
<|im_start|>system You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|> <|im_start|>user find all the normal/regular files in the current directory and search for the word mail and display the file names<|im_end|> <|im_start|>assis...
find all the normal/regular files in the current directory and search for the word mail and display the file names
find . -type f -exec grep -il mail
GWHed/nl2bash
<|im_start|>system You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|> <|im_start|>user Find all regular files in the current directory and search them for "example"<|im_end|> <|im_start|>assistant find -maxdepth 1 -type f | xargs...
Find all regular files in the current directory and search them for "example"
find -maxdepth 1 -type f | xargs grep -F 'example'
GWHed/nl2bash
<|im_start|>system 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 regular files in the current directory tree, except GIT files<|im_end|> <|im_start|>assistant find . -name .git -prune -o -type f -p...
Find all regular files in the current directory tree, except GIT files
find . -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 regular files in the current directory tree ignoring directory ./source/script<|im_end|> <|im_start|>assistant find . -path ./source/...
Find all regular files in the current directory tree ignoring directory ./source/script
find . -path ./source/script -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 regular files in the current directory tree last modified between 1 and 3 days ago and list them using find's -ls option<|im_end|> <|...
Find all regular files in the current directory tree last modified between 1 and 3 days ago and list them using find's -ls option
find ./ -daystart -mtime -3 -type f ! -mtime -1 -exec ls -ld {} \;
GWHed/nl2bash
<|im_start|>system 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 regular files in the current directory tree last modified between 1 and 3 days ago and list them using format '%TY %p\n'<|im_end|> <|...
Find all regular files in the current directory tree last modified between 1 and 3 days ago and list them using format '%TY %p\n'
find ./ -daystart -mtime -3 -type f ! -mtime -1 -printf '%TY %p\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 regular files in the current directory tree last modified between 1 and 3 days ago and list them using format '%Tc %p\n'<|im_end|> <|...
Find all regular files in the current directory tree last modified between 1 and 3 days ago and list them using format '%Tc %p\n'
find ./ -daystart -mtime -3 -type f ! -mtime -1 -printf '%Tc %p\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 regular files in the current directory tree last modified between 1 and 3 days ago and list them using format '%Tm %p\n'<|im_end|> <|...
Find all regular files in the current directory tree last modified between 1 and 3 days ago and list them using format '%Tm %p\n'
find ./ -daystart -mtime -3 -type f ! -mtime -1 -printf '%Tm %p\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 regular files in the current directory tree that are not readable by all<|im_end|> <|im_start|>assistant find -type f ! -perm -444<|i...
Find all regular files in the current directory tree that are not readable by all
find -type f ! -perm -444
GWHed/nl2bash
<|im_start|>system 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 regular files in the current directory tree that have been modified within the last 10 minutes<|im_end|> <|im_start|>assistant find ....
Find all regular files in the current directory tree that have been modified within the last 10 minutes
find . –type f -mmin -10
GWHed/nl2bash
<|im_start|>system 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 regular files in the current directory tree that do not contain a whitespace<|im_end|> <|im_start|>assistant find . -type f \( -exec ...
Find all regular files in the current directory tree that do not contain a whitespace
find . -type f \( -exec grep -q '[[:space:]]' {} \; -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 regular files in the current directory tree whose names end with ".DS_Store" and delete them<|im_end|> <|im_start|>assistant find . -...
Find all regular files in the current directory tree whose names end with ".DS_Store" and delete them
find . -type f -name '*.DS_Store' -ls -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 the normal/regular files in the current directory which have been modified in the last 24 hours<|im_end|> <|im_start|>assistant find ...
find all the normal/regular files in the current directory which have been modified in the last 24 hours
find . -mtime -1 -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 the regular/normal files in the current directory which do not have the extension comment and and redirect the output to /tmp/list<|i...
find all the regular/normal files in the current directory which do not have the extension comment and and redirect the output to /tmp/list
find . -type f \! -name "*.Z" \! -name ".comment" -print | tee -a /tmp/list
GWHed/nl2bash
<|im_start|>system 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 normal/regular files in current folder and display the total lines in them<|im_end|> <|im_start|>assistant find . -type f -print0 | x...
find all normal/regular files in current folder and display the total lines in them
find . -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 find all the regular/normal files in the current folder and do not search in the sub directories<|im_end|> <|im_start|>assistant find . -maxde...
find all the regular/normal files in the current folder and do not search in the sub directories
find . -maxdepth 1 -type f
GWHed/nl2bash
<|im_start|>system You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|> <|im_start|>user find all the normal/regular files in current folder and search for a pattern<|im_end|> <|im_start|>assistant find . -type f -print0 | xargs -0...
find all the normal/regular files in current folder and search for a pattern
find . -type f -print0 | xargs -0 grep pattern
GWHed/nl2bash
<|im_start|>system 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 regular files in current folder, that have been changed in the last 3 days and display last 5 files<|im_end|> <|im_start|>assista...
find all the regular files in current folder, that have been changed in the last 3 days and display last 5 files
find . -type f -ctime -3 | tail -n 5
GWHed/nl2bash
<|im_start|>system 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 regular/normal files in the current folder that have been modified in the last 120 hours<|im_end|> <|im_start|>assistant find -mtime ...
find all regular/normal files in the current folder that have been modified in the last 120 hours
find -mtime -5 -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 the normal/regualar files in the current folder which have a size of 10KB and display a long listing details of them.<|im_end|> <|im_...
find all the normal/regualar files in the current folder which have a size of 10KB and display a long listing details of them.
find . -type f -size +10000 -exec ls -al {} \;
GWHed/nl2bash
<|im_start|>system 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 normal/regular files in the current folder which are present in the pattern file "file_list.txt"<|im_end|> <|im_start|>assistant ...
find all the normal/regular files in the current folder which are present in the pattern file "file_list.txt"
find . type f -print | fgrep -f file_list.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 the normal/regular files in the current folder which have been accessed in the last 24 hours and display a long listing of them<|im_e...
find all the normal/regular files in the current folder which have been accessed in the last 24 hours and display a long listing of them
find . -type f -atime -1 -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 normal/regular files in the current folder which have been modified in the last 24 hours and display a long listing of them<|im_e...
find all the normal/regular files in the current folder which have been modified in the last 24 hours and display a long listing of them
find . -type f -mtime -1 -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 regular/normal files in current folder which have been modified in the last 60 minutes<|im_end|> <|im_start|>assistant find -type f -...
find all regular/normal files in current folder which have been modified in the last 60 minutes
find -type f -mtime -60
GWHed/nl2bash
<|im_start|>system 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 normal/regular files in the current folder which have been modified in the last day and display a long listing of them<|im_end|> ...
find all the normal/regular files in the current folder which have been modified in the last day and display a long listing of them
find . -type f -mtime -1 -daystart -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 regular/normal files in the current folder which belong to the group "flossblog"<|im_end|> <|im_start|>assistant find . -group fl...
find all the regular/normal files in the current folder which belong to the group "flossblog"
find . -group flossblog -type f
GWHed/nl2bash
<|im_start|>system You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|> <|im_start|>user find all the regular/normal files in the current folder which belong to the users with the user id's between 500 and 1000<|im_end|> <|im_start...
find all the regular/normal files in the current folder which belong to the users with the user id's between 500 and 1000
find . -uid +500 -uid -1000 -type f
GWHed/nl2bash
<|im_start|>system You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|> <|im_start|>user find all normal/regular files in current folder which end with "~" or which begin and end with "#" and and and delete them<|im_end|> <|im_star...
find all normal/regular files in current folder which end with "~" or which begin and end with "#" and and and delete them
find . -maxdepth 1 -type f -name '*~' -delete -or -name '#*#' -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 normal/regular files in current folder which end with "~" or which begin and end with "#" and and move them to temp folder<|im_end|>...
find all normal/regular files in current folder which end with "~" or which begin and end with "#" and and move them to temp folder
find . -maxdepth 1 -type f -name '*~' -exec mv {} /tmp/ \; -or -name '#*#' -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 regular files in the current folder which start with a "some text"<|im_end|> <|im_start|>assistant find . -type f -name '*some te...
find all the regular files in the current folder which start with a "some text"
find . -type f -name '*some text*'
GWHed/nl2bash
<|im_start|>system 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 regular/normal files in the current folder whose name has the word photo or picture and which have been modified in the last 30 minut...
find all regular/normal files in the current folder whose name has the word photo or picture and which have been modified in the last 30 minutes
find . \( -iname "*photo*" -or -name "*picture*" \) -and ! -type d -and -mmin -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 normal/regular files in the entire file system having the word "filename" in their name.<|im_end|> <|im_start|>assistant find / -type...
find all normal/regular files in the entire file system having the word "filename" in their name.
find / -type f -iname "filename"
GWHed/nl2bash
<|im_start|>system 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 regular files in the entire filesystem that belong to the group 'users'<|im_end|> <|im_start|>assistant find / -type f -group users<...
Find all regular files in the entire filesystem that belong to the group 'users'
find / -type f -group users
GWHed/nl2bash
<|im_start|>system 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 normal/regular files in the folder "pathfolder" excluding all hidden files and display the count<|im_end|> <|im_start|>assistant ...
find all the normal/regular files in the folder "pathfolder" excluding all hidden files and display the count
find pathfolder -maxdepth 1 -type f -not -path '*/\.*' | 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 normal/regular files in the folder "pathfolder" which are 2 levels deep, excluding all hidden files and display the count<|im_end...
find all the normal/regular files in the folder "pathfolder" which are 2 levels deep, excluding all hidden files and display the count
find pathfolder -mindepth 2 -maxdepth 2 -type f -not -path '*/\.*' | 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 regular/normal files in the folder /travelphotos which are bigger than 200KB and which do not have the word "2015" in their name<...
find all the regular/normal files in the folder /travelphotos which are bigger than 200KB and which do not have the word "2015" in their name
find /travelphotos -type f -size +200k -not -iname "*2015*"
GWHed/nl2bash
<|im_start|>system 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 normal/regular files in the folder main-directory<|im_end|> <|im_start|>assistant find main-directory -type f<|im_end|>
find all the normal/regular files in the folder main-directory
find main-directory -type f
GWHed/nl2bash
<|im_start|>system You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|> <|im_start|>user Find all regular files in minimum 1 level down the $dir directory<|im_end|> <|im_start|>assistant find "$dir" -mindepth 1 -type f<|im_end|>
Find all regular files in minimum 1 level down the $dir directory
find "$dir" -mindepth 1 -type f
GWHed/nl2bash
<|im_start|>system You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|> <|im_start|>user Find all regular files in the the user's home/mail directory and search for the word "Linux".<|im_end|> <|im_start|>assistant find ~/mail -typ...
Find all regular files in the the user's home/mail directory and search for the word "Linux".
find ~/mail -type f | xargs grep "Linux"
GWHed/nl2bash
<|im_start|>system 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 regular files matching the name pattern '*.?htm*' under '/srv/www' and '/var/html' directory tree<|im_end|> <|im_start|>assistant fin...
Find all regular files matching the name pattern '*.?htm*' under '/srv/www' and '/var/html' directory tree
find /srv/www /var/html -name "*.?htm*" -type f
GWHed/nl2bash
<|im_start|>system You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|> <|im_start|>user Find all regular files named 'Chapter1' under current directory tree<|im_end|> <|im_start|>assistant find . -name Chapter1 -type f -print<|im_...
Find all regular files named 'Chapter1' under current directory tree
find . -name Chapter1 -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 regular files named 'Waldo' under 'Books' directory tree that is located in user's home directory<|im_end|> <|im_start|>assistant fin...
Find all regular files named 'Waldo' under 'Books' directory tree that is located in user's home directory
find ~/Books -type f -name Waldo
GWHed/nl2bash
<|im_start|>system 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 regular files named 'whatever' under current directory tree excluding all paths that contain any hidden directory<|im_end|> <|im_star...
Find all regular files named 'whatever' under current directory tree excluding all paths that contain any hidden directory
find . \( ! -regex '.*/\..*' \) -type f -name "whatever"
GWHed/nl2bash
<|im_start|>system 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 regular files named postgis-2.0.0 under your home directory<|im_end|> <|im_start|>assistant find ~/ -type f -name "postgis-2.0.0"<|im...
Find all regular files named postgis-2.0.0 under your home directory
find ~/ -type f -name "postgis-2.0.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 regular files newer than '/tmp/$$' (where $$ expands to current process id) under '/tmefndr/oravl01' directory tree<|im_end|> <|im_st...
Find all regular files newer than '/tmp/$$' (where $$ expands to current process id) under '/tmefndr/oravl01' directory tree
find /tmefndr/oravl01 -type f -newer /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 regular files on the system whose names are 'myfile'<|im_end|> <|im_start|>assistant find / -name myfile -type f -print<|im_end|>
Find all regular files on the system whose names are 'myfile'
find / -name myfile -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 regular files or symlinks in the entire file system<|im_end|> <|im_start|>assistant find / -mount -depth \( -type f -o -type l \) -pr...
Find all regular files or symlinks in the entire file system
find / -mount -depth \( -type f -o -type l \) -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 regular files residing in the current directory tree and search them for string "/bin/ksh"<|im_end|> <|im_start|>assistant find . -ty...
Find all regular files residing in the current directory tree and search them for string "/bin/ksh"
find . -type f -print | xargs grep -i 'bin/ksh'
GWHed/nl2bash
<|im_start|>system 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 regular files starting from / that have permissions 777<|im_end|> <|im_start|>assistant find / -type f -perm 0777<|im_end|>
Find all regular files starting from / that have permissions 777
find / -type f -perm 0777
GWHed/nl2bash
<|im_start|>system 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 regular files starting from level 3 of directory tree ~/container and move them one level up<|im_end|> <|im_start|>assistant find ~/c...
Find all regular files starting from level 3 of directory tree ~/container and move them one level up
find ~/container -mindepth 3 -type f -execdir mv "{}" $(dirname "{}")/.. \;
GWHed/nl2bash
<|im_start|>system 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 regular files starting from level 3 of directory tree ~/container and move them one level up<|im_end|> <|im_start|>assistant find ~/c...
Find all regular files starting from level 3 of directory tree ~/container and move them one level up
find ~/container -mindepth 3 -type f -execdir mv "{}" ./.. \;
GWHed/nl2bash
<|im_start|>system 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 regular files starting from level 3 of directory tree ~/container and move them to the current directory<|im_end|> <|im_start|>assist...
Find all regular files starting from level 3 of directory tree ~/container and move them to the current directory
find ~/container -mindepth 3 -type f -exec mv {} . \;
GWHed/nl2bash
<|im_start|>system 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 regular files starting from level 3 of directory tree ~/container and move them to the current directory's parent<|im_end|> <|im_star...
Find all regular files starting from level 3 of directory tree ~/container and move them to the current directory's parent
find ~/container -mindepth 3 -type f -exec mv {} .. \;
GWHed/nl2bash
<|im_start|>system 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 regular files that contain 'linux' (case insensitive) in their names under '/root' directory tree<|im_end|> <|im_start|>assistant fin...
Find all regular files that contain 'linux' (case insensitive) in their names under '/root' directory tree
find /root -type f -iname "*linux*"
GWHed/nl2bash
<|im_start|>system 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 regular files that reside in the current directory tree and were last modified at least 1 day ago<|im_end|> <|im_start|>assistant fin...
Find all regular files that reside in the current directory tree and were last modified at least 1 day ago
find . -type f -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 regular files that reside in the current directory tree and were last modified more than 1 day ago<|im_end|> <|im_start|>assistant fi...
Find all regular files that reside in the current directory tree and were last modified more than 1 day ago
find . -type f -mtime +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 regular files that reside in the current directory tree and were last modified more than 2 days ago<|im_end|> <|im_start|>assistant f...
Find all regular files that reside in the current directory tree and were last modified more than 2 days ago
find . -type f -mtime +2
GWHed/nl2bash
<|im_start|>system 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 regular files that reside in the current directory tree and were last modified more than 3 days ago<|im_end|> <|im_start|>assistant f...
Find all regular files that reside in the current directory tree and were last modified more than 3 days ago
find . -type f -mtime +3
GWHed/nl2bash
<|im_start|>system You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|> <|im_start|>user Find all regular files that reside in the current directory tree and were last modified more than 4 days ago<|im_end|> <|im_start|>assistant f...
Find all regular files that reside in the current directory tree and were last modified more than 4 days ago
find . -type f -mtime +4
GWHed/nl2bash
<|im_start|>system 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 regular files that reside in the current directory tree and were last modified more than 7 days ago<|im_end|> <|im_start|>assistant f...
Find all regular files that reside in the current directory tree and were last modified more than 7 days ago
find . -type f -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 regular files that start with stat<|im_end|> <|im_start|>assistant find . -type f –iname stat*<|im_end|>
Find all regular files that start with stat
find . -type f –iname stat*
GWHed/nl2bash
<|im_start|>system 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 regular files that were modified $FTIME days ago under current directory tree<|im_end|> <|im_start|>assistant find . -type f -mtime $...
Find all regular files that were modified $FTIME days ago under current directory tree
find . -type f -mtime $FTIME
GWHed/nl2bash
<|im_start|>system 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 regular files that were modified more than 60 days ago under '/path-to-directory' directory tree, sort them according to timestamp an...
Find all regular files that were modified more than 60 days ago under '/path-to-directory' directory tree, sort them according to timestamp and print the filenames preceded with the timestamps
find /path-to-directory -type f -mtime +60 -printf "%T@ %p\n" | sort
GWHed/nl2bash
<|im_start|>system 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 regular files under $DIR directory tree which have been modified before the file $a excluding the file $a and delete them<|im_end...
Find all the regular files under $DIR directory tree which have been modified before the file $a excluding the file $a and delete them
find "$DIR" -type f \! -newer "$a" \! -samefile "$a" -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 the regular files under $DIR directory tree which have been modified before the file $a excluding the file $a and delete them<|im_end...
Find all the regular files under $DIR directory tree which have been modified before the file $a excluding the file $a and delete them
find "$DIR" -type f \! -newer "$a" \! -samefile "$a" -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 regular files under $DIR directory tree whose paths match the regex ".*\.${TYPES_RE}" where ${TYPES_RE} expands as a variable<|im_end...
Find all regular files under $DIR directory tree whose paths match the regex ".*\.${TYPES_RE}" where ${TYPES_RE} expands as a variable
find ${DIR} -type f -regex ".*\.${TYPES_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 regular files under $DIR/tmp/daily/, sort them in reverse numerical order and copy the first two files to $DIR/tmp/weekly/<|im_end|> ...
Find all regular files under $DIR/tmp/daily/, sort them in reverse numerical order and copy the first two files to $DIR/tmp/weekly/
find $DIR/tmp/daily/ -type f -printf "%p\n" | sort -rn | head -n 2 | xargs -I{} cp {} $DIR/tmp/weekly/
GWHed/nl2bash
<|im_start|>system 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 regular files under $DIRECTORY_TO_PROCESS matching the case insensitive regex ".*\.$FILES_TO_PROCES" where $FILES_TO_PROCES is a vari...
Find all regular files under $DIRECTORY_TO_PROCESS matching the case insensitive regex ".*\.$FILES_TO_PROCES" where $FILES_TO_PROCES is a variable and not matching the name pattern '$find_excludes' where $find_excludes is another variable, then print the files with null delimiter instead of newline
find "$DIRECTORY_TO_PROCESS" -type f -iregex ".*\.$FILES_TO_PROCES" ! -name "$find_excludes" -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 regular files under $FOLDER directory tree that start with '".' and end with '"' in their names and were modified in less than $RETEN...
Find all regular files under $FOLDER directory tree that start with '".' and end with '"' in their names and were modified in less than $RETENTION days excluding the files whose contents match one of the regular expressions defined per line in file $SKIP_FILE
find ${FOLDER} -type f ! -name \".*\" -mtime -${RETENTION} | egrep -vf ${SKIP_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 regular files under $d directory tree and change their permissions to 777<|im_end|> <|im_start|>assistant find "$d/" -type f -print0 ...
Find all regular files under $d directory tree and change their permissions to 777
find "$d/" -type f -print0 | xargs -0 chmod 777
GWHed/nl2bash
<|im_start|>system 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 regular files under $dir directory tree that are bigger than $size MB in size and print them along with their sizes in decreasing ord...
Find all regular files under $dir directory tree that are bigger than $size MB in size and print them along with their sizes in decreasing order of size
find $dir -type f -size +"$size"M -printf '%s %p\n' | sort -rn
GWHed/nl2bash
<|im_start|>system 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 regular files under ${path} without following symlinks<|im_end|> <|im_start|>assistant find ${path} -P -type f<|im_end|>
Find all regular files under ${path} without following symlinks
find ${path} -P -type f
GWHed/nl2bash
<|im_start|>system You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|> <|im_start|>user Find all regular files under '/directory_path' directory tree that have been modified within the last day<|im_end|> <|im_start|>assistant find...
Find all regular files under '/directory_path' directory tree that have been modified within the last day
find /directory_path -type f -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 regular files under '/home/john/scripts' directory tree excluding files with '.ksh' extension<|im_end|> <|im_start|>assistant find /h...
Find all regular files under '/home/john/scripts' directory tree excluding files with '.ksh' extension
find /home/john/scripts -type f -not -name "*.ksh" -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 regular files undee '/usr/bin' directoryt tree that are less than 50 bytes in size<|im_end|> <|im_start|>assistant find /usr/bin -typ...
Find all regular files undee '/usr/bin' directoryt tree that are less than 50 bytes in size
find /usr/bin -type f -size -50c
GWHed/nl2bash
<|im_start|>system 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 regular files under '/your/dir' directory tree which are bigger than 5 MB and display them in decreasing order of their sizes<|im...
Find all the regular files under '/your/dir' directory tree which are bigger than 5 MB and display them in decreasing order of their sizes
find /your/dir -type f -size +5M -exec du -h '{}' + | sort -hr
GWHed/nl2bash
<|im_start|>system 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 regular files under ./Desktop directory<|im_end|> <|im_start|>assistant find ./Desktop -type f<|im_end|>
Find all regular files under ./Desktop directory
find ./Desktop -type f
GWHed/nl2bash
<|im_start|>system You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|> <|im_start|>user Find all regular files under and below /home/admin/public_html/, and change their permissions to 644<|im_end|> <|im_start|>assistant find . /h...
Find all regular files under and below /home/admin/public_html/, and change their permissions to 644
find . /home/admin/public_html/ -type f -exec 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 Find all regular files under and below /home/user/demo/<|im_end|> <|im_start|>assistant find /home/user/demo -type f -print<|im_end|>
Find all regular files under and below /home/user/demo/
find /home/user/demo -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 regular files under and below /root that match pattern "*linux*", case insensitive<|im_end|> <|im_start|>assistant find /root -type f...
Find all regular files under and below /root that match pattern "*linux*", case insensitive
find /root -type f -iname "*linux*"
GWHed/nl2bash
<|im_start|>system 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 regular files under current directory<|im_end|> <|im_start|>assistant find . -depth -type f -print<|im_end|>
Find all regular files under current directory
find . -depth -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 regular files under current directory non-recursively that have execute permission set for all (user, group and other)<|im_end|> <|im...
Find all regular files under current directory non-recursively that have execute permission set for all (user, group and other)
find . -maxdepth 1 -type f -perm -uga=x
GWHed/nl2bash
<|im_start|>system 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 regular files under current directory tree containing 'some text' in their names without descending into hidden directories and exclu...
Find all regular files under current directory tree containing 'some text' in their names without descending into hidden directories and excluding hidden files
find . -type d -path '*/\.*' -prune -o -not -name '.*' -type f -name '*some text*' -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 regular files under current directory tree that contain 'some text' in their names excluding paths that contain dot files/directories...
Find all regular files under current directory tree that contain 'some text' in their names excluding paths that contain dot files/directories
find . -not -path '*/\.*' -type f -name '*some text*'
GWHed/nl2bash
<|im_start|>system 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 regular files under current directory tree that match the regex 'tgt/etc/*' in their paths<|im_end|> <|im_start|>assistant find . -ty...
Find all regular files under current directory tree that match the regex 'tgt/etc/*' in their paths
find . -type f -name \* | grep "tgt/etc/*"
GWHed/nl2bash
<|im_start|>system 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 regular files under current directory tree that have not been modified in the last 31 days and delete them<|im_end|> <|im_start|>...
Find all the regular files under current directory tree that have not been modified in the last 31 days and delete them
find . -type f -mtime +31 -print0 | xargs -0 -r rm -f
GWHed/nl2bash
<|im_start|>system You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|> <|im_start|>user Find all regular files under current directory tree whose names end with 'cache' or 'xml' or 'html'<|im_end|> <|im_start|>assistant find . -ty...
Find all regular files under current directory tree whose names end with 'cache' or 'xml' or 'html'
find . -type f \( -name "*cache" -o -name "*xml" -o -name "*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 regular files under current directory tree without descending into './dir1' (except './dir1/subdir1*' pattern) and './dir2' directori...
Find all regular files under current directory tree without descending into './dir1' (except './dir1/subdir1*' pattern) and './dir2' directories
find . \( -path './dir1/*' -and -not -path './dir1/subdir1*' -or -path './dir2' \) -prune -or -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 the regular files under directory 'dir1' that are at least N levels deep<|im_end|> <|im_start|>assistant find dir1 -mindepth N -type ...
Find all the regular files under directory 'dir1' that are at least N levels deep
find dir1 -mindepth N -type f
GWHed/nl2bash
<|im_start|>system You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|> <|im_start|>user Find all regular files under test directory<|im_end|> <|im_start|>assistant find test -type f<|im_end|>
Find all regular files under test directory
find test -type f
GWHed/nl2bash
<|im_start|>system You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|> <|im_start|>user find all the reglar files which ahve been changed in the last 5 minutes and do not search in the sub directories.<|im_end|> <|im_start|>assist...
find all the reglar files which ahve been changed in the last 5 minutes and do not search in the sub directories.
find /home/pankaj -maxdepth 1 -cmin -5 -type f
GWHed/nl2bash
<|im_start|>system You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|> <|im_start|>user find all regular/normal files which have cpp folder in their path<|im_end|> <|im_start|>assistant find . -type f -path "*/cpp/*"<|im_end|>
find all regular/normal files which have cpp folder in their path
find . -type f -path "*/cpp/*"
GWHed/nl2bash
<|im_start|>system 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 regular files whose names contain "@" in directory tree ~/$folder<|im_end|> <|im_start|>assistant find ~/$folder -name "*@*" -type f<...
Find all regular files whose names contain "@" in directory tree ~/$folder
find ~/$folder -name "*@*" -type f
GWHed/nl2bash
<|im_start|>system You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|> <|im_start|>user Find all regular files whose names contain "@" in directory tree ~/$folder<|im_end|> <|im_start|>assistant find ~/$folder -name "*@*" -type f ...
Find all regular files whose names contain "@" in directory tree ~/$folder
find ~/$folder -name "*@*" -type f -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 regular files with '.jpg' (case insensitive) extension, sort them by name, print the output and also save the list to file 'file_lis...
Find all regular files with '.jpg' (case insensitive) extension, sort them by name, print the output and also save the list to file 'file_list.txt'
find . -type f|grep -i "\.jpg$" |sort| tee file_list.txt
GWHed/nl2bash