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 display all the pdf files in a folder which start with a specific word along with their timestamp in sorted order of time and save output to a...
display all the pdf files in a folder which start with a specific word along with their timestamp in sorted order of time and save output to a in remote server
find "/path/to/pdfs/" -type f -name "$1*.pdf" -printf "%TY/%Tm/%Td %TH:%TM %p\n" | sort -n -k1.1,1.2 -k1.3,1.4 -k1.6,1.7 -k1.9,1.10 -k2.1,2.2 -k2.4,2.5 -k3 > remoteuser@remoteserver:/u/tmp/CustTmp/zzz_pdfs.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 print the Fibonacci series up to a given number.<|im_end|> <|im_start|>assistant #!/bin/bash n=10 a=0 b=1 echo "Fibonacci ...
Create a script to print the Fibonacci series up to a given number.
#!/bin/bash n=10 a=0 b=1 echo "Fibonacci Series up to $n terms:" for ((i=0; i<n; i++)); do echo -n "$a " fn=$((a + b)) a="$b" b="$fn" 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 Save the UTC date represented by time string $sting2 as the seconds since epoch to variable 'FinalDate'<|im_end|> <|im_start|>assistant FinalD...
Save the UTC date represented by time string $sting2 as the seconds since epoch to variable 'FinalDate'
FinalDate=$
AnishJoshi/nl2bash-custom
<|im_start|>system 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 file system mounts and alerts if any file system becomes read-only.<|im_end|> <|im_start|>assistant #!/bi...
Create a script that monitors system file system mounts and alerts if any file system becomes read-only.
#!/bin/bash while true; do mount | grep -w 'ro' 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 Create a script to parse Apache access logs and generate a report on the most requested URLs.<|im_end|> <|im_start|>assistant #!/bin/bash awk...
Create a script to parse Apache access logs and generate a report on the most requested URLs.
#!/bin/bash awk '{print $7}' /var/log/apache/access.log | sort | uniq -c | sort -nr | head -n 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 Copy all *.data files under jcho directory to files whose names are constructed by appending the parent directory names at the beginning of th...
Copy all *.data files under jcho directory to files whose names are constructed by appending the parent directory names at the beginning of their names
find jcho -name '*.data' | while read -r f; do cp "$f" "$(echo "$f" | sed 's~\]*\)/\([^]*\)$~\1_\2~')"; 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 Check if a specific directory exists and has sticky bit set recursively.<|im_end|> <|im_start|>assistant #!/bin/bash directory="/path/to/dire...
Check if a specific directory exists and has sticky bit set recursively.
#!/bin/bash directory="/path/to/directory" if [ -d "$directory" ] && [ $(find "$directory" ! -perm -1000) ]; then echo "Directory exists and has sticky bit set" else echo "Directory either does not exist or does not have sticky bit set" 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 c, cpp files in current folder<|im_end|> <|im_start|>assistant find -name "*.cpp" -o -name "*.c"<|im_end|>
find all c, cpp files in current folder
find -name "*.cpp" -o -name "*.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 Generate UUIDs for the files from the current directory tree<|im_end|> <|im_start|>assistant find -printf "%P\0" -exec uuid -v 4 \; | sort | a...
Generate UUIDs for the files from the current directory tree
find -printf "%P\0" -exec uuid -v 4 \; | sort | awk -F'\0' '{ print $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 List all leaf directories under current directory<|im_end|> <|im_start|>assistant saveIFS=$IFS; IFS=$'\n'; for dir in $; do [[ ! $prev =~ $di...
List all leaf directories under current directory
saveIFS=$IFS; IFS=$'\n'; for dir in $; do [[ ! $prev =~ $dir ]] && echo "${dir}" ; prev="$dir"; done; IFS=$saveIFS
AnishJoshi/nl2bash-custom
<|im_start|>system 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 file systems disk usage for file systems of type <type>.<|im_end|> <|im_start|>assistant df -kt<type><|im_end|>
Report file systems disk usage for file systems of type <type>.
df -kt<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 Print crontabs of all users in system, skipping messages that some users don`t have crontab.<|im_end|> <|im_start|>assistant cat /etc/passwd |...
Print crontabs of all users in system, skipping messages that some users don`t have crontab.
cat /etc/passwd | sed 's/^\([^:]*\):.*$/crontab -u \1 -l 2>\&1/' | sh | grep -v "no crontab for"
AnishJoshi/nl2bash-custom
<|im_start|>system 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 aux | grep php" every second<|im_end|> <|im_start|>assistant watch -n 1 'ps aux | grep php'<|im_end|>
Execute "ps aux | grep php" every second
watch -n 1 'ps aux | grep php'
AnishJoshi/nl2bash-custom
<|im_start|>system 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 'make' with parameter K_VERSION set to current kernel release.<|im_end|> <|im_start|>assistant make K_VERSION=`uname -r`<|im_end|>
Run 'make' with parameter K_VERSION set to current kernel release.
make K_VERSION=`uname -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 Create a script that monitors system process privilege escalation attempts and logs any unauthorized actions.<|im_end|> <|im_start|>assistant ...
Create a script that monitors system process privilege escalation attempts and logs any unauthorized actions.
#!/bin/bash while true; do grep -i 'su' /var/log/auth.log | grep -i 'root' && echo "Unauthorized privilege escalation attempt detected" sleep 300 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 set alias "my_command" for command "$oldalias -option 3"<|im_end|> <|im_start|>assistant alias my_command="$oldalias -option 3"<|im_end|>
set alias "my_command" for command "$oldalias -option 3"
alias my_command="$oldalias -option 3"
AnishJoshi/nl2bash-custom
<|im_start|>system You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|> <|im_start|>user Run an awk program on every TXT file found in the current directory tree<|im_end|> <|im_start|>assistant find . -name "*.txt" -print -exec awk...
Run an awk program on every TXT file found in the current directory tree
find . -name "*.txt" -print -exec awk '$9 != "" {print; if exit; }' {} \;
AnishJoshi/nl2bash-custom
<|im_start|>system 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 a path name of a process id<|im_end|> <|im_start|>assistant ps -p 24297 -o comm --no-heading<|im_end|>
Get a path name of a process id
ps -p 24297 -o comm --no-heading
AnishJoshi/nl2bash-custom
<|im_start|>system 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 process resource usage spikes and logs any sudden resource consumption.<|im_end|> <|im_start|>assistant #...
Create a script that monitors system process resource usage spikes and logs any sudden resource consumption.
#!/bin/bash while true; do auditctl -a exit,always -F arch=b64 -S setrlimit -k resource_usage_spike ausearch -k resource_usage_spike | grep -i 'permission denied' && echo "Resource usage spike detected" sleep 300 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/directories with 'my key phrase' in their names under current directory, search for 'my key phrase' in all files under current ...
Find all files/directories with 'my key phrase' in their names under current directory, search for 'my key phrase' in all files under current directory and print a sorted and unique list of output
{ find . -name '*my key phrase*'; grep -rl 'my key phrase' *; } | sed "s/^\.\///" | 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 Create a file with a specific size.<|im_end|> <|im_start|>assistant #!/bin/bash file_path="/path/to/your/new_file.txt" size_in_bytes=1024 de...
Create a file with a specific size.
#!/bin/bash file_path="/path/to/your/new_file.txt" size_in_bytes=1024 default_value="x" dd if=/dev/zero of="$file_path" bs=1 count=$size_in_bytes
AnishJoshi/nl2bash-custom
<|im_start|>system 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 directory hierarchy from "$sourceDir" to "$targetDir"<|im_end|> <|im_start|>assistant find "$sourceDir" -type d | sed -e "s?$sourceDir?$t...
Copy directory hierarchy from "$sourceDir" to "$targetDir"
find "$sourceDir" -type d | sed -e "s?$sourceDir?$targetDir?" | xargs mkdir -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 Split "filename" into files of at most 200000 lines each<|im_end|> <|im_start|>assistant split -l 200000 filename<|im_end|>
Split "filename" into files of at most 200000 lines each
split -l 200000 filename
AnishJoshi/nl2bash-custom
<|im_start|>system 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 BIOS logs for firmware updates and alerts if any are available.<|im_end|> <|im_start|>assistant #!/bin/ba...
Create a script that monitors system BIOS logs for firmware updates and alerts if any are available.
#!/bin/bash while true; do cat /var/log/bios.log | grep -i 'update' && echo "Firmware update available" sleep 300 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 set alias "prettify_json" for command "php -E '$o = json_decode; print json_encode;'"<|im_end|> <|im_start|>assistant alias prettify_json=php ...
set alias "prettify_json" for command "php -E '$o = json_decode; print json_encode;'"
alias prettify_json=php -E '$o = json_decode; print json_encode;'
AnishJoshi/nl2bash-custom
<|im_start|>system 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 has a valid login shell.<|im_end|> <|im_start|>assistant #!/bin/bash username="username" if id -u $usern...
Check if a specific user exists and has a valid login shell.
#!/bin/bash username="username" if id -u $username >/dev/null 2>&1 && grep -qs $username /etc/passwd; then echo "$username exists with a valid login shell" else echo "$username does not exist or does not have a valid login shell" 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 Search for ERROR in all btree*.c files under current directory<|im_end|> <|im_start|>assistant grep ERROR $<|im_end|>
Search for ERROR in all btree*.c files under current directory
grep ERROR $
AnishJoshi/nl2bash-custom
<|im_start|>system You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|> <|im_start|>user Finds all user session in system, and shows sorted user names with number of sessions of each user.<|im_end|> <|im_start|>assistant w | sed '1...
Finds all user session in system, and shows sorted user names with number of sessions of each user.
w | sed '1,2d' | cut -f1 -d' ' | sort | uniq -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 Copy %PATH% variable on Windows to clipboard<|im_end|> <|im_start|>assistant set %PATH% | clip<|im_end|>
Copy %PATH% variable on Windows to clipboard
set %PATH% | clip
AnishJoshi/nl2bash-custom
<|im_start|>system 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 "-" from the contents of "/proc/sys/kernel/random/uuid" and save output to variable "comment"<|im_end|> <|im_start|>assistant comment=$...
Remove "-" from the contents of "/proc/sys/kernel/random/uuid" and save output to variable "comment"
comment=$(cat /proc/sys/kernel/random/uuid | sed '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 display all the files in the current folder along with the hidden files with the depth<|im_end|> <|im_start|>assistant find . — name "*" — pri...
display all the files in the current folder along with the hidden files with the depth
find . — name "*" — print -о -name ".*" — print -depth
AnishJoshi/nl2bash-custom
<|im_start|>system You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|> <|im_start|>user recursively finds all files newer than a date<|im_end|> <|im_start|>assistant find . -type f -newermt "$"<|im_end|>
recursively finds all files newer than a date
find . -type f -newermt "$"
AnishJoshi/nl2bash-custom
<|im_start|>system 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 standard input to variable 'stdin' until the first character encoded as '\004' is read<|im_end|> <|im_start|>assistant read -d "$" stdin<...
Save standard input to variable 'stdin' until the first character encoded as '\004' is read
read -d "$" stdin
AnishJoshi/nl2bash-custom
<|im_start|>system 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 en0 network interface.<|im_end|> <|im_start|>assistant ifconfig en0 | grep -Eo ..\{5}<|im_end|>
Gets MAC address of en0 network interface.
ifconfig en0 | grep -Eo ..\{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 Print the text file paths that match 'needle text' in their contents under 'my_folder' recursively<|im_end|> <|im_start|>assistant grep -rl "n...
Print the text file paths that match 'needle text' in their contents under 'my_folder' recursively
grep -rl "needle text" my_folder | tr '\n' '\0' | xargs -r -0 file | grep -e ':[^:]*text[^:]*$' | grep -v -e 'executable'
AnishJoshi/nl2bash-custom
<|im_start|>system 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 sum of digits of a number.<|im_end|> <|im_start|>assistant #!/bin/bash num=12345 sum=0 while [ $num -gt 0 ]; do digit=$((...
Calculate the sum of digits of a number.
#!/bin/bash num=12345 sum=0 while [ $num -gt 0 ]; do digit=$(( $num % 10 )) sum=$(( $sum + $digit )) num=$(( $num / 10 )) done echo "Sum of digits: $sum"
AnishJoshi/nl2bash-custom
<|im_start|>system You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|> <|im_start|>user Rename all files in the current directory to the md5 sum followed by the extension and print the conversions<|im_end|> <|im_start|>assistant m...
Rename all files in the current directory to the md5 sum followed by the extension and print the conversions
md5sum * | sed -e 's/\ \(.*\\)$/mv -v \2 \1\3/e'
AnishJoshi/nl2bash-custom
<|im_start|>system 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 a date time stamp to every line of output in "ping host"<|im_end|> <|im_start|>assistant ping host | perl -nle 'print scalar, " ", $_'<|im...
Add a date time stamp to every line of output in "ping host"
ping host | perl -nle 'print scalar, " ", $_'
AnishJoshi/nl2bash-custom
<|im_start|>system 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 kernel module loading and unloading events and logs any unauthorized actions.<|im_end|> <|im_start|>assis...
Create a script that monitors system kernel module loading and unloading events and logs any unauthorized actions.
#!/bin/bash while true; do dmesg | grep -i 'loading' | grep -i 'module' && echo "Kernel module loaded" dmesg | grep -i 'unloading' | grep -i 'module' && echo "Kernel module unloaded" sleep 300 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 root user SSH key usage and send an alert if any weak or outdated keys are found.<|im_end|> <|im_start|>assi...
Create a script to monitor system root user SSH key usage and send an alert if any weak or outdated keys are found.
#!/bin/bash weak_keys="$(grep -rl 'ssh-rsa' /root/.ssh/* | xargs grep -l 'ssh-dss' | xargs grep -l '1024' | xargs grep -l '2048')" if [ -n "$weak_keys" ]; then echo "Weak or outdated SSH keys found for root user: $weak_keys" | mail -s "Root SSH Key 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 Filter /path/to/logfile for any lines containing the specified date, paging interactively through the output.<|im_end|> <|im_start|>assistant ...
Filter /path/to/logfile for any lines containing the specified date, paging interactively through the output.
grep 'Nov 12 2012' /path/to/logfile | less
AnishJoshi/nl2bash-custom
<|im_start|>system You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|> <|im_start|>user Find all *.jpg files under maximum 2 levels down the temp/medium/* paths and run `mogrify -resize 428x270">" -quality 80 -compress JPEG -moni...
Find all *.jpg files under maximum 2 levels down the temp/medium/* paths and run `mogrify -resize 428x270">" -quality 80 -compress JPEG -monitor -strip` with the file paths as arguments
find temp/medium/* -maxdepth 2 -iname "*.jpg" -print0 | xargs -0 mogrify -resize 428x270">" -quality 80 -compress JPEG -monitor -strip
AnishJoshi/nl2bash-custom
<|im_start|>system 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 a nginx link to "/path/to/file" with the current user and system FQDN host name in variable "path"<|im_end|> <|im_start|>assistant path="...
Save a nginx link to "/path/to/file" with the current user and system FQDN host name in variable "path"
path="http://$.$/path/to/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 system process memory consumption and send an alert if any process exceeds a certain threshold.<|im_end|> <|im_star...
Create a script to monitor system process memory consumption and send an alert if any process exceeds a certain threshold.
#!/bin/bash threshold="5000" processes="$(ps -eo pid,%mem,command | grep -vE 'PID|%MEM' | sort -nr -k2 | head -n 5)" while read -r line; do pid=$(echo "$line" | awk '{print $1}') mem=$(echo "$line" | awk '{print $2}') if [ "$mem" -gt "$threshold" ]; then echo "Process $pid is consuming high memo...
AnishJoshi/nl2bash-custom
<|im_start|>system 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 swap usage and send an alert if it exceeds a certain threshold.<|im_end|> <|im_start|>assistant #!/bin/bash ...
Create a script to monitor system swap usage and send an alert if it exceeds a certain threshold.
#!/bin/bash threshold=50 swap_usage=$(free | grep Swap | awk '{print $3/$2 * 100.0}') if [ "$swap_usage" -gt "$threshold" ]; then echo "System swap usage exceeds $threshold%." # Send alert here fi
AnishJoshi/nl2bash-custom
<|im_start|>system You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|> <|im_start|>user Create a script that monitors system SSH brute force attacks and alerts if any are detected.<|im_end|> <|im_start|>assistant #!/bin/bash whil...
Create a script that monitors system SSH brute force attacks and alerts if any are detected.
#!/bin/bash while true; do grep 'Failed password' /var/log/auth.log | grep -v 'invalid user' | awk '{print $11}' | sort | uniq -c | sort -nr | awk '$1 > 10 {print $2, $1}' 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 Set variable value to current kernel release name.<|im_end|> <|im_start|>assistant value=$<|im_end|>
Set variable value to current kernel release name.
value=$
AnishJoshi/nl2bash-custom
<|im_start|>system 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 files from the current directory tree to the ASCII standard<|im_end|> <|im_start|>assistant find . -type f -exec bash -c 'for f do d=${...
Rename files from the current directory tree to the ASCII standard
find . -type f -exec bash -c 'for f do d=${f%/*} b=${f##*/} nb=${b//[^A-Za-z0-9._-]/_}; [[ $b = "$nb" ]] || echo mv "$f" "$d/$nb"; 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 Check if a specific user exists and delete it if it does.<|im_end|> <|im_start|>assistant #!/bin/bash username="username" if id -u $username...
Check if a specific user exists and delete it if it does.
#!/bin/bash username="username" if id -u $username >/dev/null 2>&1; then userdel -r $username 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 Search for 'string-to-find' in all HTML files under current directory tree and show the matched lines with their filenames<|im_end|> <|im_star...
Search for 'string-to-find' in all HTML files under current directory tree and show the matched lines with their filenames
find . -name \*.html -exec grep -H string-to-find {} \;
AnishJoshi/nl2bash-custom
<|im_start|>system You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|> <|im_start|>user Create a script to find the oldest file in a directory.<|im_end|> <|im_start|>assistant #!/bin/bash find . -type f -printf '%T+ %p ' | sort |...
Create a script to find the oldest file in a directory.
#!/bin/bash find . -type f -printf '%T+ %p ' | sort | head -n 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 position number of day '9' in fourth line of calendar output for September, 2009.<|im_end|> <|im_start|>assistant cal 09 2009 | awk '{da...
Print position number of day '9' in fourth line of calendar output for September, 2009.
cal 09 2009 | awk '{day="9"; if (NR==4) {col=index($0,day); print col } }'
AnishJoshi/nl2bash-custom
<|im_start|>system 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 "<file>"<|im_end|> <|im_start|>assistant cd `which <file> | xargs dirname`<|im_end|>
Change to the directory of the executable "<file>"
cd `which <file> | xargs 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 Print 10 space padded "x"s to a width of 10 with at most 4 per line<|im_end|> <|im_start|>assistant printf '%-10s%-10s%-10s%s\n' $<|im_end|>
Print 10 space padded "x"s to a width of 10 with at most 4 per line
printf '%-10s%-10s%-10s%s\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 Mark variables and function which are modified or created for export to the environment of subsequent commands<|im_end|> <|im_start|>assistant...
Mark variables and function which are modified or created for export to the environment of subsequent commands
set -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 Find all files/directories in current directory and run the command 'command' on each of them invoking the command as few times as possible<|i...
Find all files/directories in current directory and run the command 'command' on each of them invoking the command as few times as possible
find -exec command {} +
AnishJoshi/nl2bash-custom
<|im_start|>system 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 "/wherever/whatever" in the background on target machine "user@host"<|im_end|> <|im_start|>assistant ssh -n -f user@host "sh -c 'cd /w...
Execute "/wherever/whatever" in the background on target machine "user@host"
ssh -n -f user@host "sh -c 'cd /whereever; nohup ./whatever > /dev/null 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 converts all absolute symbolic links to relative symbolic links<|im_end|> <|im_start|>assistant find . -lname "`pwd`*" -exec sh -c 'ln -snvf `...
converts all absolute symbolic links to relative symbolic links
find . -lname "`pwd`*" -exec sh -c 'ln -snvf `python -c "from os.path import *; print relpath(\"$\",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 Send content to screen session windows with a certain title<|im_end|> <|im_start|>assistant screen -S SessionName -X at ".#" stuff "date "<|im...
Send content to screen session windows with a certain title
screen -S SessionName -X at ".#" stuff "date "
AnishJoshi/nl2bash-custom
<|im_start|>system 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 disk usage and send an alert if any partition exceeds a certain threshold.<|im_end|> <|im_start|>assistant #...
Create a script to monitor system disk usage and send an alert if any partition exceeds a certain threshold.
#!/bin/bash threshold="80" partitions=$(df -h | awk '{print $5}' | sed 's/%//') for partition in $partitions; do if [ "$partition" -gt "$threshold" ]; then echo "Partition usage is high: $partition%" | mail -s "Disk Usage 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 Write "some output" to standard output and to "/some/path/some_file" as user "some_user"<|im_end|> <|im_start|>assistant echo "some output" | ...
Write "some output" to standard output and to "/some/path/some_file" as user "some_user"
echo "some output" | sudo -u some_user tee /some/path/some_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 system network connections and detect SYN flood attacks.<|im_end|> <|im_start|>assistant #!/bin/bash netstat -n | ...
Create a script to monitor system network connections and detect SYN flood attacks.
#!/bin/bash netstat -n | grep SYN_RECV | 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 display all the directories in the folder /path/to/dest except tmp directory<|im_end|> <|im_start|>assistant find /path/to/dest -type d \ -pri...
display all the directories in the folder /path/to/dest except tmp directory
find /path/to/dest -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 find the largest prime factor of a given number.<|im_end|> <|im_start|>assistant #!/bin/bash largest_prime_factor() { ...
Create a script to find the largest prime factor of a given number.
#!/bin/bash largest_prime_factor() { num="$1" largest=2 while [ "$num" -gt 1 ]; do while [ $(($num % $largest)) -eq 0 ]; do num=$(($num / $largest)) done largest=$(($largest + 1)) done echo "$(( $largest - 1 ))" } largest_prime_factor 13195
AnishJoshi/nl2bash-custom
<|im_start|>system You 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 'my key phrase' directory and redirect the output to mylist.txt<|im_end|> <|im_start|>assistant find 'my key ...
Find all files/directories under 'my key phrase' directory and redirect the output to mylist.txt
find 'my key phrase' > mylist.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 Force remove all files and folders in the physical current working directory<|im_end|> <|im_start|>assistant rm -rf "$"/*<|im_end|>
Force remove all files and folders in the physical current working directory
rm -rf "$"/*
AnishJoshi/nl2bash-custom
<|im_start|>system 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 *RBENV* variable is defined in tmux session 'sessname' environment.<|im_end|> <|im_start|>assistant tmux show-environment -t sessname...
Check if *RBENV* variable is defined in tmux session 'sessname' environment.
tmux show-environment -t sessname | grep RBENV
AnishJoshi/nl2bash-custom
<|im_start|>system 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 is numeric.<|im_end|> <|im_start|>assistant #!/bin/bash string="12345" if [[ "$string" =~ ^[0-9]+$ ]]; then echo "$str...
Check if a string is numeric.
#!/bin/bash string="12345" if [[ "$string" =~ ^[0-9]+$ ]]; then echo "$string is numeric" else echo "$string is not numeric" 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 Compress "mysqldbbackup.sql" with gzip and email it with subject "MySQL DB" to "backup@email.com"<|im_end|> <|im_start|>assistant gzip -c mysq...
Compress "mysqldbbackup.sql" with gzip and email it with subject "MySQL DB" to "backup@email.com"
gzip -c mysqldbbackup.sql | uuencode mysqldbbackup.sql.gz | mail -s "MySQL DB" backup@email.com
AnishJoshi/nl2bash-custom
<|im_start|>system You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|> <|im_start|>user Creates temporary directory in '/tmp/' folder and saves path to it in 'my_tmp_dir' variable.<|im_end|> <|im_start|>assistant my_tmp_dir=$<|im_...
Creates temporary directory in '/tmp/' folder and saves path to it in 'my_tmp_dir' variable.
my_tmp_dir=$
AnishJoshi/nl2bash-custom
<|im_start|>system You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|> <|im_start|>user search for a pattern in all the python files in the current folder. and save the output to a txt file<|im_end|> <|im_start|>assistant find . -...
search for a pattern in all the python files in the current folder. and save the output to a txt file
find . -name "*.py" -type f -exec sh -c 'grep "something" <"$0" >"$0.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 set a crontab to create or update the timestamp of "washere2" in the current directory every 30 minutes.<|im_end|> <|im_start|>assistant echo ...
set a crontab to create or update the timestamp of "washere2" in the current directory every 30 minutes.
echo "30 * * * * touch $/washere2" | 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 Search the entire file hierarchy for all regular files owned by olduser and change their ownership to newuser.<|im_end|> <|im_start|>assistant...
Search the entire file hierarchy for all regular files owned by olduser and change their ownership to newuser.
find / -user olduser -type f -exec chown newuser {} \
AnishJoshi/nl2bash-custom
<|im_start|>system 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 amount of space available on the file system containing path to the current working directory in megabytes.<|im_end|> <|im_start|>assist...
Print amount of space available on the file system containing path to the current working directory in megabytes.
df . -B MB | tail -1 | awk {'print $4'} | grep .[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 Set variable "MAVEN_DEBUG_OPTS" to "-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000" on W...
Set variable "MAVEN_DEBUG_OPTS" to "-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000" on Windows machines
set MAVEN_DEBUG_OPTS=-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000
AnishJoshi/nl2bash-custom
<|im_start|>system 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 strings with pattern from file 'filename'.<|im_end|> <|im_start|>assistant grep -v "pattern" filename > filename2; mv filename2 filena...
Removes strings with pattern from file 'filename'.
grep -v "pattern" filename > filename2; mv filename2 filename
AnishJoshi/nl2bash-custom
<|im_start|>system You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|> <|im_start|>user find all "tar.gz" files in a folder and sort them according to the name and display the first 2 files<|im_end|> <|im_start|>assistant (find $D...
find all "tar.gz" files in a folder and sort them according to the name and display the first 2 files
(find $DIR/tmp/daily/ -name *.tar.gz | sort -n | head -2
AnishJoshi/nl2bash-custom
<|im_start|>system You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|> <|im_start|>user Print the last mounted drive<|im_end|> <|im_start|>assistant mount | tail -1 | sed 's/ on .* ]*)$//'<|im_end|>
Print the last mounted drive
mount | tail -1 | sed 's/ on .* ]*)$//'
AnishJoshi/nl2bash-custom
<|im_start|>system You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|> <|im_start|>user display a long listing of all the files in the current folder which have been modified in the last 24 hours<|im_end|> <|im_start|>assistant fi...
display a long listing of all the files in the current folder which have been modified in the last 24 hours
find . -mtime -1 -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 Unset IFS and read standard input into variable "file" until a null character is found without allowing backslashes to escape characters<|im_e...
Unset IFS and read standard input into variable "file" until a null character is found without allowing backslashes to escape characters
IFS= read -d $'\0' -r 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 files with 002 permission under /tmp and print them with the string 'Found world write permissions:' printed as the first line of output ...
Find files with 002 permission under /tmp and print them with the string 'Found world write permissions:' printed as the first line of output or print 'No world writable found' if no such files were found
find /tmp -type f -perm -002 | awk -- '1{print "Found world write permissions:";print};END{ifprint "No world writable found."}'
AnishJoshi/nl2bash-custom
<|im_start|>system You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|> <|im_start|>user Pass "y" to all the prompts for the command "execute_command"<|im_end|> <|im_start|>assistant yes | execute_command<|im_end|>
Pass "y" to all the prompts for the command "execute_command"
yes | execute_command
AnishJoshi/nl2bash-custom
<|im_start|>system 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 log file changes and generate reports on log file updates/errors.<|im_end|> <|im_start|>assistant #!/bin/bas...
Create a script to monitor system log file changes and generate reports on log file updates/errors.
#!/bin/bash touch /tmp/log_file_changes_report.txt while true; do inotifywait -r -m /var/log -e modify,delete,create,attrib >> /tmp/log_file_changes_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 Print git branch currently checked out in a working directory.<|im_end|> <|im_start|>assistant git branch --no-color | grep -E '^\*' | cut -...
Print git branch currently checked out in a working directory.
git branch --no-color | grep -E '^\*' | 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 Output line number and lines 200000000 through 200000005 from the infinite input of "y"<|im_end|> <|im_start|>assistant yes | sed -n '20000000...
Output line number and lines 200000000 through 200000005 from the infinite input of "y"
yes | sed -n '200000000,${=;p};200000005q'
AnishJoshi/nl2bash-custom
<|im_start|>system 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 time drift and send an alert if time drift exceeds a certain threshold.<|im_end|> <|im_start|>assistant #!/b...
Create a script to monitor system time drift and send an alert if time drift exceeds a certain threshold.
#!/bin/bash threshold="5" time_drift=$(ntpdate -q time.nist.gov | grep -o 'offset.*' | awk '{print $2}') time_drift_abs=$(echo "${time_drift#-}" | bc) if [ "$time_drift_abs" -gt "$threshold" ]; then echo "System time drift is high: $time_drift seconds" | mail -s "Time Drift 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 List all files under current directory matching the regex '.*$'<|im_end|> <|im_start|>assistant find -E . -type f -regex '.*$' -exec ls {} \;<...
List all files under current directory matching the regex '.*$'
find -E . -type f -regex '.*$' -exec 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 find all text files in current folder and trim the extra spaces in all lines in these files and save it to the original file<|im_end|> <|im_st...
find all text files in current folder and trim the extra spaces in all lines in these files and save it to the original file
find . -type f -name "*.txt" -exec sh -c 'for i;do sed 's/[[:space:]]*$//' "$i">/tmp/.$$ && mv /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 Creates file with random 10-byte size content.<|im_end|> <|im_start|>assistant shred -s 10 - > my-file<|im_end|>
Creates file with random 10-byte size content.
shred -s 10 - > my-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 set alias "your_env" for command 'source ~/scripts/your_env.sh'<|im_end|> <|im_start|>assistant alias your_env='source ~/scripts/your_env.sh'<...
set alias "your_env" for command 'source ~/scripts/your_env.sh'
alias your_env='source ~/scripts/your_env.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 Search for 'It took' in all $srch1* (case insensitive) files under current directory and run the sed script 'N;s/(.*)\n(.*)/\2 \1/' on the out...
Search for 'It took' in all $srch1* (case insensitive) files under current directory and run the sed script 'N;s/(.*)\n(.*)/\2 \1/' on the output
find . -iname "$srch1*" -exec grep "It took" {} \; -print |sed -r 'N;s/(.*)\n(.*)/\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 find all the files in the current folder and create a backup of it in floppy<|im_end|> <|im_start|>assistant find . -depth -print | cpio -ov >...
find all the files in the current folder and create a backup of it in floppy
find . -depth -print | cpio -ov > /dev/fd0
AnishJoshi/nl2bash-custom
<|im_start|>system 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 connections and logs the IP addresses of established connections.<|im_end|> <|im_start|>assistant...
Create a script that monitors system network connections and logs the IP addresses of established connections.
#!/bin/bash while true; do netstat -ant | grep 'ESTABLISHED' | awk '{print $5}' 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 files in the current directory recursively with "linkin park" in their names and copy them to /Users/tommye/Desktop/LP<|im_end|> <|im...
Find all files in the current directory recursively with "linkin park" in their names and copy them to /Users/tommye/Desktop/LP
find . -type f -iname "*linkin park*" -exec cp -r {} /Users/tommye/Desktop/LP \;
AnishJoshi/nl2bash-custom
<|im_start|>system 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, group, and permissions recursively.<|im_end|> <|im_start|>assistant #!/bin/bas...
Check if a specific directory exists and has the correct owner, group, and permissions recursively.
#!/bin/bash directory="/path/to/directory" owner="owner" group="group" permissions="755" if [ -d "$directory" ] && [ $(find "$directory" ! -user "$owner" -o ! -group "$group" -o ! -perm $permissions) ]; then echo "Directory exists with correct owner, group, and permissions" else echo "Directory does not exist...
AnishJoshi/nl2bash-custom
<|im_start|>system You 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 named 'photoA.jpg' under current directory tree<|im_end|> <|im_start|>assistant find . -name photoA.jpg<|im_end|>
Find all files/directories named 'photoA.jpg' under current directory tree
find . -name photoA.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 Convert all DOS files under and below the current directory to the Unix format<|im_end|> <|im_start|>assistant find . -type f -exec dos2unix {...
Convert all DOS files under and below the current directory to the Unix format
find . -type f -exec dos2unix {} {} \;
AnishJoshi/nl2bash-custom
<|im_start|>system 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 in human-readable format sorted by modification time.<|im_end|> <|im_start|>assistant ...
Print the list of files in a directory with their sizes in human-readable format sorted by modification time.
#!/bin/bash ls -lt --human-readable /path/to/your/directory | awk '{print $5, $6, $7, $8, $9}'
AnishJoshi/nl2bash-custom
<|im_start|>system You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|> <|im_start|>user Saves 'ls' output to 'ls_results' file and time report to 'time_results' file.<|im_end|> <|im_start|>assistant > ls_results 2> time_results<|i...
Saves 'ls' output to 'ls_results' file and time report to 'time_results' file.
> ls_results 2> time_results
AnishJoshi/nl2bash-custom
<|im_start|>system You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|> <|im_start|>user Dump all MySQL databases over an ssh tunnel to "user@yoursever.com" and use it as input to mysql<|im_end|> <|im_start|>assistant mysqldump --a...
Dump all MySQL databases over an ssh tunnel to "user@yoursever.com" and use it as input to mysql
mysqldump --all-databases | ssh user@yourserver.com mysql
AnishJoshi/nl2bash-custom