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 starting from the current directory which are exactly 100MB in size<|im_end|> <|im_start|>assistant find . -size 100M<|im_end|>
Find all files starting from the current directory which are exactly 100MB in size
find . -size 100M
GWHed/nl2bash
<|im_start|>system 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 starting from the current directory which are larger than 100MB<|im_end|> <|im_start|>assistant find . -size +100M<|im_end|>
Find all files starting from the current directory which are larger than 100MB
find . -size +100M
GWHed/nl2bash
<|im_start|>system 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 starting from the current directory which are smaller than 100MB<|im_end|> <|im_start|>assistant find . -size -100M<|im_end|>
Find all files starting from the current directory which are smaller than 100MB
find . -size -100M
GWHed/nl2bash
<|im_start|>system 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 starting with capital letter in the current folder<|im_end|> <|im_start|>assistant find . — name "[A‑Z]*" — print<|im_end|>
find all files starting with capital letter in the current folder
find . — name "[A‑Z]*" — 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 fles that have .ssh in the end and redirect the output to ssh-stuff<|im_end|> <|im_start|>assistant find / -name .ssh* -print | t...
find all the fles that have .ssh in the end and redirect the output to ssh-stuff
find / -name .ssh* -print | tee -a ssh-stuff
GWHed/nl2bash
<|im_start|>system 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 that have additional permissions<|im_end|> <|im_start|>assistant find / -perm -644<|im_end|>
Find all files that have additional permissions
find / -perm -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 the files that are modified exactly one day ago<|im_end|> <|im_start|>assistant find -daystart -mtime 1<|im_end|>
find all the files that are modified exactly one day ago
find -daystart -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 files that are modified in last 3 days<|im_end|> <|im_start|>assistant find . -type f -mtime -3<|im_end|>
Find all files that are modified in last 3 days
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 the files that are modified in the last 7 days<|im_end|> <|im_start|>assistant find -daystart -mtime -7<|im_end|>
find all the files that are modified in the last 7 days
find -daystart -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 that are not modified in the last 7 days<|im_end|> <|im_start|>assistant find -daystart -mtime +7<|im_end|>
find all the files that are not modified in the last 7 days
find -daystart -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 that are not named "MyCProgram.c" in the current directory only and without regards to case.<|im_end|> <|im_start|>assistan...
Find all the files that are not named "MyCProgram.c" in the current directory only and without regards to case.
find -maxdepth 1 -not -iname "MyCProgram.c"
GWHed/nl2bash
<|im_start|>system You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|> <|im_start|>user find all files that are readable and writable by their owner<|im_end|> <|im_start|>assistant find . -perm -600 -print<|im_end|>
find all files that are readable and writable by their owner
find . -perm -600 -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 that are readable or writable by their owner<|im_end|> <|im_start|>assistant find . -perm +600 -print<|im_end|>
find all files that are readable or writable by their owner
find . -perm +600 -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 that are set group ID to 10<|im_end|> <|im_start|>assistant find . -group 10 -perm -2000 -print<|im_end|>
Find all files that are set group ID to 10
find . -group 10 -perm -2000 -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 that are set group ID to staff<|im_end|> <|im_start|>assistant find . -group staff -perm -2000 -print<|im_end|>
Find all files that are set group ID to staff
find . -group staff -perm -2000 -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 that are set user ID to root<|im_end|> <|im_start|>assistant find . -user 0 -perm -4000 -print<|im_end|>
Find all files that are set user ID to root
find . -user 0 -perm -4000 -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 that are set user ID to root<|im_end|> <|im_start|>assistant find . -user root -perm -4000 -print<|im_end|>
Find all files that are set user ID to root
find . -user root -perm -4000 -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 that aren't owned by user www-data<|im_end|> <|im_start|>assistant find -not -user www-data<|im_end|>
Find all files that aren't owned by user www-data
find -not -user www-data
GWHed/nl2bash
<|im_start|>system 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 that have been changed exactly 24 hours ago<|im_end|> <|im_start|>assistant find . -ctime 1 -type f<|im_end|>
find all the files that have been changed exactly 24 hours ago
find . -ctime 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 files that have been modified exactly 1 day ago<|im_end|> <|im_start|>assistant find -mtime 1<|im_end|>
find all the files that have been modified exactly 1 day ago
find -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 the files that have been modified exactly 2 days ago<|im_end|> <|im_start|>assistant find -mtime 2<|im_end|>
find all the files that have been modified exactly 2 days ago
find -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 the files that have been modified exactly 24 hours ago<|im_end|> <|im_start|>assistant find . -type f -mtime 1<|im_end|>
find all the files that have been modified exactly 24 hours 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 the file that have been modified exactly 3 days ago ( considers day starting not 24 hours )<|im_end|> <|im_start|>assistant find ./ -...
find all the file that have been modified exactly 3 days ago ( considers day starting not 24 hours )
find ./ -daystart -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 the files that have been modified exactly yesterday (from 00:00 to 23:59 yesterday)<|im_end|> <|im_start|>assistant find . -type f -d...
find all the files that have been modified exactly yesterday (from 00:00 to 23:59 yesterday)
find . -type f -daystart -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 the files that have been modified in exactly 7*24 hours ago<|im_end|> <|im_start|>assistant find . -mtime 7<|im_end|>
find all the files that have been modified in exactly 7*24 hours ago
find . -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 that have been modified in the last 1 day<|im_end|> <|im_start|>assistant find . -type f -daystart -mtime -1<|im_end|>
find all the files that have been modified in the last 1 day
find . -type f -daystart -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 the files that have been modified in the last 1 day ago<|im_end|> <|im_start|>assistant find -mtime -1<|im_end|>
find all the files that have been modified in the last 1 day ago
find -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 the files that have been modified in the last 12 hours<|im_end|> <|im_start|>assistant find ./ -mtime -0.5<|im_end|>
find all the files that have been modified in the last 12 hours
find ./ -mtime -0.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 the files that have been modified in the last 2 day<|im_end|> <|im_start|>assistant find -daystart -mitime -1<|im_end|>
find all the files that have been modified in the last 2 day
find -daystart -mitime -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 the files that have been modified in the last 2 days<|im_end|> <|im_start|>assistant find . -type f -daystart -mtime -2<|im_end|>
find all the files that have been modified in the last 2 days
find . -type f -daystart -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 the files that have been modified in the last 24 hours<|im_end|> <|im_start|>assistant find . -type f -mtime -1<|im_end|>
find all the files that have been modified in the last 24 hours
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 the files that have been modified in the last 4 days ( daystart is used to check files according to date i.e, all files modified from...
find all the files that have been modified in the last 4 days ( daystart is used to check files according to date i.e, all files modified from currentDay-4 00:00:00 to current day) and copy them to folder.
find . -mtime 4 -daystart -exec cp -a {} /home/devnet/fileshare\$ on\ X.X.X.X/RECOVER/ \;
GWHed/nl2bash
<|im_start|>system 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 that have been modified in the last 60 minutes<|im_end|> <|im_start|>assistant find -mmin -60<|im_end|>
find all the files that have been modified in the last 60 minutes
find -mmin -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 files that have been modified in the last seven days.<|im_end|> <|im_start|>assistant find . -mtime -7 -type f<|im_end|>
Find all files that have been modified in the last seven days.
find . -mtime -7 -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 files that have been modified in the last 7 days,<|im_end|> <|im_start|>assistant find . -mtime -7 -print<|im_end|>
find all the files that have been modified in the last 7 days,
find . -mtime -7 -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 that have been modified since the last time we checked<|im_end|> <|im_start|>assistant find /etc -newer /var/log/backup.tim...
find all the files that have been modified since the last time we checked
find /etc -newer /var/log/backup.timestamp -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 that have been modified today<|im_end|> <|im_start|>assistant find . -type f -mtime 0<|im_end|>
find all the files that have been modified today
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 the files that have been modified today<|im_end|> <|im_start|>assistant find /tmp/test/* -mtime +0<|im_end|>
find all the files that have been modified today
find /tmp/test/* -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 that have been modified today(from the strart of the day)<|im_end|> <|im_start|>assistant find . -type f -daystart -mtime 0...
find all the files that have been modified today(from the strart of the day)
find . -type f -daystart -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 files that belong to group root<|im_end|> <|im_start|>assistant find / -group root<|im_end|>
Find all files that belong to group root
find / -group root
GWHed/nl2bash
<|im_start|>system 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 that belong to root user<|im_end|> <|im_start|>assistant find . -uid 0 -print<|im_end|>
find all files that belong to root user
find . -uid 0 -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 that belongs to user Tecmint under /home directory<|im_end|> <|im_start|>assistant find /home -user tecmint<|im_end|>
Find all files that belongs to user Tecmint under /home directory
find /home -user tecmint
GWHed/nl2bash
<|im_start|>system 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 that have either a .php or a .js extension<|im_end|> <|im_start|>assistant find -regextype posix-egrep -regex '.*(php|js)$'<|im...
Find all files that have either a .php or a .js extension
find -regextype posix-egrep -regex '.*(php|js)$'
GWHed/nl2bash
<|im_start|>system 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 that match "[a-f0-9\-]{36}\.jpg" of grep<|im_end|> <|im_start|>assistant find . * | grep -P "[a-f0-9\-]{36}\.jpg"<|im_end|>
find all files that match "[a-f0-9\-]{36}\.jpg" of grep
find . * | grep -P "[a-f0-9\-]{36}\.jpg"
GWHed/nl2bash
<|im_start|>system 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 that names are 'apt' and display detailed list<|im_end|> <|im_start|>assistant find / -name "apt" -ls<|im_end|>
find all files that names are 'apt' and display detailed list
find / -name "apt" -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 files that names are game<|im_end|> <|im_start|>assistant find / -name game<|im_end|>
find all files that names are game
find / -name game
GWHed/nl2bash
<|im_start|>system 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 that have not been modified in the last 2 days<|im_end|> <|im_start|>assistant find -mtime +2<|im_end|>
find all the files that have not been modified in the last 2 days
find -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 the files that have not been modified in the last 24 hours<|im_end|> <|im_start|>assistant find /tmp/test/* -mtime +1<|im_end|>
find all the files that have not been modified in the last 24 hours
find /tmp/test/* -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 the file that have not been modified in the last 3 days ( considers day starting not 24 hours )<|im_end|> <|im_start|>assistant find ...
find all the file that have not been modified in the last 3 days ( considers day starting not 24 hours )
find ./ -daystart -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 the files that were modified two days ago<|im_end|> <|im_start|>assistant find . -daystart -ctime 1 -type f<|im_end|>
find all the files that were modified two days ago
find . -daystart -ctime 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 files that were modified between 90 to 100 days ago in home directory and delete then .<|im_end|> <|im_start|>assistant find /home -t...
find all files that were modified between 90 to 100 days ago in home directory and delete then .
find /home -type f -mtime +90 -mtime -100 -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 that were modified exactly one day ago<|im_end|> <|im_start|>assistant find . -mtime 1<|im_end|>
Find all the files that were modified exactly one day ago
find . -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 the files that were modified more than one day ago<|im_end|> <|im_start|>assistant find . -mtime +1<|im_end|>
Find all the files that were modified more than one day ago
find . -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 the files that were modified yesterday in the current directory.<|im_end|> <|im_start|>assistant find . -daystart -ctime 0 -type f<|i...
find all the files that were modified yesterday in the current directory.
find . -daystart -ctime 0 -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 files that were not accessed in the past 100 days<|im_end|> <|im_start|>assistant find /home -atime +100<|im_end|>
Find all files that were not accessed in the past 100 days
find /home -atime +100
GWHed/nl2bash
<|im_start|>system 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 under "/path" that do not contain a "." and append ".jpg" to their file name<|im_end|> <|im_start|>assistant find /path -type f...
Find all files under "/path" that do not contain a "." and append ".jpg" to their file name
find /path -type f -not -name "*.*" -print0 | xargs -0 rename 's/(.)$/$1.jpg/'
GWHed/nl2bash
<|im_start|>system 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 under "/usr"<|im_end|> <|im_start|>assistant find /usr -print<|im_end|>
find all files under "/usr"
find /usr -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 under $1 directory excluding hidden files and append a null character at the end of each of their paths<|im_end|> <|im_start|>a...
Find all files under $1 directory excluding hidden files and append a null character at the end of each of their paths
find "$1" -path "*/.*" -prune -o \( -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 files under $1 not matching the regex '.*/\..*' and execute hashmove on each of them with the file path as its argument<|im_end|> <|i...
Find all files under $1 not matching the regex '.*/\..*' and execute hashmove on each of them with the file path as its argument
find $1 -type f -not -regex '.*/\..*' -exec $0 hashmove '{}' \;
GWHed/nl2bash
<|im_start|>system 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 under $YOUR_DIR<|im_end|> <|im_start|>assistant find $YOUR_DIR -type f<|im_end|>
Find all files under $YOUR_DIR
find $YOUR_DIR -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 files under $dir<|im_end|> <|im_start|>assistant find "$dir" -type f<|im_end|>
Find all files under $dir
find "$dir" -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 files under $dir<|im_end|> <|im_start|>assistant find $dir -type f<|im_end|>
Find all files under $dir
find $dir -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 files under $root_dir<|im_end|> <|im_start|>assistant find $root_dir -type f<|im_end|>
Find all files under $root_dir
find $root_dir -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 files under $source_dir that match the regex expanded by $input_file_type in their paths<|im_end|> <|im_start|>assistant find "$sourc...
Find all files under $source_dir that match the regex expanded by $input_file_type in their paths
find "$source_dir" -type f|egrep "$input_file_type"
GWHed/nl2bash
<|im_start|>system 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 under $x directory and set read-write permission for owner and group and no permission for other for those files<|im_end|> <|im...
Find all files under $x directory and set read-write permission for owner and group and no permission for other for those files
find ${x} -type f -exec chmod ug=rw,o= '{}' \;
GWHed/nl2bash
<|im_start|>system 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 under ${searchpath} that match the regex ${string1}.*${string2}.*${string3} in their contents where ${string1} etc.. will be e...
Find all files under ${searchpath} that match the regex ${string1}.*${string2}.*${string3} in their contents where ${string1} etc.. will be expanded
find "${searchpath}" -type f -print0 | xargs -0 grep -l -E "${string1}".*"${string2}".*"${string3}"
GWHed/nl2bash
<|im_start|>system 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 under ${searchpath} that match the regex ${string1}.*${string2}.*${string3} in their contents where ${string1} etc.. will be e...
Find all files under ${searchpath} that match the regex ${string1}.*${string2}.*${string3} in their contents where ${string1} etc.. will be expanded
find "${searchpath}" -type f -print0 | xargs -0 grep -l -E "${string1}.*${string2}.*${string3}"
GWHed/nl2bash
<|im_start|>system 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 under '/usr/local' directory tree which have been modified exactly 24 hours ago<|im_end|> <|im_start|>assistant find /usr/l...
find all the files under '/usr/local' directory tree which have been modified exactly 24 hours ago
find /usr/local -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 files under ./lib/app and sort them<|im_end|> <|im_start|>assistant find ./lib/app -type f | sort<|im_end|>
Find all files under ./lib/app and sort them
find ./lib/app -type f | 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 files under the /etc directory and display IP address patterns in them<|im_end|> <|im_start|>assistant find /etc -type f -exec cat '{...
find all files under the /etc directory and display IP address patterns in them
find /etc -type f -exec cat '{}' \; | tr -c '.[:digit:]' '\n' \ | grep '^[^.][^.]*\.[^.][^.]*\.[^.][^.]*\.[^.][^.]*$'
GWHed/nl2bash
<|im_start|>system 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 under /etc directory which are larger than 100k<|im_end|> <|im_start|>assistant find /etc -size +100k<|im_end|>
Find all the files under /etc directory which are larger than 100k
find /etc -size +100k
GWHed/nl2bash
<|im_start|>system 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 under /home directory with name tecmint.txt<|im_end|> <|im_start|>assistant find /home -name tecmint.txt<|im_end|>
Find all the files under /home directory with name tecmint.txt
find /home -name tecmint.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 under /home/feeds/data without descending into *def/incoming* and *456/incoming* paths<|im_end|> <|im_start|>assistant find /ho...
Find all files under /home/feeds/data without descending into *def/incoming* and *456/incoming* paths
find /home/feeds/data -type f -not -path "*def/incoming*" -not -path "*456/incoming*"
GWHed/nl2bash
<|im_start|>system 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 under /home/myfolder that match the regex 'abc.*def.*ghi' in their contents<|im_end|> <|im_start|>assistant find /home/myfolder...
Find all files under /home/myfolder that match the regex 'abc.*def.*ghi' in their contents
find /home/myfolder -type f -print0 | xargs -0 grep -l -E 'abc.*def.*ghi'
GWHed/nl2bash
<|im_start|>system 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 under /home/mywebsite/public_html/sites/all/modules and set their permission to 640<|im_end|> <|im_start|>assistant find /home/...
Find all files under /home/mywebsite/public_html/sites/all/modules and set their permission to 640
find /home/mywebsite/public_html/sites/all/modules -type f -exec chmod 640 {} +
GWHed/nl2bash
<|im_start|>system 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 under /home/username/public_html/modules and set their permission to 640<|im_end|> <|im_start|>assistant find /home/username/p...
Find all files under /home/username/public_html/modules and set their permission to 640
find /home/username/public_html/modules -type f -exec chmod 640 {} +
GWHed/nl2bash
<|im_start|>system 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 under /home/username/public_html/sites/all/modules and set their permission to 640<|im_end|> <|im_start|>assistant find /home/u...
Find all files under /home/username/public_html/sites/all/modules and set their permission to 640
find /home/username/public_html/sites/all/modules -type f -exec chmod 640 {} +
GWHed/nl2bash
<|im_start|>system 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 under /home/username/public_html/sites/all/themes and set their permission to 640<|im_end|> <|im_start|>assistant find /home/us...
Find all files under /home/username/public_html/sites/all/themes and set their permission to 640
find /home/username/public_html/sites/all/themes -type f -exec chmod 640 {} +
GWHed/nl2bash
<|im_start|>system 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 under /home/username/public_html/sites/default/files and set their permission to 660<|im_end|> <|im_start|>assistant find /home...
Find all files under /home/username/public_html/sites/default/files and set their permission to 660
find /home/username/public_html/sites/default/files -type f -exec chmod 660 {} +
GWHed/nl2bash
<|im_start|>system 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 under /home/username/public_html/themes and set their permission to 640<|im_end|> <|im_start|>assistant find /home/username/pub...
Find all files under /home/username/public_html/themes and set their permission to 640
find /home/username/public_html/themes -type f -exec chmod 640 {} +
GWHed/nl2bash
<|im_start|>system 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 under /mnt/naspath directory without descending into .snapshot directory that were modified in last 24 hours with null characte...
Find all files under /mnt/naspath directory without descending into .snapshot directory that were modified in last 24 hours with null character as the delimiter
find /mnt/naspath -name .snapshot -prune -o \( -type f -mtime 0 -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 under /mnt/naspath directory without descending into .snapshot directory that were modified in last 24 hours with null characte...
Find all files under /mnt/naspath directory without descending into .snapshot directory that were modified in last 24 hours with null character as the delimiter
find /mnt/naspath \! \(-name .snapshot -prune\) -type f -mtime 0 -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 under /mountpoint and below which have hard links<|im_end|> <|im_start|>assistant find /mountpoint -type f -links +1<|im_end|>
Find all files under /mountpoint and below which have hard links
find /mountpoint -type f -links +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 under /myfiles with 647 permission<|im_end|> <|im_start|>assistant find /myfiles -type f -perm -647<|im_end|>
Find all files under /myfiles with 647 permission
find /myfiles -type f -perm -647
GWHed/nl2bash
<|im_start|>system 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 under /myfiles with read-write access for others<|im_end|> <|im_start|>assistant find /myfiles -type f -perm -o+rw<|im_end|>
Find all files under /myfiles with read-write access for others
find /myfiles -type f -perm -o+rw
GWHed/nl2bash
<|im_start|>system 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 under /path and below writable by `group' or `other'<|im_end|> <|im_start|>assistant find /path -perm /g+w,o+w<|im_end|>
Find all files under /path and below writable by `group' or `other'
find /path -perm /g+w,o+w
GWHed/nl2bash
<|im_start|>system You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|> <|im_start|>user Find all files under /path/to/Dir and set their permission to 644<|im_end|> <|im_start|>assistant sudo find /path/to/Dir -type f -print0 | xar...
Find all files under /path/to/Dir and set their permission to 644
sudo find /path/to/Dir -type f -print0 | xargs -0 sudo 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 files under /path/to/base/dir and change their permission to 644<|im_end|> <|im_start|>assistant chmod 644 $(find /path/to/base/dir -...
Find all files under /path/to/base/dir and change their permission to 644
chmod 644 $(find /path/to/base/dir -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 files under /path/to/base/dir and change their permission to 644<|im_end|> <|im_start|>assistant find /path/to/base/dir -type f -exec...
Find all files under /path/to/base/dir and change their permission to 644
find /path/to/base/dir -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 files under /path/to/base/dir and change their permission to 644<|im_end|> <|im_start|>assistant find /path/to/base/dir -type f -prin...
Find all files under /path/to/base/dir and change their permission to 644
find /path/to/base/dir -type f -print0 | xargs -0 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 files under /path/to/dir and change their permission to 644<|im_end|> <|im_start|>assistant find /path/to/dir -type f -exec chmod 644...
Find all files under /path/to/dir and change their permission to 644
find /path/to/dir -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 files under /path/to/dir that were modified less than 7 days ago and show only first several lines of output<|im_end|> <|im_start|>as...
Find all files under /path/to/dir that were modified less than 7 days ago and show only first several lines of output
find /path/to/dir -type f -mtime -7 -print0 | xargs -0 ls -lt | 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 under /path/to/dir that were modified less than 7 days ago with null character as the delimiter<|im_end|> <|im_start|>assistant...
Find all files under /path/to/dir that were modified less than 7 days ago with null character as the delimiter
find /path/to/dir -type f -mtime -7 -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 under /path/to/input/ that match the case insensitive string literal 'spammer@spammy.com' in their contents<|im_end|> <|im_star...
Find all files under /path/to/input/ that match the case insensitive string literal 'spammer@spammy.com' in their contents
find /path/to/input/ -type f -exec grep -qiF spammer@spammy.com \{\} \; -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 under /somefolder matching the case insensitive regex '\(.*error.*\)\|\(^second.*\log$\)\|\(.*FFPC\.log$\)' in their paths<|im_...
Find all files under /somefolder matching the case insensitive regex '\(.*error.*\)\|\(^second.*\log$\)\|\(.*FFPC\.log$\)' in their paths
find /somefolder -type f | grep -i '\(.*error.*\)\|\(^second.*\log$\)\|\(.*FFPC\.log$\)'
GWHed/nl2bash
<|im_start|>system You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|> <|im_start|>user Find all files under /somefolder matching the extended case insensitive regex '\./(.*\.error.*|second.*log|.*FFPC\.log)$' in their paths<|im_e...
Find all files under /somefolder matching the extended case insensitive regex '\./(.*\.error.*|second.*log|.*FFPC\.log)$' in their paths
find -E /somefolder -type f -iregex '\./(.*\.error.*|second.*log|.*FFPC\.log)$'
GWHed/nl2bash
<|im_start|>system You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|> <|im_start|>user Find all files under /somefolder matching the pattern expanded by $FILE_PATTERN in thier names<|im_end|> <|im_start|>assistant find /somefolde...
Find all files under /somefolder matching the pattern expanded by $FILE_PATTERN in thier names
find /somefolder -type f -name $FILE_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 files under /var/www directory and set their permission to 644<|im_end|> <|im_start|>assistant sudo find /var/www -type f -print0 | x...
Find all files under /var/www directory and set their permission to 644
sudo find /var/www -type f -print0 | xargs -0 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 files under and below /dir that were modified less than 60 minutes ago<|im_end|> <|im_start|>assistant find /dir -mmin -60<|im_end|>
Find all files under and below /dir that were modified less than 60 minutes ago
find /dir -mmin -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 files under and below the current working directory with the word California in the file<|im_end|> <|im_start|>assistant find . -type...
Find all files under and below the current working directory with the word California in the file
find . -type f -exec grep California {} \; -print
GWHed/nl2bash