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
Takes first text field from file 'file.txt' as a domain name and gets short A record for this one.<|im_end|>
<|im_start|>assistant
awk '{print... | Takes first text field from file 'file.txt' as a domain name and gets short A record for this one. | awk '{print $1}' file.txt | xargs dig +short | 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 number of 'processors' less 1.<|im_end|>
<|im_start|>assistant
cat /proc/cpuinfo | awk '/^processor/{print $3}' | tail -1<|im_end|> | Print the number of 'processors' less 1. | cat /proc/cpuinfo | awk '/^processor/{print $3}' | tail -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
Run the Java archive "program.jar" in the background and immune to SIGHUP sent to it.<|im_end|>
<|im_start|>assistant
nohup java -jar program... | Run the Java archive "program.jar" in the background and immune to SIGHUP sent to it. | nohup java -jar program.jar & | 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 address of eth0 network interface.<|im_end|>
<|im_start|>assistant
ifconfig eth0 | awk '/HWaddr/ {print $5}'<|im_end|> | Gets MAC address of eth0 network interface. | ifconfig eth0 | awk '/HWaddr/ {print $5}' | 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 *.mp4 files under /foo/bar and move them to /some/path<|im_end|>
<|im_start|>assistant
find /foo/bar -name '*.mp4' -print0 | xargs -I... | Find all *.mp4 files under /foo/bar and move them to /some/path | find /foo/bar -name '*.mp4' -print0 | xargs -I{} -0 mv -t /some/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
Print the path to the pipe created for process substitution<|im_end|>
<|im_start|>assistant
echo <<|im_end|> | Print the path to the pipe created for process substitution | echo < | 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
Archive all files specified on standard input under "/path/to/files" to "/path" on host "targethost" as user "user" with escalated privileges<... | Archive all files specified on standard input under "/path/to/files" to "/path" on host "targethost" as user "user" with escalated privileges | rsync -av --files-from=- --rsync-path="sudo rsync" /path/to/files user@targethost:/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
Calculate the SHA1 sum for the contents of the path/to/folder directory tree, including permissions<|im_end|>
<|im_start|>assistant
find path/... | Calculate the SHA1 sum for the contents of the path/to/folder directory tree, including permissions | find path/to/folder -type f -print0 | sort -z | xargs -0 sha1sum; find path/to/folder \ -print0 | sort -z | xargs -0 stat -c '%n %a' | sha1sum | 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 minimum 1 level down the current directory excluding directories (along with their contents) that start with a . (... | Find all directories under minimum 1 level down the current directory excluding directories (along with their contents) that start with a . (dot) in their names | find . -mindepth 1 -name '.*' -prune -o \( -type d -print \) | 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 disk I/O and send an alert if any process exceeds a certain threshold.<|im_end|>
<|im_start|>assista... | Create a script to monitor system process disk I/O and send an alert if any process exceeds a certain threshold. | #!/bin/bash
threshold=100
process_io=$(iotop -b -n 1 | grep -v 'Total' | awk '{print $4}')
if [ "$process_io" -gt "$threshold" ]; then
echo "Process disk I/O exceeds $threshold KB/s."
# 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
Move all files that contain "Subject: \[SPAM\]" to "your_file"<|im_end|>
<|im_start|>assistant
mv $ your_file<|im_end|> | Move all files that contain "Subject: \[SPAM\]" to "your_file" | mv $ your_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 the directories whose names contain "New Parts" at level 3 of the current directory tree and create symlinks to them in /cygdrive/c/Views... | Find the directories whose names contain "New Parts" at level 3 of the current directory tree and create symlinks to them in /cygdrive/c/Views | find -mindepth 3 -maxdepth 3 -type d -name "*New Parts*" -exec ln -s -t /cygdrive/c/Views {} \; | 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 create it if it doesn't, including parent directories.<|im_end|>
<|im_start|>assistant
#!/bin/bash
d... | Check if a specific directory exists and create it if it doesn't, including parent directories. | #!/bin/bash
directory="/path/to/directory"
mkdir -p "$directory" | 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
Compute difference between two dates<|im_end|>
<|im_start|>assistant
date -ujf%s $(($ - $)) +%T<|im_end|> | Compute difference between two dates | date -ujf%s $(($ - $)) +%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
Delete the text matched by the regex '<script>if(window.*<\/script>' in all index.html files under current directory<|im_end|>
<|im_start|>ass... | Delete the text matched by the regex '<script>if(window.*<\/script>' in all index.html files under current directory | find index.html | xargs -rt sed -i 's/<script>if(window.*<\/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
Rename all *.jpg files to *_MED.jpg files under temp/medium directory<|im_end|>
<|im_start|>assistant
find temp/medium -iname "*.jpg" -printf ... | Rename all *.jpg files to *_MED.jpg files under temp/medium directory | find temp/medium -iname "*.jpg" -printf 'mv %p %p\n' | sed 's/\.jpg$/_MED\.jpg/' | while read l; do eval $l; 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
Prints list of user 'myuser' groups in a format: 'groups: [comma-separated groups list]'.<|im_end|>
<|im_start|>assistant
echo "groups: [ $(gr... | Prints list of user 'myuser' groups in a format: 'groups: [comma-separated groups list]'. | echo "groups: [ $(groups myuser | sed -e 's/.\+\s\+:\s\+\/\1/g' -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
list all files under .performance_test directory except .performance_test/prune_me directory<|im_end|>
<|im_start|>assistant
find ".performanc... | list all files under .performance_test directory except .performance_test/prune_me directory | find ".performance_test" -not \ -exec bash -c 'echo "$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
Create a script to monitor system GPU fan speed and send an alert if it's too low.<|im_end|>
<|im_start|>assistant
#!/bin/bash
threshold=1000... | Create a script to monitor system GPU fan speed and send an alert if it's too low. | #!/bin/bash
threshold=1000
gpu_fan_speed=$(nvidia-smi --query-gpu=fan.speed --format=csv,noheader)
if [ "$gpu_fan_speed" -lt "$threshold" ]; then
echo "System GPU fan speed 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
Find all regular files in the current directory tree ignoring GIT and SVN directories<|im_end|>
<|im_start|>assistant
find . \( -type d -regex... | Find all regular files in the current directory tree ignoring GIT and SVN directories | find . \( -type d -regex '^.*/\.\$' -prune -false \) -o -type f -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
List all leaf directories under current directory<|im_end|>
<|im_start|>assistant
for dir in $; do [[ ! $prev =~ $dir ]] && echo "$dir" ; pre... | List all leaf directories under current directory | for dir in $; do [[ ! $prev =~ $dir ]] && echo "$dir" ; prev="$dir"; 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
Display smbios/DMI information, pausing for user interaction between pages of output.<|im_end|>
<|im_start|>assistant
dmidecode | more<|im_end... | Display smbios/DMI information, pausing for user interaction between pages of output. | dmidecode | 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
Prints long listing of content in a root folder, including hidden files, with human-readable sizes, and stores output to '/root/test.out' file... | Prints long listing of content in a root folder, including hidden files, with human-readable sizes, and stores output to '/root/test.out' file. | sudo ls -hal /root/ | sudo tee /root/test.out > /dev/null | 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 BINARY-NAME\`" every half second displayed with no title and highlighting the differences<|im_end|... | Execute "ps -mo pid,tid,%cpu,psr -p \`pgrep BINARY-NAME\`" every half second displayed with no title and highlighting the differences | watch -tdn0.5 ps -mo pid,tid,%cpu,psr -p \`pgrep BINARY-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 the files ending with ".sh" in the folder /dir excluding those wth the names foo and bar.<|im_end|>
<|im_start|>assistant
find /dir \... | find all the files ending with ".sh" in the folder /dir excluding those wth the names foo and bar. | find /dir \ -o \ -o -name "*.sh" -print | 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 current directory whose status was changed less than 3 days ago, sort them and show last 5 lines of output with only thei... | Find all files under current directory whose status was changed less than 3 days ago, sort them and show last 5 lines of output with only their paths | find . -type f -ctime -3 -printf "%C@ %p\n" | sort | tail -n 5 | 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
Installs package "nodejs" answering 'yes' on all questions.<|im_end|>
<|im_start|>assistant
yum install -y nodejs<|im_end|> | Installs package "nodejs" answering 'yes' on all questions. | yum install -y nodejs | 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 only common strings in content of files 'file1.sorted' and 'file2.sorted'<|im_end|>
<|im_start|>assistant
comm -1 -2 file1.sorted file2.... | Print only common strings in content of files 'file1.sorted' and 'file2.sorted' | comm -1 -2 file1.sorted file2.sorted | 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 continuous characters '/' and '\' randomly from /dev/urandom<|im_end|>
<|im_start|>assistant
grep -ao "[/\\]" /dev/urandom|tr -d \\n<|im... | Print continuous characters '/' and '\' randomly from /dev/urandom | grep -ao "[/\\]" /dev/urandom|tr -d \\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
find all normal/regular files in the folder /some/dir and save the output to the file "somefile"<|im_end|>
<|im_start|>assistant
find /some/di... | find all normal/regular files in the folder /some/dir and save the output to the file "somefile" | find /some/dir/ -type f > somefile | 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 available header information for the executable file of command "tail"<|im_end|>
<|im_start|>assistant
objdump -x `which tail`<|im... | Display all available header information for the executable file of command "tail" | objdump -x `which tail` | 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 "chown -R ask:ask /www/askapache.com" in the background on server "askapache"<|im_end|>
<|im_start|>assistant
ssh askapache 'sh -c "( ... | Execute "chown -R ask:ask /www/askapache.com" in the background on server "askapache" | ssh askapache 'sh -c "( & )"' | 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 newlines from standard input except the last with spaces<|im_end|>
<|im_start|>assistant
sed ':a;N;$!ba;s/\n/ /g'<|im_end|> | Replace all newlines from standard input except the last with spaces | sed ':a;N;$!ba;s/\n/ /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
Connect via ssh to "your.server.example.com" and recursively copy directory "/path/to/foo" on this host to direcotry "/home/user/Desktop" on l... | Connect via ssh to "your.server.example.com" and recursively copy directory "/path/to/foo" on this host to direcotry "/home/user/Desktop" on local host, using "blowfish" cipher algorithm. | scp -c blowfish -r user@your.server.example.com:/path/to/foo /home/user/Desktop/ | 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 html, javascript and text files in the current folder<|im_end|>
<|im_start|>assistant
find . -type f \ -exec sh -c 'echo "$0"' {} ... | display the html, javascript and text files in the current folder | find . -type f \ -exec sh -c 'echo "$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
Write "hey hey, we're the monkees" to standard output and as input to to "gzip --stdout" saved to "my_log.gz"<|im_end|>
<|im_start|>assistant
... | Write "hey hey, we're the monkees" to standard output and as input to to "gzip --stdout" saved to "my_log.gz" | echo "hey hey, we're the monkees" | tee /dev/tty | gzip --stdout > my_log.gz | 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 html files in current folder and replace old string with new string<|im_end|>
<|im_start|>assistant
perl -p -i -e 's/oldstring/ne... | find all the html files in current folder and replace old string with new string | perl -p -i -e 's/oldstring/newstring/g' `find ./ -name *.html` | 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 file exists and is a regular file or a directory or a FIFO or a block special file or a character special file.<|im_end|>
<|im_star... | Check if a file exists and is a regular file or a directory or a FIFO or a block special file or a character special file. | #!/bin/bash
file="/path/to/your/file.txt"
if [ -f "$file" ] || [ -d "$file" ] || [ -p "$file" ] || [ -b "$file" ] || [ -c "$file" ]; then
echo "$file exists and is a regular file or a directory or a FIFO or a block special file or a character special file"
else
echo "$file does not exist or is not a regular 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
Delete and count files in $DIR_TO_CLEAN that are older than $DAYS_TO_SAVE days<|im_end|>
<|im_start|>assistant
find "$DIR_TO_CLEAN" -mtime +$D... | Delete and count files in $DIR_TO_CLEAN that are older than $DAYS_TO_SAVE days | find "$DIR_TO_CLEAN" -mtime +$DAYS_TO_SAVE -exec bash -c 'printf "Total: %d\n" $#; 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
Sort numbers in ascending order.<|im_end|>
<|im_start|>assistant
#!/bin/bash
numbers="5 3 7 1 9"
sorted_numbers=$(echo "$numbers" | tr ' ' '... | Sort numbers in ascending order. | #!/bin/bash
numbers="5 3 7 1 9"
sorted_numbers=$(echo "$numbers" | tr ' ' '
' | sort -n)
echo "$sorted_numbers" | 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 .sql files in the current directory recursively and apply script "scriptname" to them<|im_end|>
<|im_start|>assistant
find . -name '*... | Find all .sql files in the current directory recursively and apply script "scriptname" to them | find . -name '*.sql' -exec 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
Save absolute path of the script filename in variable "MY_PATH"<|im_end|>
<|im_start|>assistant
MY_PATH=$(readlink -f "$0")<|im_end|> | Save absolute path of the script filename in variable "MY_PATH" | MY_PATH=$(readlink -f "$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
Move all *.pdf.marker files and their corresponding *.pdf files under ${INPUT} to ${OUTPUT}<|im_end|>
<|im_start|>assistant
find ${INPUT}/ -na... | Move all *.pdf.marker files and their corresponding *.pdf files under ${INPUT} to ${OUTPUT} | find ${INPUT}/ -name "*.pdf" -exec mv '{}' '{}'.marker ${OUTPUT} \; | 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 string contains only uppercase letters.<|im_end|>
<|im_start|>assistant
#!/bin/bash
string="UPPERCASE"
if [[ "$string" =~ ^[[:upp... | Check if a string contains only uppercase letters. | #!/bin/bash
string="UPPERCASE"
if [[ "$string" =~ ^[[:upper:]]+$ ]]; then
echo "$string contains only uppercase letters"
else
echo "$string does not contain only uppercase letters"
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 files and directories under current directory without crossing over to other partitions and archive them into path_to_save.cpio.gz<|i... | Find all files and directories under current directory without crossing over to other partitions and archive them into path_to_save.cpio.gz | find . -xdev -print0 | cpio -oa0V | gzip > path_to_save.cpio.gz | 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 case-insensitive php or pthml files, which whole path does not contain /some/directory case-insensitivily , and excute xgettext which... | find all case-insensitive php or pthml files, which whole path does not contain /some/directory case-insensitivily , and excute xgettext which whole name as parameter | find /project/directory -iname '*.php' -or -iname '*.phtml' | grep -iv '/some/directory' | xargs xgettext | 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 in 'result' variable list of groups which user $line belongs to, and not matching pattern "_unknown|sciences|everyone|netaccounts"<|im_e... | Saves in 'result' variable list of groups which user $line belongs to, and not matching pattern "_unknown|sciences|everyone|netaccounts" | result=$ | 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 to the directory of the executable "python"<|im_end|>
<|im_start|>assistant
cd `dirname $`<|im_end|> | Change to the directory of the executable "python" | cd `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
Find all xml files under current directory and archive them to .bz2 archives<|im_end|>
<|im_start|>assistant
for i in `find . | grep ".xml$"`;... | Find all xml files under current directory and archive them to .bz2 archives | for i in `find . | grep ".xml$"`; do bzip2 $i; 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 all files under current directory and rename them by replacing all white spaces with _<|im_end|>
<|im_start|>assistant
find ./ -name "* ... | Find all files under current directory and rename them by replacing all white spaces with _ | find ./ -name "* *" -type f -d 1 | perl -ple '$file = $_; $file =~ s/\s+/_/g; rename;' | 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
update the permission of all the php files in current directory and save the output to a file<|im_end|>
<|im_start|>assistant
find . -name '*.... | update the permission of all the php files in current directory and save the output to a file | find . -name '*.php' -exec chmod 755 {} \; > logfile.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
search for a pattern in all the python files in the current folder. and save the output to output.txt file. print0 is used to handle files wit... | search for a pattern in all the python files in the current folder. and save the output to output.txt file. print0 is used to handle files with newlines in their names | find . -name '*.py' -print0 | xargs -0 grep 'something' > output.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
Format the contents of "[file]" in a neat table<|im_end|>
<|im_start|>assistant
cat file | column -t<|im_end|> | Format the contents of "[file]" in a neat table | cat file | column -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
print command for alias "list" with low priority command<|im_end|>
<|im_start|>assistant
nice -10 `alias list | sed "s/^\\?[^=]\+='//; s/'$//;... | print command for alias "list" with low priority command | nice -10 `alias list | sed "s/^\\?[^=]\+='//; 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
Find all files under current directory whose status was changed less than 3 days ago, sort them and show last 5 lines of output with only thei... | Find all files under current directory whose status was changed less than 3 days ago, sort them and show last 5 lines of output with only their paths | find . -type f -ctime -3 -printf "%C@ %p\n" | sort | tail -n 5 | 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
find all files under the current directory that end in "foo" and execute somecommand on each quoted filename<|im_end|>
<|im_start|>assistant
f... | find all files under the current directory that end in "foo" and execute somecommand on each quoted filename | find . -name "*.foo" -exec somecommand "{}" \; | 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 *.zip files under current directory and unzip them in the same directory as the files<|im_end|>
<|im_start|>assistant
find . -name '*... | Find all *.zip files under current directory and unzip them in the same directory as the files | find . -name '*.zip' -exec sh -c 'unzip -d `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
Format contents of "file" as a table<|im_end|>
<|im_start|>assistant
paste -d" " - - < file | column -t<|im_end|> | Format contents of "file" as a table | paste -d" " - - < file | column -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
delete all the files in the current folder which end with ".bak" or ".backup" and which have not been accessed in the last 30 days<|im_end|>
<... | delete all the files in the current folder which end with ".bak" or ".backup" and which have not been accessed in the last 30 days | find . -type f -atime +30 -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
display all the directories in the current folder which start with processor followed by digit and ends with .1 or .2<|im_end|>
<|im_start|>as... | display all the directories in the current folder which start with processor followed by digit and ends with .1 or .2 | find . -type d -regextype posix-egrep -regex '\./processor[0-9]*/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
Selects a job from list and get it back to the foreground .<|im_end|>
<|im_start|>assistant
fg `jobs | iselect -a | grep -o [0-9]*`<|im_end|> | Selects a job from list and get it back to the foreground . | fg `jobs | iselect -a | grep -o [0-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
Create a script to monitor system root access and send an alert if any unauthorized access is detected.<|im_end|>
<|im_start|>assistant
#!/bin... | Create a script to monitor system root access and send an alert if any unauthorized access is detected. | #!/bin/bash
unauthorized_access=$(last | grep -v 'wtmp' | grep 'root' | awk '{print $1}' | sort | uniq -c | sort -n | tail -5)
if [ -n "$unauthorized_access" ]; then
echo "Unauthorized root access 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
Monitor the number of established TCP connections every minute for 10 minutes and display the results.<|im_end|>
<|im_start|>assistant
#!/bin/... | Monitor the number of established TCP connections every minute for 10 minutes and display the results. | #!/bin/bash
for ((i=0; i<10; i++)); do
ss -t -a -o state established | wc -l >> established_connections.log
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
Find all *.mov files under current directory and run an ffmpeg command with the path and the name for each file<|im_end|>
<|im_start|>assista... | Find all *.mov files under current directory and run an ffmpeg command with the path and the name for each file | find . -iname "*.mov" -printf "%p %f\n" | xargs -r -n2 ffmpeg -f flv -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 the files from root folder which have nogroup or noname and dispaly their details.<|im_end|>
<|im_start|>assistant
find / \( -nogroup... | find all the files from root folder which have nogroup or noname and dispaly their details. | find / \( -nogroup -o -noname \) -ls | 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 *.dbf files from the root folder and prints list of folders with such files.<|im_end|>
<|im_start|>assistant
find / -nam... | Recursively finds all *.dbf files from the root folder and prints list of folders with such files. | find / -name "*.dbf" -exec dirname {} \; 2> /dev/null | sort -u | 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 all child processes of a process with id 20238.<|im_end|>
<|im_start|>assistant
pstree -p 20238 | sed 's/(/\n(/g' | grep '(' | sed 's/(... | Prints all child processes of a process with id 20238. | pstree -p 20238 | sed 's/(/\n(/g' | grep '(' | 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
Find *.avi and *.flv files in /path/to/your/directory and below and copy them to /path/to/specific/folder<|im_end|>
<|im_start|>assistant
find... | Find *.avi and *.flv files in /path/to/your/directory and below and copy them to /path/to/specific/folder | find /path/to/your/directory -regex '.*\.\' -exec cp {} /path/to/specific/folder \; | 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
Creates temporary file, replacing XXXXXXXXXXXXXXXXXXXXXXX with equal length suffix.<|im_end|>
<|im_start|>assistant
mktemp /tmp/banana.XXXXXXX... | Creates temporary file, replacing XXXXXXXXXXXXXXXXXXXXXXX with equal length suffix. | mktemp /tmp/banana.XXXXXXXXXXXXXXXXXXXXXXX.mp3 | 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 cron jobs where the minute part is either * or a number from 0 to 14.<|im_end|>
<|im_start|>assistant
crontab -l | awk '$1 == "*" || ... | List all cron jobs where the minute part is either * or a number from 0 to 14. | crontab -l | awk '$1 == "*" || $1 ~ /^[0-9]+$/ && $1 < 15 {print}' | 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
Copies newest file under the current folder to the '/tmp/'<|im_end|>
<|im_start|>assistant
cp $ /tmp/<|im_end|> | Copies newest file under the current folder to the '/tmp/' | cp $ /tmp/ | 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
Pair side-by-side content of the 'file' and its side-mirrored content<|im_end|>
<|im_start|>assistant
paste -d ' ' file <<|im_end|> | Pair side-by-side content of the 'file' and its side-mirrored content | 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
Search the system for the file “testfile.txt” ignoring the case<|im_end|>
<|im_start|>assistant
find / -iname "testfile.txt"<|im_end|> | Search the system for the file “testfile.txt” ignoring the case | find / -iname "testfile.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 a directory named 'project.images' case insensitively in the entire filesystem and show it in long listing format<|im_end|>
<|im_start|>a... | Find a directory named 'project.images' case insensitively in the entire filesystem and show it in long listing format | find / -type d -iname "project.images" -ls | 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 directories in the /myDir directory tree<|im_end|>
<|im_start|>assistant
find /myDir -type d -delete<|im_end|> | Delete all directories in the /myDir directory tree | find /myDir -type d -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 named screen session<|im_end|>
<|im_start|>assistant
screen -x main -p oldwindow -X title blah<|im_end|> | Create a named screen session | screen -x main -p oldwindow -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
Create a script to monitor system file changes in critical directories and send an alert if any changes are detected.<|im_end|>
<|im_start|>as... | Create a script to monitor system file changes in critical directories and send an alert if any changes are detected. | #!/bin/bash
critical_dirs="/etc /var/www"
for dir in $critical_dirs; do
changes=$(find $dir -cmin -60)
if [ -n "$changes" ]; then
echo "File changes detected in directory $dir." | mail -s "File Change Alert" user@example.com
fi
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 process usage and terminate processes consuming excessive CPU or memory.<|im_end|>
<|im_start|>assistant
#!/... | Create a script to monitor system process usage and terminate processes consuming excessive CPU or memory. | #!/bin/bash
threshold_cpu="90"
threshold_mem="90"
while true; do
pid_cpu=$(ps -eo pid,%cpu --sort=-%cpu | awk 'NR==2 {print $1}')
pid_mem=$(ps -eo pid,%mem --sort=-%mem | awk 'NR==2 {print $1}')
cpu_usage=$(ps -p $pid_cpu -o %cpu | tail -1)
mem_usage=$(ps -p $pid_mem -o %mem | tail -1)
if [ $(ech... | 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 whitespaces in .txt files from the current directory tree<|im_end|>
<|im_start|>assistant
find . -type f -name "*.txt" -exec s... | Remove trailing whitespaces in .txt files from the current directory tree | find . -type f -name "*.txt" -exec sh -c 'for i;do sed 's/[[:space:]]*$//' "$i">/tmp/.$$ && cat /tmp/.$$ > "$i";done' arg0 {} + | 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 database connections and logs any failed connections.<|im_end|>
<|im_start|>assistant
#!/bin/bash
while ... | Create a script that monitors system database connections and logs any failed connections. | #!/bin/bash
while true; do
grep 'connection failed' /var/log/mysql/error.log
sleep 600
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
Copy the executable "python2.7" in $PATH to "myenv/bin/python"<|im_end|>
<|im_start|>assistant
cp `which python2.7` myenv/bin/python<|im_end|> | Copy the executable "python2.7" in $PATH to "myenv/bin/python" | cp `which python2.7` myenv/bin/python | 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 /export/home/someone directory in a remote host and upload the files/directories to ftp://somehost/tmp/<|im_... | Find all files/directories under /export/home/someone directory in a remote host and upload the files/directories to ftp://somehost/tmp/ | ssh someone@somehost 'cd /export/home/someone && find . -name "*" -print| ' | 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 a specific text pattern recursively within a directory and its subdirectories.<|im_end|>
<|im_start|>assistant
#!/bin/bash
pattern... | Search for a specific text pattern recursively within a directory and its subdirectories. | #!/bin/bash
pattern="your_pattern"
grep -r "$pattern" /path/to/your/directory | 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 home folder of "$USER_NAME"<|im_end|>
<|im_start|>assistant
finger $USER_NAME | grep Directory | expand | cut -d ' ' -f 2<|im_end|> | Print the home folder of "$USER_NAME" | finger $USER_NAME | grep Directory | expand | cut -d ' ' -f 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
Create a script that monitors system memory usage by user and alerts if any user exceeds a certain threshold.<|im_end|>
<|im_start|>assistant
... | Create a script that monitors system memory usage by user and alerts if any user exceeds a certain threshold. | #!/bin/bash
threshold=50
while true; do
ps -eo user,%mem | awk '{sum[$1]+=$2}; END {for (i in sum) if (sum[i] > "$threshold") print i, sum[i]}'
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 monitor system battery level and send an alert if it drops below a certain threshold.<|im_end|>
<|im_start|>assistant
#!/bi... | Create a script to monitor system battery level and send an alert if it drops below a certain threshold. | #!/bin/bash
threshold=20
battery_level=$(cat /sys/class/power_supply/BAT0/capacity)
if [ "$battery_level" -lt "$threshold" ]; then
echo "System battery level drops below $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
Create a script to find the factorial of a number using recursion.<|im_end|>
<|im_start|>assistant
#!/bin/bash
factorial() {
num="$1"
... | Create a script to find the factorial of a number using recursion. | #!/bin/bash
factorial() {
num="$1"
if [ "$num" -eq 0 ] || [ "$num" -eq 1 ]; then
echo 1
else
echo $((num * $(factorial $((num - 1)))))
fi
}
echo "Factorial of 5 is: $(factorial 5)" | 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 name and size of all the regular/normal files in the current folder which are bigger than 50MB<|im_end|>
<|im_start|>assistant
fi... | display the name and size of all the regular/normal files in the current folder which are bigger than 50MB | find . -type f -size +50000k -exec ls -lh {} \; | awk '{ print $9 ": " $5 }' | 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 on smbfs mounts and print its information and file type<|im_end|>
<|im_start|>assistant
find $(mount -t smbfs | awk '{print $3}... | Find all files on smbfs mounts and print its information and file type | find $(mount -t smbfs | awk '{print $3}') -mount -type f -ls -execdir 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 recursively all files that match "pattern" starting from the directory "dir"<|im_end|>
<|im_start|>assistant
find dir -name "pattern" 2>/... | Find recursively all files that match "pattern" starting from the directory "dir" | find dir -name "pattern" 2>/dev/null | 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 all cron jobs running "anm.sh" to be run every 10 minutes instead of 5 minutes.<|im_end|>
<|im_start|>assistant
crontab -l | sed '/anm\... | Change all cron jobs running "anm.sh" to be run every 10 minutes instead of 5 minutes. | crontab -l | sed '/anm\.sh/s#\/5#\/10#' | crontab - | 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 and below dir/ and change their names from UTF8 to the ASCII/TRANSLIT encoding<|im_end|>
<|im_start|>assistant
fi... | Find all regular files under and below dir/ and change their names from UTF8 to the ASCII/TRANSLIT encoding | find dir/ -type f -exec mv {} $ \; | 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 newline with "_" in "file" then search for "_foo_" and output with "_" characters deleted<|im_end|>
<|im_start|>assistant
grep -o "_fo... | Replace newline with "_" in "file" then search for "_foo_" and output with "_" characters deleted | grep -o "_foo_" < | tr -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
check if named screen session exists<|im_end|>
<|im_start|>assistant
screen -list | grep -q "myscreen"<|im_end|> | check if named screen session exists | screen -list | grep -q "myscreen" | 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 a file in the current folder and prepend the first line<|im_end|>
<|im_start|>assistant
find ./ -name somename.txt -exec sed -e '1i... | search for a file in the current folder and prepend the first line | find ./ -name somename.txt -exec sed -e '1i My new text here` {} \; | 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 "$ip" as input to "pax -r"<|im_end|>
<|im_start|>assistant
gunzip -c -d $ip | pax -r<|im_end|> | Unzip "$ip" as input to "pax -r" | gunzip -c -d $ip | pax -r | 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 the number of regular files with case insensitive name pattern $srchfor under 'teste2' directory tree<|im_end|>
<|im_start|>assistant
fi... | Count the number of regular files with case insensitive name pattern $srchfor under 'teste2' directory tree | find teste2 -type f -iname "$srchfor"|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
Returns 0 exit status despite of 'somecommand' execution result.<|im_end|>
<|im_start|>assistant
somecommand | true<|im_end|> | Returns 0 exit status despite of 'somecommand' execution result. | somecommand | true | 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 the file system and search only in the disk partition of the root.<|im_end|>
<|im_start|>assistant
find / -xdev -na... | find all the text files in the file system and search only in the disk partition of the root. | find / -xdev -name "*.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 files along with their group name in the folder /home which do not belong to the group test<|im_end|>
<|im_start|>assistant
fi... | display all the files along with their group name in the folder /home which do not belong to the group test | find /home ! -group test -printf "%p:%g\n" | AnishJoshi/nl2bash-custom |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.