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
Create a script to monitor SSL certificate expiration dates and send alerts if certificates are nearing expiration.<|im_end|>
<|im_start|>assi... | Create a script to monitor SSL certificate expiration dates and send alerts if certificates are nearing expiration. | #!/bin/bash
expiry=$(openssl x509 -enddate -noout -in /path/to/certificate.crt | cut -d= -f2)
expiry_date=$(date -d "$expiry" +%s)
current_date=$(date +%s)
days_left=$(( ($expiry_date - $current_date) / 86400 ))
if (( days_left < 30 )); then
echo "SSL certificate expires in $days_left days" | mail -s "SSL Certifi... | 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 *.txt files/directories under current directory and execute process_one for each of them<|im_end|>
<|im_start|>assistant
find . -name... | Find all *.txt files/directories under current directory and execute process_one for each of them | find . -name "*.txt" -print0 | xargs -0 -n 1 process_one | 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 "ps -mo pid,tid,%cpu,psr -p \`pgrep firefox\`" every half second displayed with no title and highlighting the differences<|im_end|>
<|... | Execute "ps -mo pid,tid,%cpu,psr -p \`pgrep firefox\`" every half second displayed with no title and highlighting the differences | watch -tdn0.5 ps -mo pid,tid,%cpu,psr -p \`pgrep firefox\` | 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 in maximum 2 levels down the current directory<|im_end|>
<|im_start|>assistant
find . -maxdepth 2 -type f<|im_end|> | Find all files in maximum 2 levels down the current directory | find . -maxdepth 2 -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
Print total size of file systems in kilobytes.<|im_end|>
<|im_start|>assistant
df | tail -n +2 | tr -s ' ' | cut -d ' ' -f 2 | paste -s -d+ | ... | Print total size of file systems in kilobytes. | df | tail -n +2 | tr -s ' ' | cut -d ' ' -f 2 | paste -s -d+ | bc | 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 lines in "file" that contain "pattern", using "temp" as temporary working file .<|im_end|>
<|im_start|>assistant
grep -v "pattern" ... | Delete all lines in "file" that contain "pattern", using "temp" as temporary working file . | grep -v "pattern" file > temp && mv temp 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
Reads content of bzip2 compressed files and processes it with awk utility.<|im_end|>
<|im_start|>assistant
bzip2 -dc input1.vcf.bz2 input2.vcf... | Reads content of bzip2 compressed files and processes it with awk utility. | bzip2 -dc input1.vcf.bz2 input2.vcf.bz2 | awk 'FNR==NR { array[$1,$2]=$8; next } ($1,$2) 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
Find all files whose names begin with 'Makefile' in the /usr/ports directory tree and count the number of lines in them containing ^M<|im_end|... | Find all files whose names begin with 'Makefile' in the /usr/ports directory tree and count the number of lines in them containing ^M | find /usr/ports/ -name Makefile\* -exec grep `printf '\15'` -l '{}' '+' | 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
Reverse the order of lines in "dax-weekly.csv" keeping the first line the same<|im_end|>
<|im_start|>assistant
cat dax-weekly.csv | awk '1 { l... | Reverse the order of lines in "dax-weekly.csv" keeping the first line the same | cat dax-weekly.csv | awk '1 { last = NR; line[last] = $0; } END { print line[1]; for (i = last; i > 1; i--) { print line[i]; } }' | 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 SUID set files under current directory and show a few lines of output from the beginning<|im_end|>
<|im_start|>assistant
find . -perm... | Find all SUID set files under current directory and show a few lines of output from the beginning | find . -perm /u=s | head | 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
Save the first three octets of the host name's IP address to variable "subnet"<|im_end|>
<|im_start|>assistant
subnet=$<|im_end|> | Save the first three octets of the host name's IP address to variable "subnet" | subnet=$ | 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 trailing white spaces from all files under dir directory<|im_end|>
<|im_start|>assistant
find dir -type f -exec sed -i 's/ *$//' '{}' '... | Remove trailing white spaces from all files under dir directory | find dir -type f -exec sed -i 's/ *$//' '{}' ';' | 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
Generate a random alphanumeric string.<|im_end|>
<|im_start|>assistant
#!/bin/bash
tr -dc 'a-zA-Z0-9' < /dev/urandom | head -c 20<|im_end|> | Generate a random alphanumeric string. | #!/bin/bash
tr -dc 'a-zA-Z0-9' < /dev/urandom | head -c 20 | 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 all the jpg files in the folder "/mnt/hda1/zdjecia/test1/" and create a directory in /mnt/hda1/test with the same name as the mp3 f... | search for all the jpg files in the folder "/mnt/hda1/zdjecia/test1/" and create a directory in /mnt/hda1/test with the same name as the mp3 file | find /mnt/hda1/zdjecia/test1/ -type f -iname ‘*.jpg’ -printf ‘%’h’\'”0″ | xargs -0 -I ‘{}’ mkdir -p /mnt/hda1/test/{} \; | 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 that do not contain "main.cpp"<|im_end|>
<|im_start|>assistant
diff <(find . -exec readlink -f {} \; | sed 's/\\/.*$/\1/'... | Find all directories that do not contain "main.cpp" | diff <(find . -exec readlink -f {} \; | sed 's/\\/.*$/\1/' | sort | uniq) <(find . -name main.cpp -exec readlink -f {} \; | sed 's/\\/.*$/\1/' | sort | uniq) | sed -n 's/< \/\1/p' | 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 the files under the current working directory with inode numbers specified on standard input<|im_end|>
<|im_start|>assistant
xargs -n 1... | Delete the files under the current working directory with inode numbers specified on standard input | xargs -n 1 -I '{}' find "$" -type f -inum '{}' -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
Sort content of files 'file1' and 'file2' by second of dot-separated fields.<|im_end|>
<|im_start|>assistant
cat file1 file2 |sort -t. -k 2.1<... | Sort content of files 'file1' and 'file2' by second of dot-separated fields. | cat file1 file2 |sort -t. -k 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
create a backup of all the files in the file system which belong to the suer edwarda to the floppy<|im_end|>
<|im_start|>assistant
find / -use... | create a backup of all the files in the file system which belong to the suer edwarda to the floppy | find / -user edwarda -print | cpio -ovBc > /dev/rfd0 | 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 *.bmp files in the current directory tree and convert them to the JPEG format<|im_end|>
<|im_start|>assistant
find -name *.bmp -type ... | Find all *.bmp files in the current directory tree and convert them to the JPEG format | find -name *.bmp -type f -exec convert '{}' '{}'.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
Finds IP address of 'en0' network interface.<|im_end|>
<|im_start|>assistant
ifconfig en0 | grep inet | grep -v inet6 | awk '{print $2}'<|im_e... | Finds IP address of 'en0' network interface. | ifconfig en0 | grep inet | grep -v inet6 | awk '{print $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
Find files named "AssemblyInfo.cs" in the current directory and below, and run "git diff --name-status" on them<|im_end|>
<|im_start|>assistan... | Find files named "AssemblyInfo.cs" in the current directory and below, and run "git diff --name-status" on them | find . -name AssemblyInfo.cs | xargs git diff --name-status -- | 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
download contents from "http://url" using a proxy server<|im_end|>
<|im_start|>assistant
curl -x http://proxy_server:proxy_port --proxy-user ... | download contents from "http://url" using a proxy server | curl -x http://proxy_server:proxy_port --proxy-user username:password -L http://url | 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 string "123" once with '1' replaced by 'a' and second time replaced by 'b'<|im_end|>
<|im_start|>assistant
echo 123 | tee > | tr 1 b<|i... | Print string "123" once with '1' replaced by 'a' and second time replaced by 'b' | echo 123 | tee > | tr 1 b | 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 functions defined in the shell<|im_end|>
<|im_start|>assistant
set | grep " $" | cut -d' ' -f1<|im_end|> | List all functions defined in the shell | set | grep " $" | 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
Check if a specific directory exists and has the correct owner and group recursively.<|im_end|>
<|im_start|>assistant
#!/bin/bash
directory="... | Check if a specific directory exists and has the correct owner and group recursively. | #!/bin/bash
directory="/path/to/directory"
owner="owner"
group="group"
if [ -d "$directory" ] && [ $(find "$directory" ! -user "$owner" -o ! -group "$group") ]; then
echo "Directory exists with correct owner and group"
else
echo "Directory does not exist or has incorrect owner or group"
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 400 permission files under /data directory and print 'Modifying ' appended with file path for each of them<|im_end|>
<|im_start|>assi... | Find all 400 permission files under /data directory and print 'Modifying ' appended with file path for each of them | find /data -type f -perm 400 -exec echo Modifying {} \; | 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 "Test\rTesting\r\nTester\rTested"<|im_end|>
<|im_start|>assistant
echo -e "Test\rTesting\r\nTester\rTested" | ... | Display the named characters in "Test\rTesting\r\nTester\rTested" | echo -e "Test\rTesting\r\nTester\rTested" | 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
set alias "histgrep" for command "history | grep"<|im_end|>
<|im_start|>assistant
alias histgrep="history | grep"<|im_end|> | set alias "histgrep" for command "history | grep" | alias histgrep="history | grep" | 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 total apparent size of a file<|im_end|>
<|im_start|>assistant
du -sb<|im_end|> | Display total apparent size of a file | du -sb | 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 last 10 lines of a file.<|im_end|>
<|im_start|>assistant
#!/bin/bash
file_path="/path/to/your/file.txt"
tail "$file_path"<|im_end|... | Print the last 10 lines of a file. | #!/bin/bash
file_path="/path/to/your/file.txt"
tail "$file_path" | 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 in the current directory tree whose names are of the form "cxx_data.txt" where xx is a number from 40 to 70<|im_end|>
<|im_start|>a... | Find files in the current directory tree whose names are of the form "cxx_data.txt" where xx is a number from 40 to 70 | find . -regextype posix-egrep -regex "./c(|70)_data.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
display all the doc files in the current folder<|im_end|>
<|im_start|>assistant
find . -name '*.doc'<|im_end|> | display all the doc files in the current folder | find . -name '*.doc' | 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
Counts the total number of lines in all the files in a git repository.<|im_end|>
<|im_start|>assistant
git ls-files | xargs cat | wc -l<|im_en... | Counts the total number of lines in all the files in a git repository. | git ls-files | 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
Save count of lines from file $file matching with pattern $filter and not matching with pattern $nfilter in variable 'totalLineCnt'<|im_end|>
... | Save count of lines from file $file matching with pattern $filter and not matching with pattern $nfilter in variable 'totalLineCnt' | totalLineCnt=$; | 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 difference between line 2 and 3 in file "$f"<|im_end|>
<|im_start|>assistant
diff <(fold -w1 <(sed '2q;d' $f)) <(fold -w1 <(sed '3q;... | Print the difference between line 2 and 3 in file "$f" | diff <(fold -w1 <(sed '2q;d' $f)) <(fold -w1 <(sed '3q;d' $f)) | awk '/[<>]/{printf $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
Reformat date "Sat Aug 09 13:37:14 2014 +1100" according to format string "%a %b %d %H:%M:%S %Y %z"<|im_end|>
<|im_start|>assistant
date -j -f... | Reformat date "Sat Aug 09 13:37:14 2014 +1100" according to format string "%a %b %d %H:%M:%S %Y %z" | date -j -f "%a %b %d %H:%M:%S %Y %z" "Sat Aug 09 13:37:14 2014 +1100" | 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 binaries names in a list of running processes and prints containing folder of each binary.<|im_end|>
<|im_start|>assistant
ps aux | awk ... | Finds binaries names in a list of running processes and prints containing folder of each binary. | ps aux | awk '{print $11}' | grep -x -e "/.*" | xargs -I file dirname "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
Create a script to monitor disk I/O operations and send an alert if it exceeds a certain threshold.<|im_end|>
<|im_start|>assistant
#!/bin/bas... | Create a script to monitor disk I/O operations and send an alert if it exceeds a certain threshold. | #!/bin/bash
threshold="1000"
disk_io=$(iostat -d | grep 'sda' | awk '{print $2}')
if [ "$disk_io" -gt "$threshold" ]; then
echo "Disk I/O operations are too high: $disk_io" | mail -s "High Disk I/O Operations 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
Displays details about package 'zsh'.<|im_end|>
<|im_start|>assistant
yum info zsh<|im_end|> | Displays details about package 'zsh'. | yum info zsh | 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 that monitors system disk I/O trends and forecasts future I/O activity based on historical data.<|im_end|>
<|im_start|>assista... | Create a script that monitors system disk I/O trends and forecasts future I/O activity based on historical data. | #!/bin/bash
while true; do
sar -b | grep -v 'Average' | awk '{print $2,$6,$7}' > /tmp/disk_io.txt
sleep 3600
predict_disk_io
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
Create a script to find the sum of all digits of a number.<|im_end|>
<|im_start|>assistant
#!/bin/bash
sum_of_digits() {
num="$1"
sum... | Create a script to find the sum of all digits of a number. | #!/bin/bash
sum_of_digits() {
num="$1"
sum=0
while [ "$num" -gt 0 ]; do
digit=$((num % 10))
sum=$((sum + digit))
num=$((num / 10))
done
echo "$sum"
}
sum_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
Running "script" outputs the name of a directory, go into that directory.<|im_end|>
<|im_start|>assistant
cd `script`<|im_end|> | Running "script" outputs the name of a directory, go into that directory. | cd `script` | 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 SNMP server status and send an alert if the server is down.<|im_end|>
<|im_start|>assistant
#!/bin/bash
snmp_statu... | Create a script to monitor SNMP server status and send an alert if the server is down. | #!/bin/bash
snmp_status=$(systemctl is-active --quiet snmpd)
if [ "$snmp_status" != "active" ]; then
echo "SNMP server is down."
# 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
Calculate the md5 sum of "logdir" and print only the hash<|im_end|>
<|im_start|>assistant
echo -n "logdir" | md5sum - | awk '{print $1}'<|im_e... | Calculate the md5 sum of "logdir" and print only the hash | echo -n "logdir" | md5sum - | awk '{print $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
Print each column in "file" with "-" character removed<|im_end|>
<|im_start|>assistant
fold -w1 file | pr -4t | sed 's/\s*-\s*//g' | tr -d '\n... | Print each column in "file" with "-" character removed | fold -w1 file | pr -4t | sed 's/\s*-\s*//g' | tr -d '\n' | sed '$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
Saves location of file $1 in 'dir_context' variable.<|im_end|>
<|im_start|>assistant
dir_context=$<|im_end|> | Saves location of file $1 in 'dir_context' variable. | dir_context=$ | 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 SSL certificate validity and send an alert if any certificates are invalid.<|im_end|>
<|im_start|>assistant
... | Create a script to monitor system SSL certificate validity and send an alert if any certificates are invalid. | #!/bin/bash
invalid_certificates=$(openssl verify -verbose -CAfile /path/to/ca-bundle.crt /path/to/certificate.pem 2>&1)
if [ "$invalid_certificates" != "" ]; then
echo "Invalid SSL certificate detected."
# 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
Merge 10 already sorted files and display the result, pausing at each page of output.<|im_end|>
<|im_start|>assistant
sort -m a b c d e f g h ... | Merge 10 already sorted files and display the result, pausing at each page of output. | sort -m a b c d e f g h i j | more | 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 and redirect it to /tmp/files.txt<|im_end|>
<|im_start|>assistant
find . -ls > /tmp/files.t... | List all files/directories under current directory and redirect it to /tmp/files.txt | find . -ls > /tmp/files.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
Get current directory name without full path, ie. the part after the last /<|im_end|>
<|im_start|>assistant
basename "$"<|im_end|> | Get current directory name without full path, ie. the part after the last / | basename "$" | 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 IP addresses of all active network interfaces.<|im_end|>
<|im_start|>assistant
ifconfig | grep 'inet addr:'| grep -v '127.0.0.1' | cut -... | Gets IP addresses of all active network interfaces. | ifconfig | grep 'inet addr:'| grep -v '127.0.0.1' | cut -d: -f2 | awk '{ print $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
Print source of the file system containing current working directory.<|im_end|>
<|im_start|>assistant
df . | tail -1 | awk '{print $1}'<|im_en... | Print source of the file system containing current working directory. | df . | tail -1 | awk '{print $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 in the current directory and all sub-directories except ./D for the file hi.dat using the extending file-globbing features of the shell... | Search in the current directory and all sub-directories except ./D for the file hi.dat using the extending file-globbing features of the shell. | shopt -s extglob find ! -name hi.dat | 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 kernel messages every 10 seconds for 1 minute and display the results.<|im_end|>
<|im_start|>assistant
#!/bin/bash
for ((i=0; ... | Monitor system kernel messages every 10 seconds for 1 minute and display the results. | #!/bin/bash
for ((i=0; i<6; i++)); do
dmesg | tail -n 10 >> kernel_messages.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 specific lines in "File-out" that do not match "File-Reference" to standard output<|im_end|>
<|im_start|>assistant
diff --old-line-forma... | Print specific lines in "File-out" that do not match "File-Reference" to standard output | diff --old-line-format '%L' --new-line-format '' --unchanged-line-format '' < < | 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 /media/shared directory recursively for MP3 and OGG files<|im_end|>
<|im_start|>assistant
find /media/shared \<|im_end|> | Search the /media/shared directory recursively for MP3 and OGG files | find /media/shared \ | 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 *shp* files/directories under current directory<|im_end|>
<|im_start|>assistant
find . -name '*shp*'<|im_end|> | Find all *shp* files/directories under current directory | find . -name '*shp*' | 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 all the files ending with ".bak" in current folder which have not been accessed in the last 30 days and delete the file it it exist... | search for all the files ending with ".bak" in current folder which have not been accessed in the last 30 days and delete the file it it exists | find . -name '*.bak' -type f -atime +30 -exec csh -c 'test -s $1:r && rm $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
find all files in a directory with default depth size and compress them to lpicpio.2 file<|im_end|>
<|im_start|>assistant
find ~/lpi103-2/ -d... | find all files in a directory with default depth size and compress them to lpicpio.2 file | find ~/lpi103-2/ -depth -print0 | cpio --null -o > ../lpicpio.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
Continuously print the seconds since Unix epoch and the ping time to "google.com"<|im_end|>
<|im_start|>assistant
ping google.com | awk -F'[ =... | Continuously print the seconds since Unix epoch and the ping time to "google.com" | ping google.com | awk -F'[ =]' 'NR>1{print system("echo -n $"), $11}' | 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 the 4th tab separated column from the output of "finger"<|im_end|>
<|im_start|>assistant
finger | awk -F"\t" -v 'OFS=\t' '{ $4=""; prin... | Delete the 4th tab separated column from the output of "finger" | finger | awk -F"\t" -v 'OFS=\t' '{ $4=""; print $0}' | sed 's/\t\{2,\}/\t/' | 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 *.$input_file_type files/directories under $source_dir<|im_end|>
<|im_start|>assistant
find "$source_dir" -name *.$input_file_type<|i... | Find all *.$input_file_type files/directories under $source_dir | find "$source_dir" -name *.$input_file_type | 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 Docker Swarm service status and scale services up or down based on resource utilization.<|im_end|>
<|im_star... | Create a script to monitor system Docker Swarm service status and scale services up or down based on resource utilization. | #!/bin/bash
service_name="<service_name>"
replicas=$(docker service inspect --format '{{.Spec.Mode.Replicated.Replicas}}' $service_name)
cpu_usage=$(docker service ps --format '{{.CurrentCPU}}' $service_name | awk '{sum+=$1} END {print sum}')
memory_usage=$(docker service ps --format '{{.CurrentMemory}}' $service_name... | 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 'test' directory tree that match the regex '[course*]' in their paths<|im_end|>
<|im_start|>assistant
find test -re... | Find all directories under 'test' directory tree that match the regex '[course*]' in their paths | find test -regex "[course*]" -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
Gets IP address of 'en0' selected network interface.<|im_end|>
<|im_start|>assistant
ifconfig en0 | awk '/inet addr/ {gsub("addr:", "", $2); p... | Gets IP address of 'en0' selected network interface. | ifconfig en0 | awk '/inet addr/ {gsub("addr:", "", $2); print $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
Get the command line args passed to a running process<|im_end|>
<|im_start|>assistant
ps -fp <pid><|im_end|> | Get the command line args passed to a running process | ps -fp <pid> | 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 xml files in the current folder which are present in the pattern text file<|im_end|>
<|im_start|>assistant
find . -name "*.xml" -... | find all the xml files in the current folder which are present in the pattern text file | find . -name "*.xml" -exec grep -HFf <(find . -name "*.txt" -printf "%f\n") {} \; | 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 access times sorted by last access time and size.<|im_end|>
<|im_start|>assis... | Print the list of files in a directory with their sizes and last access times sorted by last access time and size. | #!/bin/bash
ls -l --time-style=long-iso /path/to/your/directory | awk '{print $5, $6, $7, $8, $9}' | sort -k 4,4 -k 1,1n | 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
Subtract each column in File2 from matching column in File1, output the result in a similarly formatted table<|im_end|>
<|im_start|>assistant
... | Subtract each column in File2 from matching column in File1, output the result in a similarly formatted table | awk 'FNR==NR { for a[$1][i]=$i; next } { for $j-=a[$1][j] }1' File2 File1 | rev | column -t | rev | 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
Get the current shell's executable name from the output of 'ps'.<|im_end|>
<|im_start|>assistant
ps -p $$ | awk '$1 == PP {print $4}' PP=$$<|i... | Get the current shell's executable name from the output of 'ps'. | ps -p $$ | awk '$1 == PP {print $4}' PP=$$ | 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
Report only total size of file systems in 1T blocks.<|im_end|>
<|im_start|>assistant
df --total -BT | tail -n 1 | sed -E 's/total *([^ ]*).*/\... | Report only total size of file systems in 1T blocks. | df --total -BT | tail -n 1 | sed -E 's/total *([^ ]*).*/\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
Print the base name of the current working directory<|im_end|>
<|im_start|>assistant
echo "$(basename $(pwd))"<|im_end|> | Print the base name of the current working directory | echo "$(basename $(pwd))" | 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
Calculate the total size of all *.jpg files in the directory tree<|im_end|>
<|im_start|>assistant
find . -type f -iname "*.jpg" -ls | awk 'BEG... | Calculate the total size of all *.jpg files in the directory tree | find . -type f -iname "*.jpg" -ls | awk 'BEGIN {print "0"}; {print $7, "+"}; END {print "p"}' | dc | 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' -e 's/^\./avoid/g' | grep -v avoid | awk '{print $1"\t"$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
Create a script that monitors system CPU usage trends and forecasts future CPU usage based on historical data.<|im_end|>
<|im_start|>assistant... | Create a script that monitors system CPU usage trends and forecasts future CPU usage based on historical data. | #!/bin/bash
while true; do
sar -u | grep -v 'Average' | awk '{print $2,$3}' > /tmp/cpu_usage.txt
sleep 3600
predict_cpu_usage
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
Write the last line of "$file" to standard output and remove it from "$file"<|im_end|>
<|im_start|>assistant
tail -n 1 "$file" | tee ><|im_end... | Write the last line of "$file" to standard output and remove it from "$file" | tail -n 1 "$file" | tee > | 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 ./yourProgram without address space randomization, reporting actual machine type.<|im_end|>
<|im_start|>assistant
setarch `uname -m` -R ./... | Run ./yourProgram without address space randomization, reporting actual machine type. | setarch `uname -m` -R ./yourProgram | 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 that monitors system network interface TCP segments received and alerts if any interface exceeds a certain threshold.<|im_end|... | Create a script that monitors system network interface TCP segments received and alerts if any interface exceeds a certain threshold. | #!/bin/bash
threshold=1000
while true; do
netstat -s | awk '/segments received/ && $1 > "$threshold" {print $1}'
sleep 60
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
Gets domain name from dig reverse lookup and save in variable 'go'.<|im_end|>
<|im_start|>assistant
go=$<|im_end|> | Gets domain name from dig reverse lookup and save in variable 'go'. | go=$ | 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
add read,write permissions to all the files in the current folder which have the permission 600<|im_end|>
<|im_start|>assistant
find . -perm 6... | add read,write permissions to all the files in the current folder which have the permission 600 | find . -perm 600 -print | xargs chmod 666 | 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 file exists and is a character device.<|im_end|>
<|im_start|>assistant
#!/bin/bash
file="/path/to/file"
if [ -c "$file" ... | Check if a specific file exists and is a character device. | #!/bin/bash
file="/path/to/file"
if [ -c "$file" ]; then
echo "$file exists and is a character device"
else
echo "$file does not exist or is not a character device"
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
Prefix all files and directories in the current directory with "Unix_" if the files contain no whitespace or subdirectories<|im_end|>
<|im_sta... | Prefix all files and directories in the current directory with "Unix_" if the files contain no whitespace or subdirectories | for FILENAME in *; do mv $FILENAME Unix_$FILENAME; 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
Create script filesPermissions.sh that restores the original permissions of the regular files in the current directory tree<|im_end|>
<|im_sta... | Create script filesPermissions.sh that restores the original permissions of the regular files in the current directory tree | find . -type f | xargs stat -c "%a %n" | awk '{print "chmod "$1" "$2}' > ./filesPermissions.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
Process all files matching pattern 'file*' and residing in the xargstest/ directory tree with script `myscript.sh'<|im_end|>
<|im_start|>assis... | Process all files matching pattern 'file*' and residing in the xargstest/ directory tree with script `myscript.sh' | find xargstest/ -name 'file*' -print0 | xargs -0 myscript.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
Check if a specific user exists and display their login shell if they do.<|im_end|>
<|im_start|>assistant
#!/bin/bash
username="username"
if... | Check if a specific user exists and display their login shell if they do. | #!/bin/bash
username="username"
if id -u $username >/dev/null 2>&1; then
echo "Login shell for $username is: $(getent passwd $username | cut -d: -f7)"
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
Delete characters in columns 36 through 40 from the output of "finger"<|im_end|>
<|im_start|>assistant
finger | sed 's/\...../\1/'<|im_end|> | Delete characters in columns 36 through 40 from the output of "finger" | finger | sed 's/\...../\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
Rewrite 'temp.txt' omitting any repeating lines<|im_end|>
<|im_start|>assistant
uniq temp.txt | perl -e 'undef $/; $_ = <>; open; print OUT;'<... | Rewrite 'temp.txt' omitting any repeating lines | uniq temp.txt | perl -e 'undef $/; $_ = <>; open; print OUT;' | 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 last N lines from file.txt<|im_end|>
<|im_start|>assistant
head -$(gcalctool -s $-N) file.txt<|im_end|> | removes last N lines from file.txt | head -$(gcalctool -s $-N) 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
Create a script to monitor system software package updates and send an alert if any updates are available.<|im_end|>
<|im_start|>assistant
#!/... | Create a script to monitor system software package updates and send an alert if any updates are available. | #!/bin/bash
apt-get update -qq
updates_available=$(apt-get -s upgrade | grep -cE '^Inst')
if [ "$updates_available" -gt "0" ]; then
echo "Updates available: $updates_available" | mail -s "Package Update 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
file1 and file2 contain lines of comma-separated information, for each line whose first field matches, and where 3rd field of file1 matches 2n... | file1 and file2 contain lines of comma-separated information, for each line whose first field matches, and where 3rd field of file1 matches 2nd field of file2, 6th field of file1 matches 3rd field of file2, and 7th field of file1 matches 4th field of file2, output: fields 1, 2, 3, 4, 6, and 7 of file1. | join -t, file1 file2 | awk -F, 'BEGIN{OFS=","} {if print $1,$2,$3,$4,$6,$7}' | 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 process memory usage and send an alert if any process exceeds a certain memory usage during specif... | Create a script to monitor system root user process memory usage and send an alert if any process exceeds a certain memory usage during specific hours. | #!/bin/bash
threshold="500"
current_hour=$(date +'%H')
if [ "$current_hour" -ge "8" ] && [ "$current_hour" -le "18" ]; then
processes=$(ps aux --sort=-%mem | awk 'NR<=5{print $11}')
while read -r process; do
mem_usage=$(ps -C "$process" --no-headers -o %mem | awk '{print $1}')
if [ "$mem_usa... | 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 disk activity every 10 seconds for 1 minute and display the results.<|im_end|>
<|im_start|>assistant
#!/bin/bash
for ((i=0; i<... | Monitor system disk activity every 10 seconds for 1 minute and display the results. | #!/bin/bash
for ((i=0; i<6; i++)); do
sar -d 10 6
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
Create a script to monitor system temperature and send an alert if it exceeds a certain threshold.<|im_end|>
<|im_start|>assistant
#!/bin/bash... | Create a script to monitor system temperature and send an alert if it exceeds a certain threshold. | #!/bin/bash
threshold=75
temperature=$(sensors | grep 'Package id 0' | awk '{print $4}')
if [ "$temperature" -gt "$threshold" ]; then
echo "System temperature exceeds $threshold°C."
# 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
Join comma-separated data in file1 and file2, including extra non-matching information in both files.<|im_end|>
<|im_start|>assistant
join -t,... | Join comma-separated data in file1 and file2, including extra non-matching information in both files. | join -t, -a1 -a2 < < | 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 regular files whose names match Perl regular expression '\w+-\d+x\d+\.\w+$' from the current directory tree<|im_end|>
<|im_start|>assis... | Remove regular files whose names match Perl regular expression '\w+-\d+x\d+\.\w+$' from the current directory tree | find -type f | grep -P '\w+-\d+x\d+\.\w+$' | sed -re 's/(\s)/\\\1/g' | xargs 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
Move all files from the current directory to "targetdirectory"<|im_end|>
<|im_start|>assistant
find . ! -name . -prune -exec sh -c 'shift $1; ... | Move all files from the current directory to "targetdirectory" | find . ! -name . -prune -exec sh -c 'shift $1; mv "$@" targetdirectory/' 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
Reads content of bzip2 compressed files and processes it with awk utility.<|im_end|>
<|im_start|>assistant
bzip2 -dc input1.vcf.bz2 input2.vcf... | Reads content of bzip2 compressed files and processes it with awk utility. | bzip2 -dc input1.vcf.bz2 input2.vcf.bz2 | 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
Read a line from standard input into variable "YESNO" ignoring backslash escapes and using the prompt "$ ? [y/N] "<|im_end|>
<|im_start|>assis... | Read a line from standard input into variable "YESNO" ignoring backslash escapes and using the prompt "$ ? [y/N] " | read -r -p "$ ? [y/N] " YESNO | 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 printer access attempts and generate reports on print requests.<|im_end|>
<|im_start|>assistant
#!/bin/bash
... | Create a script to monitor system printer access attempts and generate reports on print requests. | #!/bin/bash
touch /tmp/printer_access_report.txt
while true; do
grep 'printer' /var/log/syslog >> /tmp/printer_access_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
Find "$i" files under current directory and search for "$SrchStr" in those files<|im_end|>
<|im_start|>assistant
find . -name "$i" -type f -pr... | Find "$i" files under current directory and search for "$SrchStr" in those files | find . -name "$i" -type f -print | xargs egrep -n "$SrchStr" >/dev/null | AnishJoshi/nl2bash-custom |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.