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 *.foo files under current directory and print their contents<|im_end|> <|im_start|>assistant cat `find . -name '*.foo' -print`<|im_en...
Find all *.foo files under current directory and print their contents
cat `find . -name '*.foo' -print`
GWHed/nl2bash
<|im_start|>system You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|> <|im_start|>user Find all *.foo files under current directory and print their contents<|im_end|> <|im_start|>assistant find . -name '*.foo' -exec cat {} +<|im_...
Find all *.foo files under current directory and print their contents
find . -name '*.foo' -exec cat {} +
GWHed/nl2bash
<|im_start|>system You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|> <|im_start|>user Find all *.foo files under current directory and print their contents<|im_end|> <|im_start|>assistant find . -name '*.foo' -exec cat {} \;<|im...
Find all *.foo files under current directory and print their contents
find . -name '*.foo' -exec cat {} \;
GWHed/nl2bash
<|im_start|>system You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|> <|im_start|>user Find all *.foo files under current directory and search for 'bar' in those files<|im_end|> <|im_start|>assistant find . -name '*.foo' -exec gr...
Find all *.foo files under current directory and search for 'bar' in those files
find . -name '*.foo' -exec grep bar {} \;
GWHed/nl2bash
<|im_start|>system You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|> <|im_start|>user Find all *.gz files/directories under asia and emea directory<|im_end|> <|im_start|>assistant find asia emea -name \*.gz<|im_end|>
Find all *.gz files/directories under asia and emea directory
find asia emea -name \*.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 all *.gz files/directories under asia and emea directory<|im_end|> <|im_start|>assistant find asia emea -name \*.gz -print0 | xargs -0<|i...
Find all *.gz files/directories under asia and emea directory
find asia emea -name \*.gz -print0 | xargs -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 *.gz files in the current directory and decompress them using gunzip<|im_end|> <|im_start|>assistant find . -name '*.gz' -print0 | xa...
Find all *.gz files in the current directory and decompress them using gunzip
find . -name '*.gz' -print0 | xargs -0 gunzip
GWHed/nl2bash
<|im_start|>system You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|> <|im_start|>user Find all *.htm files under current directory<|im_end|> <|im_start|>assistant find -type f -name "*.htm"<|im_end|>
Find all *.htm files under current directory
find -type f -name "*.htm"
GWHed/nl2bash
<|im_start|>system You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|> <|im_start|>user Find all *.html files under current directory<|im_end|> <|im_start|>assistant find . -type f -name '*.html'<|im_end|>
Find all *.html files under current directory
find . -type f -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 *.ini files<|im_end|> <|im_start|>assistant find . -name *.ini<|im_end|>
Find all *.ini files
find . -name *.ini
GWHed/nl2bash
<|im_start|>system You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|> <|im_start|>user Find all *.java files under current directory<|im_end|> <|im_start|>assistant find . -name "*.java"<|im_end|>
Find all *.java files under current directory
find . -name "*.java"
GWHed/nl2bash
<|im_start|>system You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|> <|im_start|>user Find all *.java files under current directory containing the string 'String'<|im_end|> <|im_start|>assistant find . -name "*.java" -exec grep ...
Find all *.java files under current directory containing the string 'String'
find . -name "*.java" -exec grep "String" {} \+
GWHed/nl2bash
<|im_start|>system You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|> <|im_start|>user Find all *.java files under current directory containing the string 'String'<|im_end|> <|im_start|>assistant find . -name "*.java" -exec grep ...
Find all *.java files under current directory containing the string 'String'
find . -name "*.java" -exec grep "String" {} \;
GWHed/nl2bash
<|im_start|>system You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|> <|im_start|>user Find all *.jpg files in */201111 paths<|im_end|> <|im_start|>assistant find */201111 -name "*.jpg"<|im_end|>
Find all *.jpg files in */201111 paths
find */201111 -name "*.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 *.jpg files in */201111/* paths and numerically sort them according to the second field in the file name with a delimiter '_'<|im_end...
Find all *.jpg files in */201111/* paths and numerically sort them according to the second field in the file name with a delimiter '_'
find */201111/* -name "*.jpg" | sort -t '_' -nk2
GWHed/nl2bash
<|im_start|>system You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|> <|im_start|>user Find all *.jpg (case insensitive) files under current directory<|im_end|> <|im_start|>assistant find . -iname '*.jpg'<|im_end|>
Find all *.jpg (case insensitive) files under current directory
find . -iname '*.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 *.jpg files under current directory<|im_end|> <|im_start|>assistant find . -name *.jpg<|im_end|>
Find all *.jpg files under current directory
find . -name *.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 *.jpg files under current directory and print only duplicate names<|im_end|> <|im_start|>assistant find . -name \*.jpg -exec basename...
Find all *.jpg files under current directory and print only duplicate names
find . -name \*.jpg -exec basename {} \; | uniq -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 *.jpg files under current directory and print only unique names<|im_end|> <|im_start|>assistant find . -name *.jpg | uniq -u<|im_end|...
Find all *.jpg files under current directory and print only unique names
find . -name *.jpg | uniq -u
GWHed/nl2bash
<|im_start|>system You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|> <|im_start|>user Find all *.jpg files under current directory and print only unique names<|im_end|> <|im_start|>assistant find . -name \*.jpg -exec basename {}...
Find all *.jpg files under current directory and print only unique names
find . -name \*.jpg -exec basename {} \; | uniq -u
GWHed/nl2bash
<|im_start|>system You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|> <|im_start|>user Find all *.log files under current directory that contain the string "Exception"<|im_end|> <|im_start|>assistant find . -name '*.log' -mtime -...
Find all *.log files under current directory that contain the string "Exception"
find . -name '*.log' -mtime -2 -exec grep -Hc Exception {} \; | grep -v :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 *.log files under path/<|im_end|> <|im_start|>assistant find path/ -name "*.log"<|im_end|>
Find all *.log files under path/
find path/ -name "*.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 *.log files under path/ that do not contain "string that should not occur"<|im_end|> <|im_start|>assistant find path/ -name '*.log' -...
Find all *.log files under path/ that do not contain "string that should not occur"
find path/ -name '*.log' -print0 | xargs -r0 grep -L "string that should not occur"
GWHed/nl2bash
<|im_start|>system You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|> <|im_start|>user Find all *.m4a files/directories under /home/family/Music directory<|im_end|> <|im_start|>assistant find /home/family/Music -name '*.m4a' -pri...
Find all *.m4a files/directories under /home/family/Music directory
find /home/family/Music -name '*.m4a' -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 *.m4a files/directories under /home/family/Music directory<|im_end|> <|im_start|>assistant find /home/family/Music -name *.m4a -print...
Find all *.m4a files/directories under /home/family/Music directory
find /home/family/Music -name *.m4a -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 *.m4a files under /home/family/Music directory<|im_end|> <|im_start|>assistant find /home/family/Music -type f -name '*.m4a' -print0...
Find all *.m4a files under /home/family/Music directory
find /home/family/Music -type f -name '*.m4a' -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 *.mp3, *.aif*, *.m4p, *.wav, *.flac files under $musicdir directory<|im_end|> <|im_start|>assistant find "$musicdir" -type f -print |...
Find all *.mp3, *.aif*, *.m4p, *.wav, *.flac files under $musicdir directory
find "$musicdir" -type f -print | egrep -i '\.(mp3|aif*|m4p|wav|flac)$'
GWHed/nl2bash
<|im_start|>system You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|> <|im_start|>user Find all *.mp3 files in entire file system greater than 10MB and delete them<|im_end|> <|im_start|>assistant find / -type f -name *.mp3 -size ...
Find all *.mp3 files in entire file system greater than 10MB and delete them
find / -type f -name *.mp3 -size +10M -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 *.mp3 files under current directory<|im_end|> <|im_start|>assistant find . -name *.mp3<|im_end|>
Find all *.mp3 files under current directory
find . -name *.mp3
GWHed/nl2bash
<|im_start|>system You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|> <|im_start|>user Find all *.mp4 files under /working<|im_end|> <|im_start|>assistant find /working -type f -name '*.mp4'<|im_end|>
Find all *.mp4 files under /working
find /working -type f -name '*.mp4'
GWHed/nl2bash
<|im_start|>system You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|> <|im_start|>user Find all *.mp4 files under directory named 'working' and show the first one found<|im_end|> <|im_start|>assistant find working -type f -name "...
Find all *.mp4 files under directory named 'working' and show the first one found
find working -type f -name "*.mp4" | head -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 *.ogg and *.mp3 (case insensitive) files/directories under your home directory<|im_end|> <|im_start|>assistant find $HOME -iname '*.o...
Find all *.ogg and *.mp3 (case insensitive) files/directories under your home directory
find $HOME -iname '*.ogg' -o -iname '*.mp3'
GWHed/nl2bash
<|im_start|>system You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|> <|im_start|>user Find all *.ogg (case insensitive) files/directories in entire file system<|im_end|> <|im_start|>assistant sudo find / -iname '*.ogg'<|im_end|>
Find all *.ogg (case insensitive) files/directories in entire file system
sudo find / -iname '*.ogg'
GWHed/nl2bash
<|im_start|>system You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|> <|im_start|>user Find all *.ogg (case insensitive) files/directories under your home directory<|im_end|> <|im_start|>assistant find $HOME -iname '*.ogg'<|im_en...
Find all *.ogg (case insensitive) files/directories under your home directory
find $HOME -iname '*.ogg'
GWHed/nl2bash
<|im_start|>system You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|> <|im_start|>user Find all *.ogg (case insensitive) files/directories under your home directory that are greater than 100MB in size<|im_end|> <|im_start|>assist...
Find all *.ogg (case insensitive) files/directories under your home directory that are greater than 100MB in size
find $HOME -iname '*.ogg' -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 *.ogg (case insensitive) files/directories under your home directory that are greater than 20MB in size<|im_end|> <|im_start|>assista...
Find all *.ogg (case insensitive) files/directories under your home directory that are greater than 20MB in size
find $HOME -iname '*.ogg' -size +20M
GWHed/nl2bash
<|im_start|>system You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|> <|im_start|>user Find all *.ogg (case insensitive) files/directories under your home directory that are not greater than 20MB in size<|im_end|> <|im_start|>ass...
Find all *.ogg (case insensitive) files/directories under your home directory that are not greater than 20MB in size
find $HOME -iname '*.ogg' ! -size +20M
GWHed/nl2bash
<|im_start|>system You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|> <|im_start|>user Find all *.ogg files on the system ignoring the case<|im_end|> <|im_start|>assistant find / -iname '*.ogg'<|im_end|>
Find all *.ogg files on the system ignoring the case
find / -iname '*.ogg'
GWHed/nl2bash
<|im_start|>system You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|> <|im_start|>user Find all *.old files and move them to directory oldfiles<|im_end|> <|im_start|>assistant find . -name "*.old" -exec mv {} oldfiles \;<|im_end|...
Find all *.old files and move them to directory oldfiles
find . -name "*.old" -exec mv {} oldfiles \;
GWHed/nl2bash
<|im_start|>system You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|> <|im_start|>user Find all *.p[lm] files/directories under current directory<|im_end|> <|im_start|>assistant find -name '*.p[lm]'<|im_end|>
Find all *.p[lm] files/directories under current directory
find -name '*.p[lm]'
GWHed/nl2bash
<|im_start|>system You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|> <|im_start|>user Find all *.p[lm] files under /users/tom directory that matches both the regex '->get(' and '#hyphenate' in their contents<|im_end|> <|im_start...
Find all *.p[lm] files under /users/tom directory that matches both the regex '->get(' and '#hyphenate' in their contents
find /users/tom -name '*.p[lm]' -exec grep -l -- '->get(' {} + | xargs grep -l '#hyphenate'
GWHed/nl2bash
<|im_start|>system You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|> <|im_start|>user Find all *.p[lm] files under /users/tom directory that matches the regex '->get(\|#hyphenate' in their contents<|im_end|> <|im_start|>assistan...
Find all *.p[lm] files under /users/tom directory that matches the regex '->get(\|#hyphenate' in their contents
find /users/tom -name '*.p[lm]' -exec grep -l -- '->get(\|#hyphenate' {} +
GWHed/nl2bash
<|im_start|>system You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|> <|im_start|>user Find all *.page (case insensitive) files/directories under current directory and run ~/t.sh for each of them with the file path as argument, t...
Find all *.page (case insensitive) files/directories under current directory and run ~/t.sh for each of them with the file path as argument, then sort the output
find . -iname *.page -exec ~/t.sh {} \; | 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 *.pdf files under ./polkadots<|im_end|> <|im_start|>assistant find ./polkadots -type f -name "*.pdf"<|im_end|>
Find all *.pdf files under ./polkadots
find ./polkadots -type f -name "*.pdf"
GWHed/nl2bash
<|im_start|>system You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|> <|im_start|>user Find all *.pdf.marker files under ${INPUT_LOCATION} and move them to ${OUTPUT_LOCATION} also move any *.pdf files with the same name under cur...
Find all *.pdf.marker files under ${INPUT_LOCATION} and move them to ${OUTPUT_LOCATION} also move any *.pdf files with the same name under current directory to ${OUTPUT_LOCATION}
find ${INPUT_LOCATION}/ -name "*.pdf.marker" | xargs -I file mv file $(basename file .marker) ${OUTPUT_LOCATION}/.
GWHed/nl2bash
<|im_start|>system You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|> <|im_start|>user Find all *.php (case insensitive) and *.js files (case insensitive) under /home/jul/here excluding /home/jul/here/exclude/* paths<|im_end|> <...
Find all *.php (case insensitive) and *.js files (case insensitive) under /home/jul/here excluding /home/jul/here/exclude/* paths
find /home/jul/here -type f \( -iname "*.php" -o -iname "*.js" \) ! -path "/home/jul/here/exclude/*"
GWHed/nl2bash
<|im_start|>system You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|> <|im_start|>user Find all *.php (case insensitive) files and *.js files/directories (case insensitive) under /home/jul/here excluding $EXCLUDE/* paths<|im_end|...
Find all *.php (case insensitive) files and *.js files/directories (case insensitive) under /home/jul/here excluding $EXCLUDE/* paths
find /home/jul/here -type f -iname "*.php" ! -path "$EXCLUDE/*" -o -iname "*.js" ! -path "$EXCLUDE/*"
GWHed/nl2bash
<|im_start|>system You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|> <|im_start|>user Find all *.php (case insensitive) files and *.js files/directories (case insensitive) under /home/jul/here excluding *.js files/directories un...
Find all *.php (case insensitive) files and *.js files/directories (case insensitive) under /home/jul/here excluding *.js files/directories under /home/jul/here/exclude/* paths
find /home/jul/here -type f -iname "*.php" -o -iname "*.js" ! -path "/home/jul/here/exclude/*"
GWHed/nl2bash
<|im_start|>system You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|> <|im_start|>user Find all *.php (case insensitive) files and *.js files/directories (case insensitive) under /home/jul/here excluding /home/jul/here/exclude/* ...
Find all *.php (case insensitive) files and *.js files/directories (case insensitive) under /home/jul/here excluding /home/jul/here/exclude/* paths
find /home/jul/here -type f -iname "*.php" ! -path "/home/jul/here/exclude/*" -o -iname "*.js" ! -path "/home/jul/here/exclude/*"
GWHed/nl2bash
<|im_start|>system You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|> <|im_start|>user Find all *.php files under current directory and change their permission to 640<|im_end|> <|im_start|>assistant chmod 640 $(find . -name *.php...
Find all *.php files under current directory and change their permission to 640
chmod 640 $(find . -name *.php)
GWHed/nl2bash
<|im_start|>system You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|> <|im_start|>user Find all *.php files under current directory and change their permission to 644<|im_end|> <|im_start|>assistant find . -type f -name '*.php' -...
Find all *.php files under current directory and change their permission to 644
find . -type f -name '*.php' -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 the *.pl files (Perl files) beneath the current directory.<|im_end|> <|im_start|>assistant find . -name "*.pl"<|im_end|>
Find all the *.pl files (Perl files) beneath the current directory.
find . -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 *.plist files/directories under current directory<|im_end|> <|im_start|>assistant find -name \*.plist<|im_end|>
Find all *.plist files/directories under current directory
find -name \*.plist
GWHed/nl2bash
<|im_start|>system You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|> <|im_start|>user Find all *.plist files/directories under current directory<|im_end|> <|im_start|>assistant find . -name \*.plist<|im_end|>
Find all *.plist files/directories under current directory
find . -name \*.plist
GWHed/nl2bash
<|im_start|>system You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|> <|im_start|>user Find all *.plist files/directories under current directory<|im_end|> <|im_start|>assistant find ./ -name "*.plist"<|im_end|>
Find all *.plist files/directories under current directory
find ./ -name "*.plist"
GWHed/nl2bash
<|im_start|>system You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|> <|im_start|>user Find all *.py files/directories under current directory<|im_end|> <|im_start|>assistant find . -name *.py<|im_end|>
Find all *.py files/directories under current directory
find . -name *.py
GWHed/nl2bash
<|im_start|>system You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|> <|im_start|>user Find all *.py files/directories under current directory<|im_end|> <|im_start|>assistant find . -name \*.py -print<|im_end|>
Find all *.py files/directories under current directory
find . -name \*.py -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 *.py files under and below the current directory and search them for "xrange"<|im_end|> <|im_start|>assistant find . -name '*.py' -ex...
Find all *.py files under and below the current directory and search them for "xrange"
find . -name '*.py' -exec grep --color 'xrange' {} +
GWHed/nl2bash
<|im_start|>system You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|> <|im_start|>user Find all *.py files under current directory<|im_end|> <|im_start|>assistant find . -type f -name "*.py"<|im_end|>
Find all *.py files under current directory
find . -type f -name "*.py"
GWHed/nl2bash
<|im_start|>system You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|> <|im_start|>user Find all *.py files under current directory and search for regular expressions taken from the search_terms.txt file<|im_end|> <|im_start|>assi...
Find all *.py files under current directory and search for regular expressions taken from the search_terms.txt file
find . -name '*.py' -exec grep -n -f search_terms.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 *.rb and *.py files/directories under current directory<|im_end|> <|im_start|>assistant find . -name "*.rb" -or -name "*.py"<|im_end|...
Find all *.rb and *.py files/directories under current directory
find . -name "*.rb" -or -name "*.py"
GWHed/nl2bash
<|im_start|>system You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|> <|im_start|>user Find all *.rb files/directories under current directory<|im_end|> <|im_start|>assistant find . -name "*.rb"<|im_end|>
Find all *.rb files/directories under current directory
find . -name "*.rb"
GWHed/nl2bash
<|im_start|>system You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|> <|im_start|>user Find all *.rb files/directories under current directory<|im_end|> <|im_start|>assistant find . -name '*.rb'<|im_end|>
Find all *.rb files/directories under current directory
find . -name '*.rb'
GWHed/nl2bash
<|im_start|>system You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|> <|im_start|>user Find all *.rb files/directories under current directory<|im_end|> <|im_start|>assistant find . -name *.rb<|im_end|>
Find all *.rb files/directories under current directory
find . -name *.rb
GWHed/nl2bash
<|im_start|>system You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|> <|im_start|>user Find all *.rb files/directories under current directory<|im_end|> <|im_start|>assistant find . -name \*.rb<|im_end|>
Find all *.rb files/directories under current directory
find . -name \*.rb
GWHed/nl2bash
<|im_start|>system You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|> <|im_start|>user Find all *.rb (regular) files under current directory<|im_end|> <|im_start|>assistant find . -name "*.rb" -type f<|im_end|>
Find all *.rb (regular) files under current directory
find . -name "*.rb" -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 *.rb (regular) files under current directory and count their line numbers<|im_end|> <|im_start|>assistant find . -name "*.rb" -type f...
Find all *.rb (regular) files under current directory and count their line numbers
find . -name "*.rb" -type f | xargs wc -l
GWHed/nl2bash
<|im_start|>system You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|> <|im_start|>user Find all *.rb (regular) files under current directory and print them on stdout putting the file name/path in-between two string literals 'Hell...
Find all *.rb (regular) files under current directory and print them on stdout putting the file name/path in-between two string literals 'Hello,' and '!'
find . -name "*.rb" -type f | xargs -I {} echo Hello, {} !
GWHed/nl2bash
<|im_start|>system You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|> <|im_start|>user Find all *.rb (regular) files under current directory ensuring white space safety and print at most two file names/paths per line<|im_end|> <|...
Find all *.rb (regular) files under current directory ensuring white space safety and print at most two file names/paths per line
find . -name "*.rb" -type f -print0 | xargs -0 -n 2 echo
GWHed/nl2bash
<|im_start|>system You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|> <|im_start|>user Find all *.sh files owned by user vivek<|im_end|> <|im_start|>assistant find / -user vivek -name "*.sh"<|im_end|>
Find all *.sh files owned by user vivek
find / -user vivek -name "*.sh"
GWHed/nl2bash
<|im_start|>system You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|> <|im_start|>user Find all *.swp files/directories under current directory<|im_end|> <|im_start|>assistant find . -name "*.swp"<|im_end|>
Find all *.swp files/directories under current directory
find . -name "*.swp"
GWHed/nl2bash
<|im_start|>system You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|> <|im_start|>user Find all *.tar.gz files/directories under /directory/whatever which were modified more than $DAYS ago<|im_end|> <|im_start|>assistant find /di...
Find all *.tar.gz files/directories under /directory/whatever which were modified more than $DAYS ago
find /directory/whatever -name '*.tar.gz' -mtime +$DAYS
GWHed/nl2bash
<|im_start|>system You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|> <|im_start|>user Find all *.tex files/directories in maximum 2 levels down the current directory<|im_end|> <|im_start|>assistant find . -maxdepth 2 -name '*.te...
Find all *.tex files/directories in maximum 2 levels down the current directory
find . -maxdepth 2 -name '*.tex'
GWHed/nl2bash
<|im_start|>system You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|> <|im_start|>user Find all *.tex regular files in maximum 2 levels down the current directory<|im_end|> <|im_start|>assistant find . -type f -maxdepth 2 -name "...
Find all *.tex regular files in maximum 2 levels down the current directory
find . -type f -maxdepth 2 -name "*.tex"
GWHed/nl2bash
<|im_start|>system You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|> <|im_start|>user Find all *.tex regular files under current directory<|im_end|> <|im_start|>assistant find . -type f -name "*.tex"<|im_end|>
Find all *.tex regular files under current directory
find . -type f -name "*.tex"
GWHed/nl2bash
<|im_start|>system You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|> <|im_start|>user Find all *.texi files in /usr/local/doc<|im_end|> <|im_start|>assistant find /usr/local/doc -name '*.texi'<|im_end|>
Find all *.texi files in /usr/local/doc
find /usr/local/doc -name '*.texi'
GWHed/nl2bash
<|im_start|>system You are 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, *.html files under /basedir that match the case insensitive pattern *company* in their names<|im_end|> <|im_start|>assistant f...
Find all *.txt, *.html files under /basedir that match the case insensitive pattern *company* in their names
find /basedir/ \( -iname '*company*' -and \( -iname '*.txt' -or -iname '*.html' \) \) -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 *.txt and *.json files<|im_end|> <|im_start|>assistant find . -type f \( -name "*.txt" -o -name "*.json" \)<|im_end|>
Find all *.txt and *.json files
find . -type f \( -name "*.txt" -o -name "*.json" \)
GWHed/nl2bash
<|im_start|>system You are 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/directories under current directory<|im_end|> <|im_start|>assistant find -name '*.txt'<|im_end|>
Find all *.txt files/directories under current directory
find -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 *.txt files/directories under current directory<|im_end|> <|im_start|>assistant find -name \*.txt<|im_end|>
Find all *.txt files/directories under current directory
find -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 *.txt files/directories under current directory<|im_end|> <|im_start|>assistant find . -name '*.txt'<|im_end|>
Find all *.txt files/directories under current directory
find . -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 *.txt files/directories under current directory<|im_end|> <|im_start|>assistant find . -name *.txt -print<|im_end|>
Find all *.txt files/directories under current directory
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 *.txt files/directories under current directory discarding 'Permission denied' errors<|im_end|> <|im_start|>assistant find . -name "*...
Find all *.txt files/directories under current directory discarding 'Permission denied' errors
find . -name "*.txt" -print | grep -v 'Permission denied'
GWHed/nl2bash
<|im_start|>system You are 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/directories under current directory terminating their names/paths with null character<|im_end|> <|im_start|>assistant fin...
Find all *.txt files/directories under current directory terminating their names/paths with null character
find . -name '*.txt' -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 *.txt files/directories under your home directory<|im_end|> <|im_start|>assistant find ~ -name "*.txt" -print<|im_end|>
Find all *.txt files/directories under your home directory
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 *.txt files/directories under your home directory<|im_end|> <|im_start|>assistant find ~/ -name '*.txt'<|im_end|>
Find all *.txt files/directories under your home directory
find ~/ -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 *.txt files in the current directory older than 48 hours<|im_end|> <|im_start|>assistant find . -maxdepth 1 -name '*.txt' -mtime ...
Find all the *.txt files in the current directory older than 48 hours
find . -maxdepth 1 -name '*.txt' -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 *.txt file (case insensitive) in the entire system and copy them to /tmp/txt<|im_end|> <|im_start|>assistant find / -iname '*.txt' | ...
Find all *.txt file (case insensitive) in the entire system and copy them to /tmp/txt
find / -iname '*.txt' | xargs --replace=@ cp @ /tmp/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 *.txt (case insensitive) files of user root under / directory and show a few lines of output from the beginning<|im_end|> <|im_start|...
Find all *.txt (case insensitive) files of user root under / directory and show a few lines of output from the beginning
find / -user root -iname "*.txt" | 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 *.txt files of user Tecmint under /home directory<|im_end|> <|im_start|>assistant find /home -user tecmint -iname "*.txt"<|im_end|>
Find all *.txt files of user Tecmint under /home directory
find /home -user tecmint -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 *.txt files that reside under and below /home/wsuNID/<|im_end|> <|im_start|>assistant find /home/wsuNID/ -name "*.txt"<|im_end|>
Find all *.txt files that reside under and below /home/wsuNID/
find /home/wsuNID/ -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 *.txt files under /foo and delete them<|im_end|> <|im_start|>assistant find /foo -name "*.txt" -delete<|im_end|>
Find all *.txt files under /foo and delete them
find /foo -name "*.txt" -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 *.txt files under /foo and print their total size<|im_end|> <|im_start|>assistant find /foo -name "*.txt" -exec du -hc {} + | tail -n...
Find all *.txt files under /foo and print their total size
find /foo -name "*.txt" -exec du -hc {} + | tail -n1
GWHed/nl2bash
<|im_start|>system You are 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 under current directory and print their timestamps and paths<|im_end|> <|im_start|>assistant find . -name "*.txt" -printf...
Find all *.txt files under current directory and print their timestamps and paths
find . -name "*.txt" -printf "%T+ %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 *.txt files under current directory, change their permission to 666 and copy them to /dst/ directory<|im_end|> <|im_start|>assistant ...
Find all *.txt files under current directory, change their permission to 666 and copy them to /dst/ directory
find . -name \*.txt -exec chmod 666 {} \; -exec cp {} /dst/ \;
GWHed/nl2bash
<|im_start|>system You are 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 under current directory that contains the regex 'pattern' and list them with their filenames and matches<|im_end|> <|im_s...
Find all *.txt files under current directory that contains the regex 'pattern' and list them with their filenames and matches
find . -type f -name '*.txt' -exec egrep pattern {} /dev/null \;
GWHed/nl2bash
<|im_start|>system You are 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 under current directory with their timestamps and paths, sort them and print the last entry only<|im_end|> <|im_start|>as...
Find all *.txt files under current directory with their timestamps and paths, sort them and print the last entry only
find . -name "*.txt" -printf "%T+ %p\n" | sort | 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 *.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.bz2 files under current directory<|im_end|> <|im_start|>assistant find . -name \*.xml.bz2<|im_end|>
Find all *.xml.bz2 files under current directory
find . -name \*.xml.bz2
GWHed/nl2bash
<|im_start|>system You are 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.bz2 files under current directory<|im_end|> <|im_start|>assistant find . | grep ".xml.bz2$"<|im_end|>
Find all *.xml.bz2 files under current directory
find . | grep ".xml.bz2$"
GWHed/nl2bash