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 with '.r' and '.c' in their names under current directory tree<|im_end|> <|im_start|>assistant find ./ -type f \( -name...
Find all regular files with '.r' and '.c' in their names under current directory tree
find ./ -type f \( -name '*.r*' -o -name '*.c*' \) -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 with '.tgz' and '.gz' extensions and delete the oldest file under '/home/backups' directory tree<|im_end|> <|im_sta...
Find all the regular files with '.tgz' and '.gz' extensions and delete the oldest file under '/home/backups' directory tree
find /home/backups -type f \( -name \*.tgz -o -name \*.gz \) -print0 | xargs -0 ls -t | tail -1 | xargs 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 with '.what_to_find' extension in the entire filesystem and move them to directory '/new_directory'<|im_end|> <|im_star...
Find all regular files with '.what_to_find' extension in the entire filesystem and move them to directory '/new_directory'
find / -iname "*.what_to_find" -type f -exec mv {} /new_directory \;
GWHed/nl2bash
<|im_start|>system You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|> <|im_start|>user Find all regular files with the group read permission set in your home directory and below and output detailed information about each file.<|i...
Find all regular files with the group read permission set in your home directory and below and output detailed information about each file.
find . -perm -g=r -type f -exec ls -l {} \;
GWHed/nl2bash
<|im_start|>system You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|> <|im_start|>user Find all regular files with name pattern $filename under $fileloc directory tree<|im_end|> <|im_start|>assistant find "$fileloc" -type f -prun...
Find all regular files with name pattern $filename under $fileloc directory tree
find "$fileloc" -type f -prune -name "$filename" -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 with permissions 777 under and below /home/user/demo/<|im_end|> <|im_start|>assistant find /home/user/demo -type f -per...
Find all regular files with permissions 777 under and below /home/user/demo/
find /home/user/demo -type f -perm 777 -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 with space in their names under current directory and rename them by replacing all spaces with _<|im_end|> <|im_start|>...
Find all regular files with space in their names under current directory and rename them by replacing all spaces with _
find -name "* *" -type f | rename 's/ /_/g'
GWHed/nl2bash
<|im_start|>system You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|> <|im_start|>user Find all regular non-hidden files in the current directory and its subdirectories<|im_end|> <|im_start|>assistant find . -not -path '*/\.*' -t...
Find all regular non-hidden files in the current directory and its subdirectories
find . -not -path '*/\.*' -type f \( ! -iname ".*" \)
GWHed/nl2bash
<|im_start|>system You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|> <|im_start|>user Find all sample* files/directories under current directory and print 'program {}-out {}' where {} will expand to file paths<|im_end|> <|im_sta...
Find all sample* files/directories under current directory and print 'program {}-out {}' where {} will expand to file paths
find . -name "sample*" | xargs -i echo program {}-out {}
GWHed/nl2bash
<|im_start|>system You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|> <|im_start|>user Find all sample*_1.txt files/directories under current directory<|im_end|> <|im_start|>assistant find . -name "sample*_1.txt"<|im_end|>
Find all sample*_1.txt files/directories under current directory
find . -name "sample*_1.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 SGID bit files whose permissions set to 644<|im_end|> <|im_start|>assistant find / -perm 2644<|im_end|>
Find all the SGID bit files whose permissions set to 644
find / -perm 2644
GWHed/nl2bash
<|im_start|>system You are 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 SGID files in the current directory tree<|im_end|> <|im_start|>assistant find . -perm /g+s<|im_end|>
Find all the SGID files in the current directory tree
find . -perm /g+s
GWHed/nl2bash
<|im_start|>system You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|> <|im_start|>user Find all SGID set files<|im_end|> <|im_start|>assistant find / -perm /g=s<|im_end|>
Find all SGID set files
find / -perm /g=s
GWHed/nl2bash
<|im_start|>system You are 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 shell scripts or perl files in the current directory<|im_end|> <|im_start|>assistant find . -type f \( -name "*.sh" -o -name "*.p...
find all the shell scripts or perl files in the current directory
find . -type f \( -name "*.sh" -o -name "*.pl" \)
GWHed/nl2bash
<|im_start|>system You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|> <|im_start|>user find all sqlite files in the current directory.<|im_end|> <|im_start|>assistant find ./ -name "*.sqlite"<|im_end|>
find all sqlite files in the current directory.
find ./ -name "*.sqlite"
GWHed/nl2bash
<|im_start|>system You are 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 Sticky Bit set files in entire file system whose permission are 551<|im_end|> <|im_start|>assistant find / -perm 0551<|im_end|>
Find all the Sticky Bit set files in entire file system whose permission are 551
find / -perm 0551
GWHed/nl2bash
<|im_start|>system You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|> <|im_start|>user Find all strings matching pattern "^${KEY}${DELIMITER}" in $FILE file and print rest of string after $DELIMITER<|im_end|> <|im_start|>assistan...
Find all strings matching pattern "^${KEY}${DELIMITER}" in $FILE file and print rest of string after $DELIMITER
cat "$FILE" | grep "^${KEY}${DELIMITER}" | cut -f2- -d"$DELIMITER"
GWHed/nl2bash
<|im_start|>system You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|> <|im_start|>user Finds all strings with parent folder of path '$path' in 'file', and saves result in 'x' variable.<|im_end|> <|im_start|>assistant x=$(grep "$(...
Finds all strings with parent folder of path '$path' in 'file', and saves result in 'x' variable.
x=$(grep "$(dirname "$path")" 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 subdirectories of the current directory except hidden ones<|im_end|> <|im_start|>assistant find -maxdepth 1 -type d ! -name ".*"<|im_...
Find all subdirectories of the current directory except hidden ones
find -maxdepth 1 -type d ! -name ".*"
GWHed/nl2bash
<|im_start|>system You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|> <|im_start|>user Find all SUID files .<|im_end|> <|im_start|>assistant find / -perm /u=s<|im_end|>
Find all SUID files .
find / -perm /u=s
GWHed/nl2bash
<|im_start|>system You are 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 SUID files in the current directory tree<|im_end|> <|im_start|>assistant find . -perm /u=s<|im_end|>
Find all the SUID files in the current directory tree
find . -perm /u=s
GWHed/nl2bash
<|im_start|>system You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|> <|im_start|>user Find all SUID files in entire file system<|im_end|> <|im_start|>assistant find / -perm +4000<|im_end|>
Find all SUID files in entire file system
find / -perm +4000
GWHed/nl2bash
<|im_start|>system You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|> <|im_start|>user Find all SUID files in entire file system<|im_end|> <|im_start|>assistant find / -perm +u=s<|im_end|>
Find all SUID files in entire file system
find / -perm +u=s
GWHed/nl2bash
<|im_start|>system You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|> <|im_start|>user Find all SUID set files<|im_end|> <|im_start|>assistant find / -perm /u=s<|im_end|>
Find all SUID set files
find / -perm /u=s
GWHed/nl2bash
<|im_start|>system You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|> <|im_start|>user Find all symbolic links containing 'javaplugin' in their names under '/usr' directory tree<|im_end|> <|im_start|>assistant find /usr/ -lname *...
Find all symbolic links containing 'javaplugin' in their names under '/usr' directory tree
find /usr/ -lname *javaplugin*
GWHed/nl2bash
<|im_start|>system You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|> <|im_start|>user Find all symbolic links containing 'vim' in their names uder '/usr/bin' directory tree<|im_end|> <|im_start|>assistant find /usr/bin -name '*v...
Find all symbolic links containing 'vim' in their names uder '/usr/bin' directory tree
find /usr/bin -name '*vim*' -type 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 symbolic links in the current folder<|im_end|> <|im_start|>assistant find -type l<|im_end|>
find all symbolic links in the current folder
find -type 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 symbolic links in the current folder<|im_end|> <|im_start|>assistant find /etc -type l -print<|im_end|>
find all the symbolic links in the current folder
find /etc -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 the symbolic links in the current folder and follow to the pointing file<|im_end|> <|im_start|>assistant find -L<|im_end|>
find all the symbolic links in the current folder and follow to the pointing file
find -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 symbolic links starting from the current directory and list them<|im_end|> <|im_start|>assistant find . -type l -ls<|im_end|>
Find all symbolic links starting from the current directory and list them
find . -type l -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 symbolic links under '/proc/$pid/fd' directory tree with name pattern '$save_path/sess_\*' and update their timestamps<|im_end|> <|im...
Find all symbolic links under '/proc/$pid/fd' directory tree with name pattern '$save_path/sess_\*' and update their timestamps
find "/proc/$pid/fd" -ignore_readdir_race -lname "$save_path/sess_\*" -exec touch -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 symbolic links under '/some/directory' driectory tree<|im_end|> <|im_start|>assistant find /some/directory -type l -print<|im_end|>
Find all symbolic links under '/some/directory' driectory tree
find /some/directory -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 symbolic links under /usr<|im_end|> <|im_start|>assistant find /usr -type l<|im_end|>
find all symbolic links under /usr
find /usr -type 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 symbolic links under current directory that are not hard links<|im_end|> <|im_start|>assistant find . -type f -links 1 -print<|im_end...
Find all symbolic links under current directory that are not hard links
find . -type f -links 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 symbolic links under the current folder and below<|im_end|> <|im_start|>assistant find –L –xtype l<|im_end|>
Find all symbolic links under the current folder and below
find –L –xtype 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 symlinks under current directory<|im_end|> <|im_start|>assistant find ./ -type l<|im_end|>
Find all symlinks under current directory
find ./ -type 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 syslog directories under /var/log directory<|im_end|> <|im_start|>assistant find /var/log -name "syslog" -type d<|im_end|>
Find all syslog directories under /var/log directory
find /var/log -name "syslog" -type d
GWHed/nl2bash
<|im_start|>system You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|> <|im_start|>user Find all target files outside the current working directory with symbolic links in the current working directory<|im_end|> <|im_start|>assista...
Find all target files outside the current working directory with symbolic links in the current working directory
find . -type l -exec readlink -f '{}' \; | grep -v "^`readlink -f ${PWD}`"
GWHed/nl2bash
<|im_start|>system You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|> <|im_start|>user find all teh script files in a directory<|im_end|> <|im_start|>assistant find /home/john -name "*.sh" -type f -print<|im_end|>
find all teh script files in a directory
find /home/john -name "*.sh" -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 test.txt files/directories under current directory<|im_end|> <|im_start|>assistant find . -name test.txt<|im_end|>
Find all test.txt files/directories under current directory
find . -name test.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 test1.h files under current directory<|im_end|> <|im_start|>assistant sudo find . -name test1.h<|im_end|>
Find all test1.h files under current directory
sudo find . -name test1.h
GWHed/nl2bash
<|im_start|>system You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|> <|im_start|>user Find all test2.h files under current directory<|im_end|> <|im_start|>assistant sudo find . -name test2.h<|im_end|>
Find all test2.h files under current directory
sudo find . -name test2.h
GWHed/nl2bash
<|im_start|>system You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|> <|im_start|>user find all text files in the current directory and compress them to a cpio file<|im_end|> <|im_start|>assistant find . -name '*.txt' | cpio -pdm...
find all text files in the current directory and compress them to a cpio file
find . -name '*.txt' | cpio -pdm /path/to/destdir
GWHed/nl2bash
<|im_start|>system You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|> <|im_start|>user find all the text files in the current directory which have been modified in the last 4 days and not today and copy them to another folder<|im...
find all the text files in the current directory which have been modified in the last 4 days and not today and copy them to another folder
find . -name "*.txt" -type f -daystart -mtime -4 -mtime +0|xargs -i cp {} /home/ozuma/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 text files in current folder and delete them<|im_end|> <|im_start|>assistant find . -name ".txt" -exec rm "{}" \;<|im_end|>
find all text files in current folder and delete them
find . -name ".txt" -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 text files in current folder and display all files that have the alphabet a in their name<|im_end|> <|im_start|>assistant find . -nam...
find all text files in current folder and display all files that have the alphabet a in their name
find . -name ".txt" | grep a
GWHed/nl2bash
<|im_start|>system You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|> <|im_start|>user find all the text files in the current folder and display their Permissions and size along with their name<|im_end|> <|im_start|>assistant fin...
find all the text files in the current folder and display their Permissions and size along with their name
find . -name "*.txt" -printf "%M %f \t %s bytes \t%y\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 the text files in current folder and force delete them<|im_end|> <|im_start|>assistant find . -name "*.txt" | xargs rm -rf<|im_end|>
find all the text files in current folder and force delete them
find . -name "*.txt" | xargs rm -rf
GWHed/nl2bash
<|im_start|>system You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|> <|im_start|>user find all the text files in the current folder and do not search in somedir, bin directories<|im_end|> <|im_start|>assistant find . -name some...
find all the text files in the current folder and do not search in somedir, bin directories
find . -name somedir -prune , -name bin -prune -o -name "*.txt" -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 text files in the current folder and do not search in somedir, bin directories<|im_end|> <|im_start|>assistant find . \( -name s...
find all the text files in the current folder and do not search in somedir, bin directories
find . \( -name somedir -prune \) , \( -name bin -prune \) -o \( -name "*.txt" -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 text files in the current folder and do not search in the sub directories<|im_end|> <|im_start|>assistant find -maxdepth 1 -inam...
find all the text files in the current folder and do not search in the sub directories
find -maxdepth 1 -iname "*.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 text files in the current folder excluding those that are presenti n the folder "/svn" and search for a pattern.<|im_end|> <|im_start...
find all text files in the current folder excluding those that are presenti n the folder "/svn" and search for a pattern.
find . -name '*.txt' \! -wholename '*/.svn/*' -exec grep 'sometext' '{}' \; -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 text files in the current folder expect those which are in the path "sk"<|im_end|> <|im_start|>assistant find . -path "./sk" -pru...
find all the text files in the current folder expect those which are in the path "sk"
find . -path "./sk" -prune -o -name "*.txt" -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 text files in the current folder starting with "somefiles-"<|im_end|> <|im_start|>assistant find . -name "somefiles-*-.txt" -type...
find all the text files in the current folder starting with "somefiles-"
find . -name "somefiles-*-.txt" -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 text files in the current folder which have been modified after the file /tmp/newerthan<|im_end|> <|im_start|>assistant find . -name ...
find all text files in the current folder which have been modified after the file /tmp/newerthan
find . -name "*.txt" -newer /tmp/newerthan
GWHed/nl2bash
<|im_start|>system You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|> <|im_start|>user find all text files in current folder; which have been modified exactly 5 days ago<|im_end|> <|im_start|>assistant find . –name "*.txt" –mtime...
find all text files in current folder; which have been modified exactly 5 days ago
find . –name "*.txt" –mtime 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 text files in the folder "FFF" and find the md5sum for them<|im_end|> <|im_start|>assistant find FFF -name "*.txt" -exec md5sum '{}' ...
find all text files in the folder "FFF" and find the md5sum for them
find FFF -name "*.txt" -exec md5sum '{}' \;
GWHed/nl2bash
<|im_start|>system You are 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 text files in the folder /home/calvin and do not search beyond 2 levels<|im_end|> <|im_start|>assistant find /home/calvin/ -maxde...
find all the text files in the folder /home/calvin and do not search beyond 2 levels
find /home/calvin/ -maxdepth 2 -name “*.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 text files in the folder /home/calvin which are atleast below 2 levels<|im_end|> <|im_start|>assistant find /home/calvin/ -mindep...
find all the text files in the folder /home/calvin which are atleast below 2 levels
find /home/calvin/ -mindepth 2 -name “*.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 text files in the home folder<|im_end|> <|im_start|>assistant find ~ -name "*.txt" — print<|im_end|>
find all the text files in the home folder
find ~ -name "*.txt" — 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 text files in user/directory/ which have been modified today and display the last line of these files<|im_end|> <|im_start|>assistant...
find all text files in user/directory/ which have been modified today and display the last line of these files
find /user/directory/ -name "*txt" -mtime 0 -type f -printf '%p: ' -exec tail -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 text files which are present in the current directory excludinghidden files.<|im_end|> <|im_start|>assistant find . -type f \( -i...
find all the text files which are present in the current directory excludinghidden files.
find . -type f \( -iname "*.txt" ! -iname ".*" \)
GWHed/nl2bash
<|im_start|>system You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|> <|im_start|>user find all text files which have extra extensions in the current folder<|im_end|> <|im_start|>assistant find . -name '*.text' -exec $SHELL -c '[...
find all text files which have extra extensions in the current folder
find . -name '*.text' -exec $SHELL -c '[ ! -f ${1%.*} ]' $SHELL '{}' ';' -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 tools generated files a.out , *.o and core dump files which not required to us these all junk files & delete from current directo...
find all tools generated files a.out , *.o and core dump files which not required to us these all junk files & delete from current directory .
find . \( -name a.out -o -name '*.' -o -name 'core' \) -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 top-level files in the current folder but ones with name like '*Music*' to the 'dest/' folder.<|im_end|> <|im_start|>assistant find ....
Find all top-level files in the current folder but ones with name like '*Music*' to the 'dest/' folder.
find . -maxdepth 1 -name '*Music*' -prune -o -print0 | xargs -0 -i cp {} dest/
GWHed/nl2bash
<|im_start|>system You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|> <|im_start|>user Find all TXT files in the current directory and copy them to directory "$HOME/newdir"<|im_end|> <|im_start|>assistant find "$HOME" -name '*.tx...
Find all TXT files in the current directory and copy them to directory "$HOME/newdir"
find "$HOME" -name '*.txt' -type f -not -path "$HOME/newdir/*" -print0 | xargs -0 cp -t "$HOME/newdir"
GWHed/nl2bash
<|im_start|>system You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|> <|im_start|>user Find all TXT files in the current directory and copy them to directory "$HOME/newdir"<|im_end|> <|im_start|>assistant find "$HOME" -name '*.tx...
Find all TXT files in the current directory and copy them to directory "$HOME/newdir"
find "$HOME" -name '*.txt' -type f -print0 | sort -zu | xargs -0 cp -t "$HOME/newdir"
GWHed/nl2bash
<|im_start|>system You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|> <|im_start|>user Find all TXT files in the current directory and copy them to directory "$HOME/newdir"<|im_end|> <|im_start|>assistant find "$HOME" -name '*.tx...
Find all TXT files in the current directory and copy them to directory "$HOME/newdir"
find "$HOME" -name '*.txt' -type f -print0 | xargs -0 cp -ut "$HOME/newdir"
GWHed/nl2bash
<|im_start|>system You are 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 undo files in the current folder and display the toal lines, words, characters<|im_end|> <|im_start|>assistant find ./ -name *.un...
find all the undo files in the current folder and display the toal lines, words, characters
find ./ -name *.undo | xargs wc
GWHed/nl2bash
<|im_start|>system You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|> <|im_start|>user Finds all users logged in via ssh.<|im_end|> <|im_start|>assistant w | grep ssh<|im_end|>
Finds all users logged in via ssh.
w | grep ssh
GWHed/nl2bash
<|im_start|>system You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|> <|im_start|>user find all the video files in the home folder<|im_end|> <|im_start|>assistant find ~ -type f -exec file -i {} + | grep video<|im_end|>
find all the video files in the home folder
find ~ -type f -exec file -i {} + | grep video
GWHed/nl2bash
<|im_start|>system You are 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 word press configuration php files in the folder /var/www and do not search beyond two levels<|im_end|> <|im_start|>assistant fin...
find all the word press configuration php files in the folder /var/www and do not search beyond two levels
find /var/www/ -name wp-config.php -maxdepth 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 xml files in current folder and which are present in the pattern list file "/tmp/a"<|im_end|> <|im_start|>assistant find . -name ...
find all the xml files in current folder and which are present in the pattern list file "/tmp/a"
find . -name "*.xml" -exec grep -HFf /tmp/a {} \;
GWHed/nl2bash
<|im_start|>system You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|> <|im_start|>user Find all xml files under current directory<|im_end|> <|im_start|>assistant find . -name '*.xml'<|im_end|>
Find all xml files under current directory
find . -name '*.xml'
GWHed/nl2bash
<|im_start|>system You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|> <|im_start|>user Find all xml files under current directory and archive them to .bz2 archives<|im_end|> <|im_start|>assistant find -name \*.xml -print0 | xargs...
Find all xml files under current directory and archive them to .bz2 archives
find -name \*.xml -print0 | xargs -0 -n 1 -P 3 bzip2
GWHed/nl2bash
<|im_start|>system You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|> <|im_start|>user Find all xx* files/directories excluding 'xxx' files/directories under your home directory<|im_end|> <|im_start|>assistant find ~ -name 'xx*' ...
Find all xx* files/directories excluding 'xxx' files/directories under your home directory
find ~ -name 'xx*' -and -not -name 'xxx'
GWHed/nl2bash
<|im_start|>system You are 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 zip files in the current folder<|im_end|> <|im_start|>assistant find . -type f -name '*.zip'<|im_end|>
find all the zip files in the current folder
find . -type f -name '*.zip'
GWHed/nl2bash
<|im_start|>system You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|> <|im_start|>user Find an inode and remove<|im_end|> <|im_start|>assistant find . -inum 968746 -exec rm -i {} \;<|im_end|>
Find an inode and remove
find . -inum 968746 -exec rm -i {} \;
GWHed/nl2bash
<|im_start|>system You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|> <|im_start|>user Find and the 5 largest regular files in the Downloads folder of tecmint's home directory and output the file sizes in bytes.<|im_end|> <|im_st...
Find and the 5 largest regular files in the Downloads folder of tecmint's home directory and output the file sizes in bytes.
find /home/tecmint/Downloads/ -type f -printf "%s %p\n" | sort -rn | head -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 and compress all .pl files in the current directory tree<|im_end|> <|im_start|>assistant find . -name "*.pl" | xargs tar -zcf pl.tar.gz<|...
Find and compress all .pl files in the current directory tree
find . -name "*.pl" | xargs tar -zcf pl.tar.gz
GWHed/nl2bash
<|im_start|>system You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|> <|im_start|>user Find and copy all log files in the current directory tree to /tmp/log-files<|im_end|> <|im_start|>assistant find . -name \*.log -print0 | xarg...
Find and copy all log files in the current directory tree to /tmp/log-files
find . -name \*.log -print0 | xargs -I{} -0 cp -v {} /tmp/log-files
GWHed/nl2bash
<|im_start|>system You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|> <|im_start|>user Find and delete all hard links in the /home directory to file1<|im_end|> <|im_start|>assistant find /home -xdev -samefile file1 -exec rm {} +<...
Find and delete all hard links in the /home directory to file1
find /home -xdev -samefile file1 -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 and delete all hard links in the /home directory to file1<|im_end|> <|im_start|>assistant find /home -xdev -samefile file1 -print0 | xarg...
Find and delete all hard links in the /home directory to file1
find /home -xdev -samefile file1 -print0 | xargs -0 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 and delete all hard links in the /home directory tree to file1<|im_end|> <|im_start|>assistant find /home -xdev -samefile file1 | xargs r...
Find and delete all hard links in the /home directory tree to file1
find /home -xdev -samefile file1 | xargs 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 and delete the file with inode number 1316256<|im_end|> <|im_start|>assistant find ./ -inum 1316256 -delete<|im_end|>
Find and delete the file with inode number 1316256
find ./ -inum 1316256 -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 and image in current folder (case insensitive search)<|im_end|> <|im_start|>assistant find . -iname "Articles.jpg"<|im_end|>
find and image in current folder (case insensitive search)
find . -iname "Articles.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 and list all files on your current directory and show a few lines of output from the beginning<|im_end|> <|im_start|>assistant find | hea...
Find and list all files on your current directory and show a few lines of output from the beginning
find | 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 and print the full pathname of all PDF files in the current directory and its sub-directories.<|im_end|> <|im_start|>assistant find . -na...
Find and print the full pathname of all PDF files in the current directory and its sub-directories.
find . -name "*.pdf" -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 and remove zero bytes files from user's directories .<|im_end|> <|im_start|>assistant find /usr/* -size 0c -exec rm {} \;<|im_end|>
Find and remove zero bytes files from user's directories .
find /usr/* -size 0c -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 and show all files in the current directory tree that are exactly 2000 kB<|im_end|> <|im_start|>assistant find . -size 2000k<|im_end|>
Find and show all files in the current directory tree that are exactly 2000 kB
find . -size 2000k
GWHed/nl2bash
<|im_start|>system You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|> <|im_start|>user Find and show all files on the system that are larger than 900 MB<|im_end|> <|im_start|>assistant find / -size +900M<|im_end|>
Find and show all files on the system that are larger than 900 MB
find / -size +900M
GWHed/nl2bash
<|im_start|>system You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|> <|im_start|>user Find and uncompress all files in the current directory tree ending in ".csv.gz"<|im_end|> <|im_start|>assistant find . -name '*.csv.gz' -exec ...
Find and uncompress all files in the current directory tree ending in ".csv.gz"
find . -name '*.csv.gz' -exec gzip -d {} \;
GWHed/nl2bash
<|im_start|>system You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|> <|im_start|>user Find and uncompress all files in the current directory tree ending in ".csv.gz"<|im_end|> <|im_start|>assistant find . -name '*.csv.gz' -print...
Find and uncompress all files in the current directory tree ending in ".csv.gz"
find . -name '*.csv.gz' -print0 | xargs -0 -n1 gzip -d
GWHed/nl2bash
<|im_start|>system You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|> <|im_start|>user find any files in the current directory that begin with a number<|im_end|> <|im_start|>assistant find . -regex './[0-9].*' -print<|im_end|>
find any files in the current directory that begin with a number
find . -regex './[0-9].*' -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 any files or directories called ".svn" under the current directory and run a recursive delete (without prompting) command on each one.<|i...
find any files or directories called ".svn" under the current directory and run a recursive delete (without prompting) command on each one.
find . -iname .svn -exec bash -c 'rm -rf {}' \;
GWHed/nl2bash
<|im_start|>system You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|> <|im_start|>user Find any file that has "disc" somewhere in its name in the current directory and all of its sub-directories.<|im_end|> <|im_start|>assistant f...
Find any file that has "disc" somewhere in its name in the current directory and all of its sub-directories.
find . -name *disc*
GWHed/nl2bash
<|im_start|>system You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|> <|im_start|>user Find apparent size of a target directory<|im_end|> <|im_start|>assistant du -hs /path/to/directory<|im_end|>
Find apparent size of a target directory
du -hs /path/to/directory
GWHed/nl2bash
<|im_start|>system You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|> <|im_start|>user find the biggest files only (but not directories)<|im_end|> <|im_start|>assistant find . -type f -exec du -Sh {} + | sort -rh | head -n 15<|im...
find the biggest files only (but not directories)
find . -type f -exec du -Sh {} + | sort -rh | head -n 15
GWHed/nl2bash
<|im_start|>system You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|> <|im_start|>user Find blabla* files under current directory<|im_end|> <|im_start|>assistant find . -depth -name "blabla*" -type f | xargs rm -f<|im_end|>
Find blabla* files under current directory
find . -depth -name "blabla*" -type f | xargs 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 broken links<|im_end|> <|im_start|>assistant find / -type l -print0 | xargs -0 file | grep broken<|im_end|>
Find broken links
find / -type l -print0 | xargs -0 file | grep broken
GWHed/nl2bash