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 the text files in the current folder starting with "somefiles-" and prepend the first line<|im_end|>
<|im_start|>assistant
find . -n... | find all the text files in the current folder starting with "somefiles-" and prepend the first line | find . -name "somefiles-*-.txt" -type f -exec sed -i 'iText that gets prepended ' -- '{}' \; | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Show mv commands to move all *.pdf.marker files and their corresponding *.pdf files under ${INPUT_LOCATION} to ${OUTPUT_LOCATION}<|im_end|>
<|... | Show mv commands to move all *.pdf.marker files and their corresponding *.pdf files under ${INPUT_LOCATION} to ${OUTPUT_LOCATION} | find ${INPUT_LOCATION} -name '*.pdf.marker' -exec sh -c 'echo mv $0 `dirname $0`/`basename $0 .marker` $1' {} ${OUTPUT_LOCATION} \; | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Print source directory of bash script<|im_end|>
<|im_start|>assistant
dirname "$"<|im_end|> | Print source directory of bash script | dirname "$" | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Delete all files under $INTRANETDESTINATION/monthly directory tree that were modified more than 366 days ago<|im_end|>
<|im_start|>assistant
f... | Delete all files under $INTRANETDESTINATION/monthly directory tree that were modified more than 366 days ago | find $INTRANETDESTINATION/monthly -mtime +366 -exec rm {} \; | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Renames all *.html files in a current directory to *.txt files.<|im_end|>
<|im_start|>assistant
ls *.html | xargs -I {} sh -c 'mv $1 `basename... | Renames all *.html files in a current directory to *.txt files. | ls *.html | xargs -I {} sh -c 'mv $1 `basename $1 .html`.txt' - {} | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are 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 named "test2" in the current directory<|im_end|>
<|im_start|>assistant
find -name test2 -prune<|im_end|> | Find all files named "test2" in the current directory | find -name test2 -prune | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Gets MAC addresses of all IP4 network interfaces.<|im_end|>
<|im_start|>assistant
ifconfig -a | awk '/^[a-z]/ { iface=$1; mac=$NF; next } /ine... | Gets MAC addresses of all IP4 network interfaces. | ifconfig -a | awk '/^[a-z]/ { iface=$1; mac=$NF; next } /inet addr:/ { print mac }' | grep -o -E '([[:xdigit:]]{1,2}:){5}[[:xdigit:]]{1,2}' | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Prints total count of lines of all *.py files in a current folder and subfolders.<|im_end|>
<|im_start|>assistant
find . -name "*.py" -exec wc... | Prints total count of lines of all *.py files in a current folder and subfolders. | find . -name "*.py" -exec wc -l {} \; | awk '{ SUM += $0} END { print SUM }' | AnishJoshi/nl2bash-custom |
<|im_start|>system
You 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 file arrow.jpg in the entire file system<|im_end|>
<|im_start|>assistant
find / -name arrow.jpg<|im_end|> | find the file arrow.jpg in the entire file system | find / -name arrow.jpg | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Decompress "file2.txt" and "file1.txt" and print lines in "file1.txt" that match the 5th tab separated field in "file2.txt"<|im_end|>
<|im_sta... | Decompress "file2.txt" and "file1.txt" and print lines in "file1.txt" that match the 5th tab separated field in "file2.txt" | awk -F'\t' 'NR==FNR{a[$5];next} $5 in a' <(zcat file2.txt) <(zcat file1.txt) | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are 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 \! \ -type f -mtime 0 -print0 | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
display all regular files in the folder image-folder<|im_end|>
<|im_start|>assistant
find image-folder/ -type f<|im_end|> | display all regular files in the folder image-folder | find image-folder/ -type f | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
change the permissions of all regular/normal files in the current directory, print0 is used for handling files with newlines in their file nam... | change the permissions of all regular/normal files in the current directory, print0 is used for handling files with newlines in their file name | find . -type f -print0 | xargs -0 chmod 664 | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
delete all the text files starting with the name "oldStuff" in the file system<|im_end|>
<|im_start|>assistant
find / -name "oldStuff*.txt" -d... | delete all the text files starting with the name "oldStuff" in the file system | find / -name "oldStuff*.txt" -delete | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Create a script to monitor system memory usage and send an alert if it exceeds a certain threshold.<|im_end|>
<|im_start|>assistant
#!/bin/bas... | Create a script to monitor system memory usage and send an alert if it exceeds a certain threshold. | #!/bin/bash
threshold=80
memory_usage=$(free -m | awk '/Mem/ {print $3/$2 * 100.0}')
if [ "$memory_usage" -gt "$threshold" ]; then
echo "System memory usage exceeds $threshold%."
# Send alert here
fi | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Print the list of files modified in the last 7 days sorted by modification time.<|im_end|>
<|im_start|>assistant
#!/bin/bash
find /path/to/yo... | Print the list of files modified in the last 7 days sorted by modification time. | #!/bin/bash
find /path/to/your/directory -type f -mtime -7 -exec stat --format '%Y :%y %n' {} + | sort -nr | cut -d: -f2- | awk '{print $4, $1, $2, $3}' | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Search the current directory tree for files matching regular expression '^myfile[0-9][0-9]?$'<|im_end|>
<|im_start|>assistant
find . -\<|im_en... | Search the current directory tree for files matching regular expression '^myfile[0-9][0-9]?$' | find . -\ | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Recursively lists all files in a current folder and prints full path along with modification time.<|im_end|>
<|im_start|>assistant
stat --prin... | Recursively lists all files in a current folder and prints full path along with modification time. | stat --printf="%y %n\n" $(ls -tr $) | AnishJoshi/nl2bash-custom |
<|im_start|>system
You 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 total size of *.jpg files within the current directory tree<|im_end|>
<|im_start|>assistant
find . -type f -iname '*.jpg' -print0 | x... | Find the total size of *.jpg files within the current directory tree | find . -type f -iname '*.jpg' -print0 | xargs -r0 du -a| awk '{sum+=$1} END {print sum}' | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Count all the lines of all php files in current directory recursively<|im_end|>
<|im_start|>assistant
find -name '*.php' | xargs cat | wc -l<|... | Count all the lines of all php files in current directory recursively | find -name '*.php' | xargs cat | wc -l | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
run script "runProgram.sh" as user jetty<|im_end|>
<|im_start|>assistant
su - jetty sh ./runprogram.sh<|im_end|> | run script "runProgram.sh" as user jetty | su - jetty sh ./runprogram.sh | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Find all directories under current directory and run /path/to/script.sh for each of them<|im_end|>
<|im_start|>assistant
find . -type d -exec... | Find all directories under current directory and run /path/to/script.sh for each of them | find . -type d -exec /path/to/script.sh '{}' \; | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Replace all occurrences of edx with gurukul in all *.css files under ./cms/djangoapps/contentstore/views directory<|im_end|>
<|im_start|>ass... | Replace all occurrences of edx with gurukul in all *.css files under ./cms/djangoapps/contentstore/views directory | find ./cms/djangoapps/contentstore/views -iname *.css | xargs sed -i s/[Ee][Dd][Xx]/gurukul/g | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Installs locally located 'packagename.arch.rpm' package, ignoring GPG checking.<|im_end|>
<|im_start|>assistant
yum --nogpgcheck localinstall ... | Installs locally located 'packagename.arch.rpm' package, ignoring GPG checking. | yum --nogpgcheck localinstall packagename.arch.rpm | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Backup MySQL database "database" with "username" and "pswd", compress with gzip and add the time stamp before emailing to "me@domain.com"<|im_... | Backup MySQL database "database" with "username" and "pswd", compress with gzip and add the time stamp before emailing to "me@domain.com" | mysqldump -e --user=username --password=pswd database | gzip | uuencode my-dbbackup.`date +"\%Y-\%m-\%d"`.gz | mail me@domain.com | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Display the named characters in "line1\r\nline2"<|im_end|>
<|im_start|>assistant
echo -e "line1\r\nline2" | awk '{ print $0; }' | od -a<|im_en... | Display the named characters in "line1\r\nline2" | echo -e "line1\r\nline2" | awk '{ print $0; }' | od -a | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
List all variables with names containing X.<|im_end|>
<|im_start|>assistant
env | awk -F "=" '{print $1}' | grep ".*X.*"<|im_end|> | List all variables with names containing X. | env | awk -F "=" '{print $1}' | grep ".*X.*" | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Compare sorted files 'f1.txt' and 'f2.txt' and print in three columns strings unique for first file, second file, and common ones<|im_end|>
<|... | Compare sorted files 'f1.txt' and 'f2.txt' and print in three columns strings unique for first file, second file, and common ones | comm < < | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Find all directories under 'A' directory tree excluding paths containing the directory 'a'<|im_end|>
<|im_start|>assistant
find A -type d \<|i... | Find all directories under 'A' directory tree excluding paths containing the directory 'a' | find A -type d \ | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Copy entire directory structure from dir1 as a subdirectory of dir2, omitting any file or directory named "exclude".<|im_end|>
<|im_start|>ass... | Copy entire directory structure from dir1 as a subdirectory of dir2, omitting any file or directory named "exclude". | mkdir dir2; tar cvf - dir1/ --exclude "*/exclude" | tar xvf - -C dir2 | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Create a rsa key with comment specified by variable APP and passphrase specified y SSHKEYPASS.<|im_end|>
<|im_start|>assistant
ssh-keygen -t r... | Create a rsa key with comment specified by variable APP and passphrase specified y SSHKEYPASS. | ssh-keygen -t rsa -C "$APP" -N "$SSHKEYPASS" -f ~/.ssh/id_rsa | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Create a script to monitor system process execution permissions and generate reports on unauthorized executions.<|im_end|>
<|im_start|>assista... | Create a script to monitor system process execution permissions and generate reports on unauthorized executions. | #!/bin/bash
touch /tmp/process_execution_report.txt
while true; do
auditctl -a always,exit -F arch=b64 -S execve -k process_execution
ausearch -k process_execution >> /tmp/process_execution_report.txt
sleep 3600
done | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
sleep until a specific date<|im_end|>
<|im_start|>assistant
sleep $<|im_end|> | sleep until a specific date | sleep $ | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Remove the last two alphanumeric file extensions from "mpc-1.0.1.tar.gz"<|im_end|>
<|im_start|>assistant
echo "mpc-1.0.1.tar.gz" | sed -r 's/\... | Remove the last two alphanumeric file extensions from "mpc-1.0.1.tar.gz" | echo "mpc-1.0.1.tar.gz" | sed -r 's/\.[[:alnum:]]+\.[[:alnum:]]+$//' | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Find all directories under 'project' directory without going into subdirectories that do not match the POSIX egrep regex $PATTERN in their pat... | Find all directories under 'project' directory without going into subdirectories that do not match the POSIX egrep regex $PATTERN in their paths and are not empty | find project -maxdepth 1 -mindepth 1 -regextype posix-egrep ! -iregex $PATTERN ! -empty -type d | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Display a tree-like view of USB devices, letting the user page through it with the arrow keys, with the Q key to quit.<|im_end|>
<|im_start|>a... | Display a tree-like view of USB devices, letting the user page through it with the arrow keys, with the Q key to quit. | sudo lsusb -t|less | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Search the current directory recursively for files last modified within the past 24 hours ignoring .swp files and paths ./es* and ./en*<|im_en... | Search the current directory recursively for files last modified within the past 24 hours ignoring .swp files and paths ./es* and ./en* | find -mtime 0 -not \ | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
List all files/directories under current directory matching the posix-egrep type regex ".+\.$" in their names excluding the paths */generated/... | List all files/directories under current directory matching the posix-egrep type regex ".+\.$" in their names excluding the paths */generated/* and */deploy/* | find . -regextype posix-egrep -regex '.+\.$' -not -path '*/generated/*' -not -path '*/deploy/*' -print0 | xargs -0 ls -L1d | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are 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 /path/to/dir and replace them with the actual files they are pointing at<|im_end|>
<|im_start|>assistant
find /path/to... | Find all symlinks under /path/to/dir and replace them with the actual files they are pointing at | find /path/to/dir -type l -exec sh -c 'cp --remove-destination "$" "{}"' \; | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Find all regular files under /home/www and replace every occurrences of 'subdomainA.example.com' with 'subdomainB.example.com' in those files ... | Find all regular files under /home/www and replace every occurrences of 'subdomainA.example.com' with 'subdomainB.example.com' in those files invoking sed as few times as possible | find /home/www/ -type f -exec sed -i 's/subdomainA\.example\.com/subdomainB.example.com/g' {} + | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Recursively finds in all folders but "./output/*" all files but *.o, *.swp and prints strings with 'soc_attach' text pattern and number of mat... | Recursively finds in all folders but "./output/*" all files but *.o, *.swp and prints strings with 'soc_attach' text pattern and number of matched string. | find . \ -a \ -a \ -a \ | xargs grep -n soc_attach | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Change every file under "/var/www/html/" to have permissions 664<|im_end|>
<|im_start|>assistant
sudo find /var/www/html/ -type f -exec chmod... | Change every file under "/var/www/html/" to have permissions 664 | sudo find /var/www/html/ -type f -exec chmod 664 {} \; | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Recursively changes group ownership of every folder in a current directory to the name of that folder.<|im_end|>
<|im_start|>assistant
find . ... | Recursively changes group ownership of every folder in a current directory to the name of that folder. | find . -type d | sed -e 's/^\.\///g' | awk '{print $1, $1}' | xargs chgrp | AnishJoshi/nl2bash-custom |
<|im_start|>system
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 $a pattern in a $b string, and returns exit code 0 if found, suppressing any visible output.<|im_end|>
<|im_start|>assistant
echo $b|gre... | Finds $a pattern in a $b string, and returns exit code 0 if found, suppressing any visible output. | echo $b|grep -q $a | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Execute "myscript.rb" with the first argument as the current host name and the second "file.txt"<|im_end|>
<|im_start|>assistant
myscript.rb `... | Execute "myscript.rb" with the first argument as the current host name and the second "file.txt" | myscript.rb `hostname -i` file.txt | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
List all defined bash functions<|im_end|>
<|im_start|>assistant
set | egrep '^[^[:space:]]+ [][[:space:]]*$' | sed -r -e 's/ [][[:space:]]*$//... | List all defined bash functions | set | egrep '^[^[:space:]]+ [][[:space:]]*$' | sed -r -e 's/ [][[:space:]]*$//' | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Print first 11 characters from $line, print a tab, print the md5 sum of the file specified by the 13th and onward characters from $line and pr... | Print first 11 characters from $line, print a tab, print the md5 sum of the file specified by the 13th and onward characters from $line and print a null character at end without a trailing new line | echo -en "${line:0:11}" "\t" $(md5sum "${line:12}") "\0" | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
search for the file, filename.txt in the folder /home<|im_end|>
<|im_start|>assistant
find /home -name filename.txt<|im_end|> | search for the file, filename.txt in the folder /home | find /home -name filename.txt | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Create a script to monitor system SELinux status and send alerts if policy violations occur.<|im_end|>
<|im_start|>assistant
#!/bin/bash
seal... | Create a script to monitor system SELinux status and send alerts if policy violations occur. | #!/bin/bash
sealert -a | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
replaces the last occurrence of 'a' with 'c' in file<|im_end|>
<|im_start|>assistant
tac file | awk '/a/ && !seen {sub; seen=1} 1' | tac<|im_e... | replaces the last occurrence of 'a' with 'c' in file | tac file | awk '/a/ && !seen {sub; seen=1} 1' | tac | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Create a script to monitor system CPU voltage and send an alert if it's too low.<|im_end|>
<|im_start|>assistant
#!/bin/bash
threshold=1
volt... | Create a script to monitor system CPU voltage and send an alert if it's too low. | #!/bin/bash
threshold=1
voltage=$(sensors | grep 'in0' | awk '{print $2}')
if [ "$voltage" -lt "$threshold" ]; then
echo "System CPU voltage is too low."
# Send alert here
fi | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Start program 'scriptname' with an empty environment.<|im_end|>
<|im_start|>assistant
env - scriptname<|im_end|> | Start program 'scriptname' with an empty environment. | env - scriptname | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Find all files/directories under current directory that match the case insensitive extended regex .*/_.*<|im_end|>
<|im_start|>assistant
find ... | Find all files/directories under current directory that match the case insensitive extended regex .*/_.* | find -E . -iregex '.*/_.*' | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Executes 'sleep 10' in a subshell created by a pipeline of built-in function 'true'.<|im_end|>
<|im_start|>assistant
true | sleep 10<|im_end|> | Executes 'sleep 10' in a subshell created by a pipeline of built-in function 'true'. | true | sleep 10 | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are 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 with the extension jpg regardless of case<|im_end|>
<|im_start|>assistant
find . -type f -iname '*.jpg' -print0<|im_end|> | Find all files with the extension jpg regardless of case | find . -type f -iname '*.jpg' -print0 | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Use awk command 'FNR==NR { array[$1,$2]=$8; next } in array { print $0 ";" array[$1,$2] }' on compressed files "input1.vcf.gz" and "input2.vc... | Use awk command 'FNR==NR { array[$1,$2]=$8; next } in array { print $0 ";" array[$1,$2] }' on compressed files "input1.vcf.gz" and "input2.vcf.gz" | gzip -dc input1.vcf.gz input2.vcf.gz | awk 'FNR==NR { array[$1,$2]=$8; next } in array { print $0 ";" array[$1,$2] }' | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Print login information of all users except the first two and replace all instances of " " with ", "<|im_end|>
<|im_start|>assistant
who | awk... | Print login information of all users except the first two and replace all instances of " " with ", " | who | awk '{ if (NR!=1 && NR!=2) {print} }' | sed -e 's/ /, /g' | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Append the parent directory name with a space in all 'text.txt' files in all sub directories of current directory<|im_end|>
<|im_start|>assist... | Append the parent directory name with a space in all 'text.txt' files in all sub directories of current directory | find . -name text.txt | sed 's|.*/\(.*\)/.*|sed -i "s@^@\1 @" & |' | sh | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Monitor system processes every 5 seconds for 1 minute and display the results.<|im_end|>
<|im_start|>assistant
#!/bin/bash
for ((i=0; i<12; i... | Monitor system processes every 5 seconds for 1 minute and display the results. | #!/bin/bash
for ((i=0; i<12; i++)); do
ps aux >> processes.log
sleep 5
done | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Print a 2 byte decimal integer from "/dev/random"<|im_end|>
<|im_start|>assistant
od -An -N2 -i /dev/random<|im_end|> | Print a 2 byte decimal integer from "/dev/random" | od -An -N2 -i /dev/random | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Removes 55, adds a 10-digit line number, and rearranges the date for each line in "input" on OSX<|im_end|>
<|im_start|>assistant
nl -nrz -w10 ... | Removes 55, adds a 10-digit line number, and rearranges the date for each line in "input" on OSX | nl -nrz -w10 -s\; input | sed -E 's/55//; s/([0-9]{2})-([0-9]{2})-([0-9]{4})/\3\2\1/' | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Move all files and directories in the current directory to "/foo"<|im_end|>
<|im_start|>assistant
mv * /foo<|im_end|> | Move all files and directories in the current directory to "/foo" | mv * /foo | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Create a script to find the product of digits of a number.<|im_end|>
<|im_start|>assistant
#!/bin/bash
product_of_digits() {
num="$1"
... | Create a script to find the product of digits of a number. | #!/bin/bash
product_of_digits() {
num="$1"
product=1
while [ "$num" -gt 0 ]; do
digit=$((num % 10))
product=$((product * digit))
num=$((num / 10))
done
echo "$product"
}
product_of_digits 12345 | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Print all lines of "seq 10" except the last 3<|im_end|>
<|im_start|>assistant
seq 10 | tac | sed '1,3d' | tac<|im_end|> | Print all lines of "seq 10" except the last 3 | seq 10 | tac | sed '1,3d' | tac | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Monitor network bandwidth usage every 10 seconds for 1 minute and display the results.<|im_end|>
<|im_start|>assistant
#!/bin/bash
for ((i=0;... | Monitor network bandwidth usage every 10 seconds for 1 minute and display the results. | #!/bin/bash
for ((i=0; i<6; i++)); do
nload -t 10 -o 1 >> network_bandwidth_usage.log
sleep 10
done | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Print the contents of "somefile" as input to "splitter 16224-16482"<|im_end|>
<|im_start|>assistant
cat somefile | splitter 16224-16482<|im_en... | Print the contents of "somefile" as input to "splitter 16224-16482" | cat somefile | splitter 16224-16482 | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Removes 55, adds a 10-digit line number, and rearranges the date for each line in "input" on OSX<|im_end|>
<|im_start|>assistant
nl -nrz -w10 ... | Removes 55, adds a 10-digit line number, and rearranges the date for each line in "input" on OSX | nl -nrz -w10 -s\; input | sed -E 's/55//; s/--/\3\2\1/' | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Search for 'birthday' in all regular files under ~/Documents directory tree and show only the filenames<|im_end|>
<|im_start|>assistant
find ... | Search for 'birthday' in all regular files under ~/Documents directory tree and show only the filenames | find ~/Documents -type f -print0 | xargs -0 grep -il birthday | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Redirects output of 'time' built-in function and prints only real-time statistic.<|im_end|>
<|im_start|>assistant
{ time ls -l >/dev/null; } |... | Redirects output of 'time' built-in function and prints only real-time statistic. | { time ls -l >/dev/null; } |& grep real | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Print the list of files in a directory with their sizes and last modification times sorted by size in human-readable format.<|im_end|>
<|im_st... | Print the list of files in a directory with their sizes and last modification times sorted by size in human-readable format. | #!/bin/bash
ls -lhS --time-style=long-iso /path/to/your/directory | awk '{print $5, $6, $7, $8, $9}' | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Copy entire directory structure from dir1 as a subdirectory of dir2, omitting empty directories, special files and any directory named "exclu... | Copy entire directory structure from dir1 as a subdirectory of dir2, omitting empty directories, special files and any directory named "exclude". | mkdir dir2; find dir1 \ -not -wholename '*/exclude/*' -exec cp -P --parents '{}' dir2/ \; | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
List all aliencoders.[0-9]+ files/directories under /home/jassi/ directory<|im_end|>
<|im_start|>assistant
find /home/jassi/ -name "aliencoder... | List all aliencoders.[0-9]+ files/directories under /home/jassi/ directory | find /home/jassi/ -name "aliencoders.[0-9]+" -exec ls -lrt {} + | awk '{print $9}' | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Replace all negative numbers in the 3rd comma-separated column of inputfile by the number notated in parenthesis instead of with a minus sign.... | Replace all negative numbers in the 3rd comma-separated column of inputfile by the number notated in parenthesis instead of with a minus sign. | awk -F, 'BEGIN {OFS = ","} {gsub("-", "(" substr ")", $3); print}' inputfile | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Create a script to monitor system root user firewall status and send an alert if the firewall is not enabled.<|im_end|>
<|im_start|>assistant
... | Create a script to monitor system root user firewall status and send an alert if the firewall is not enabled. | #!/bin/bash
if ! ufw status | grep -q 'active'; then
echo "Firewall is not enabled for root user." | mail -s "Root Firewall Status Alert" user@example.com
fi | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Print lines 15967 to 16224 in file "dump.txt"<|im_end|>
<|im_start|>assistant
cat dump.txt | head -16224 | tail -258<|im_end|> | Print lines 15967 to 16224 in file "dump.txt" | cat dump.txt | head -16224 | tail -258 | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
List all ~/bin/FilesDvorak/.* (non-recursive) and ~/.PAST_RC_files/.* (recursive) files/directories and take common entries between these two ... | List all ~/bin/FilesDvorak/.* (non-recursive) and ~/.PAST_RC_files/.* (recursive) files/directories and take common entries between these two lists | comm -12 <(find ~/bin/FilesDvorak/.* -maxdepth 0) <(find ~/.PAST_RC_files/.*) | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
List all ".txt" files with a unique md5 hash<|im_end|>
<|im_start|>assistant
md5sum *.txt | sort | perl -ne '=split; print "$f\n" unless $y eq... | List all ".txt" files with a unique md5 hash | md5sum *.txt | sort | perl -ne '=split; print "$f\n" unless $y eq $x; $x=$y' | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Recursively finds all files with any cased text "Text" in a current folder, and precedes found string with its number in file.<|im_end|>
<|im_... | Recursively finds all files with any cased text "Text" in a current folder, and precedes found string with its number in file. | grep -inr "Text" folder/to/be/searched/ | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Replace all the mathes to regex '<script type="text\/javascript" charset="utf-8" src="file.js"><\/script>.*' with '<script type="text\/javascr... | Replace all the mathes to regex '<script type="text\/javascript" charset="utf-8" src="file.js"><\/script>.*' with '<script type="text\/javascript" charset="utf-8" src="file2.js"><\/script>' in all HTML files under $DIR directory tree modifying the files in-place | find $DIR -type f -name '*.html' -exec sed -i 's/.*<script type="text\/javascript" charset="utf-8" src="file.js"><\/script>.*/<script type="text\/javascript" charset="utf-8" src="file2.js"><\/script>/g' {} \; | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Page interactively through the output of running 'command' - the arrow keys move the view around, the < and > keys go to the beginning/end of ... | Page interactively through the output of running 'command' - the arrow keys move the view around, the < and > keys go to the beginning/end of the output, the / key initiates a search, the Q key quits, etc. | command | less | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Remove all files 'a.out' and *.o in the home directory tree that were accessed more than 7 days ago<|im_end|>
<|im_start|>assistant
find $HOME... | Remove all files 'a.out' and *.o in the home directory tree that were accessed more than 7 days ago | find $HOME \ -atime +7 -exec rm {} \; | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Copy file in current directory of local host to host "remote", connecting as ssh user matching current local username, and copying the file in... | Copy file in current directory of local host to host "remote", connecting as ssh user matching current local username, and copying the file in home directory on remote host - enable compression during transfer. | scp -C file remote: | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Append " | COUNTRY" to every line in "file"<|im_end|>
<|im_start|>assistant
yes '| COUNTRY' | sed $q | paste -d ' ' file -<|im_end|> | Append " | COUNTRY" to every line in "file" | yes '| COUNTRY' | sed $q | paste -d ' ' file - | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are 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 on a specific day and copy them to another directory<|im_end|>
<|im_start|>assistant
find . -type f... | find all the files that have been modified on a specific day and copy them to another directory | find . -type f -daystart -mtime $date_dif -exec copy_it.sh $verbose -s {} -t $to_dir \; | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
find all normal/regular files in current folder and display them in sorted order<|im_end|>
<|im_start|>assistant
find . -type f -ls | awk '{pr... | find all normal/regular files in current folder and display them in sorted order | find . -type f -ls | awk '{print $(NF-3), $(NF-2), $(NF-1), $NF}' | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Find files/directories under /users/tom that matches both the pattern "*.pl" and "*.pm"<|im_end|>
<|im_start|>assistant
find /users/tom -name... | Find files/directories under /users/tom that matches both the pattern "*.pl" and "*.pm" | find /users/tom -name "*.pl" -name "*.pm" | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Serves minimal HTTP response with netcat<|im_end|>
<|im_start|>assistant
while true ; do nc -l -p 1500 -c 'echo -e "HTTP/1.1 200 OK\n\n $"'; d... | Serves minimal HTTP response with netcat | while true ; do nc -l -p 1500 -c 'echo -e "HTTP/1.1 200 OK\n\n $"'; done | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Unzip "path/to/test/file.gz" to standard output and save all lines matching "my regex" to files with a 1000000 limit<|im_end|>
<|im_start|>ass... | Unzip "path/to/test/file.gz" to standard output and save all lines matching "my regex" to files with a 1000000 limit | gzip -cd path/to/test/file.gz | awk 'BEGIN{global=1}/my regex/{count+=1;print $0 >"part"global".txt";if (count==1000000){count=0;global+=1}}' | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Search for " 840" in history<|im_end|>
<|im_start|>assistant
history | grep " 840"<|im_end|> | Search for " 840" in history | history | grep " 840" | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Create a script to monitor SSH login attempts and send an alert if multiple failed attempts are detected.<|im_end|>
<|im_start|>assistant
#!/b... | Create a script to monitor SSH login attempts and send an alert if multiple failed attempts are detected. | #!/bin/bash
failed_attempts=$(grep 'Failed password' /var/log/auth.log | wc -l)
if [ "$failed_attempts" -gt "5" ]; then
echo "Multiple failed SSH login attempts detected." | mail -s "SSH Login Attempts Alert" user@example.com
fi | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Find all *.mov files under current directory and run an echo command with the path and the name for each file<|im_end|>
<|im_start|>assistant... | Find all *.mov files under current directory and run an echo command with the path and the name for each file | find . -iname "*.mov" -printf "%p %f\n" | while read -a HR ; do echo ffmpeg -i ${HR[0]} -f flv ${HR[1]} ;done | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Print first field from semicolon-seprated line $string.<|im_end|>
<|im_start|>assistant
echo $string | cut -d';' -f1<|im_end|> | Print first field from semicolon-seprated line $string. | echo $string | cut -d';' -f1 | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Remove all .mpg files in the /home/luser directory tree<|im_end|>
<|im_start|>assistant
find /home/luser -type f -name ‘*.mpg’ | parallel rm -... | Remove all .mpg files in the /home/luser directory tree | find /home/luser -type f -name ‘*.mpg’ | parallel rm -f | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Split the output of "my_program" into files of at most 100000 bytes each and use numeric suffixes<|im_end|>
<|im_start|>assistant
my_program |... | Split the output of "my_program" into files of at most 100000 bytes each and use numeric suffixes | my_program | split -d -b 100000 - | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Search the current directory for files whose names start with "messages." ignoring SVN files<|im_end|>
<|im_start|>assistant
find \ -exec grep... | Search the current directory for files whose names start with "messages." ignoring SVN files | find \ -exec grep -Iw uint {} + | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Create a named screen session<|im_end|>
<|im_start|>assistant
screen -x main -X title blah<|im_end|> | Create a named screen session | screen -x main -X title blah | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are 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 move all these to another folder appending ".bar" at the end of these files<|im_end|>
<|im_start... | find all the text files in current folder and move all these to another folder appending ".bar" at the end of these files | find . -name "*.txt" | xargs -I '{}' mv '{}' /foo/'{}'.bar | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are 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/directories under current directory<|im_end|>
<|im_start|>assistant
find . -name "*.java"<|im_end|> | find all *.java files/directories under current directory | find . -name "*.java" | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Find all *.wav files under current directory that match 'export' in their names and pipe the output to ./calc_space<|im_end|>
<|im_start|>assi... | Find all *.wav files under current directory that match 'export' in their names and pipe the output to ./calc_space | find -type f -name "*.wav" | grep export | ./calc_space | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Check if a specific service is running and restart it if it's not.<|im_end|>
<|im_start|>assistant
#!/bin/bash
service_name="service_name"
i... | Check if a specific service is running and restart it if it's not. | #!/bin/bash
service_name="service_name"
if ! systemctl is-active --quiet $service_name; then
systemctl restart $service_name
fi | AnishJoshi/nl2bash-custom |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.