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
Execute the SSH command and kill it after 5 seconds<|im_end|>
<|im_start|>assistant
timeout 5 ssh user@ip<|im_end|> | Execute the SSH command and kill it after 5 seconds | timeout 5 ssh user@ip | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Check if a specific file or directory exists and delete it if it does.<|im_end|>
<|im_start|>assistant
#!/bin/bash
file_or_directory="/path/t... | Check if a specific file or directory exists and delete it if it does. | #!/bin/bash
file_or_directory="/path/to/file_or_directory"
if [ -e "$file_or_directory" ]; then
rm -rf "$file_or_directory"
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
Count number of A records of domain '$domain' on nameserver '$server' and save value in 'result' variable<|im_end|>
<|im_start|>assistant
resu... | Count number of A records of domain '$domain' on nameserver '$server' and save value in 'result' variable | 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
List all *.txt files in <path> with details about their attributes<|im_end|>
<|im_start|>assistant
find <path> -xdev -type f -name *.txt -exec... | List all *.txt files in <path> with details about their attributes | find <path> -xdev -type f -name *.txt -exec ls -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
Check if a number is even.<|im_end|>
<|im_start|>assistant
#!/bin/bash
is_even() {
if (( $1 % 2 == 0 )); then
echo "Even"
els... | Check if a number is even. | #!/bin/bash
is_even() {
if (( $1 % 2 == 0 )); then
echo "Even"
else
echo "Odd"
fi
}
is_even 4 | AnishJoshi/nl2bash-custom |
<|im_start|>system
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 "elinks -dump file.html" every 2 seconds<|im_end|>
<|im_start|>assistant
watch elinks -dump file.html<|im_end|> | Execute "elinks -dump file.html" every 2 seconds | watch elinks -dump file.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
create a compressed archive of a target directory excluding '<dir1>' and '<dir2>'<|im_end|>
<|im_start|>assistant
tar cfvz --exclude='<dir1>' ... | create a compressed archive of a target directory excluding '<dir1>' and '<dir2>' | tar cfvz --exclude='<dir1>' --exclude='<dir2>' target.tgz target_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
convert all the regular/normal files in the current folder from dos to unix format<|im_end|>
<|im_start|>assistant
find . -name "*" -type f -e... | convert all the regular/normal files in the current folder from dos to unix format | find . -name "*" -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
Find List directory with sub-folder count .<|im_end|>
<|im_start|>assistant
find -maxdepth 1 -type d | sort | while read -r dir; do n=$; let ... | Find List directory with sub-folder count . | find -maxdepth 1 -type d | sort | while read -r dir; do n=$; let n--; printf "%4d : %s\n" $n "$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 cumulative CPU usage over 5 seconds.<|im_end|>
<|im_start|>assistant
top -b -d 5 -n 2 | awk '$1 == "PID" {block_num++; next} block_num... | Display cumulative CPU usage over 5 seconds. | top -b -d 5 -n 2 | awk '$1 == "PID" {block_num++; next} block_num == 2 {sum += $9;} END {print sum}' | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
find all the files ending with ".sh" in the folder /dir excluding those wth the name node_modules and search for a pattern in these files<|im_... | find all the files ending with ".sh" in the folder /dir excluding those wth the name node_modules and search for a pattern in these files | find /dir \ -o -name "*.sh" -exec grep --color -Hn "your text to find" {} 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
Converts all windows line endings to unix line endings<|im_end|>
<|im_start|>assistant
find $ -type f | xargs -I xxx sed -i 's/\r//g' xxx<|im_... | Converts all windows line endings to unix line endings | find $ -type f | xargs -I xxx sed -i 's/\r//g' xxx | AnishJoshi/nl2bash-custom |
<|im_start|>system
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 for errors and send an alert if any are found.<|im_end|>
<|im_start|>assistant
#!/bin/bash
grep -i "err... | Create a script to monitor system log for errors and send an alert if any are found. | #!/bin/bash
grep -i "error" /var/log/syslog > /dev/null
if [ $? -eq 0 ]; then
echo "Errors found in system log."
# 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
Use the PHP interpreter to output an endless stream of "a" characters to "nohup.out" in the current directory, or in the home directory if tha... | Use the PHP interpreter to output an endless stream of "a" characters to "nohup.out" in the current directory, or in the home directory if that is not possible. The PHP process will not receive or respond to SIGHUP which are sent to it. | nohup php -r 'while { echo "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
Convert "/usr/share/man/man1/man.1.gz" to html<|im_end|>
<|im_start|>assistant
zcat /usr/share/man/man1/man.1.gz | groff -mandoc -Thtml<|im_e... | Convert "/usr/share/man/man1/man.1.gz" to html | zcat /usr/share/man/man1/man.1.gz | groff -mandoc -Thtml | AnishJoshi/nl2bash-custom |
<|im_start|>system
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 pipe their contents to the wordfrequency command and then search for 'yourword' in the output<|im_e... | Find all files under current directory and pipe their contents to the wordfrequency command and then search for 'yourword' in the output | find . -type f | xargs cat | wordfrequency | grep yourword | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Find all files/directories under current directory that match the case insensitive regex ./\_.*<|im_end|>
<|im_start|>assistant
find . -iregex... | Find all files/directories under current directory that match the case insensitive regex ./\_.* | find . -iregex './\_.*' | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Print the number of files and directories in a directory.<|im_end|>
<|im_start|>assistant
#!/bin/bash
directory="/path/to/your/directory"
nu... | Print the number of files and directories in a directory. | #!/bin/bash
directory="/path/to/your/directory"
num_files=$(find "$directory" -type f | wc -l)
num_directories=$(find "$directory" -type d | wc -l)
echo "Number of files: $num_files"
echo "Number of directories: $num_directories" | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Remove trailing white spaces from all *.rb, *.html, *.js, *.coffee, *.css, *.scss, *.erb, *.yml, *.ru files under current directory<|im_end|>
... | Remove trailing white spaces from all *.rb, *.html, *.js, *.coffee, *.css, *.scss, *.erb, *.yml, *.ru files under current directory | find . \ -print0 | xargs -0 sed -i '' -E "s/[[:space:]]*$//" | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Run 'join' with the number-sorted output of file1 and file2, without modifying file1 or file2: for each line with a common first field in file... | Run 'join' with the number-sorted output of file1 and file2, without modifying file1 or file2: for each line with a common first field in file1 and file2, output the common field followed by the extra fields in both files. | join <(sort -n file1) <(sort -n file2) | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Puts working directory into clipboard, stripping newlines<|im_end|>
<|im_start|>assistant
pwd | tr -d '\n' | pbcopy<|im_end|> | Puts working directory into clipboard, stripping newlines | pwd | tr -d '\n' | pbcopy | AnishJoshi/nl2bash-custom |
<|im_start|>system
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 first word followed by the rest of the line formatted to fit in 100 characters for every line in "input"<|im_end|>
<|im_start|>assis... | Print the first word followed by the rest of the line formatted to fit in 100 characters for every line in "input" | sed 's/\([^ ]*\) /\1\n/' input | fold -w 100 | AnishJoshi/nl2bash-custom |
<|im_start|>system
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 all lines in 'file' which contain a tab character.<|im_end|>
<|im_start|>assistant
awk -F"\t" 'NF>1' file<|im_end|> | Output all lines in 'file' which contain a tab character. | awk -F"\t" 'NF>1' 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
List files under $CURR_DIR which were modified, accessed or whose status were changed $FTIME ago replacing the $CURR_DIR path string to './'<|... | List files under $CURR_DIR which were modified, accessed or whose status were changed $FTIME ago replacing the $CURR_DIR path string to './' | find ${CURR_DIR} -type f \ -printf "./%P\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
Split file 'afile' into parts as of two lines per each and compress each part with 'bzip2'<|im_end|>
<|im_start|>assistant
cat afile | split -... | Split file 'afile' into parts as of two lines per each and compress each part with 'bzip2' | cat afile | split -l 2 --filter='bzip2 > "$FILE.bz2"' | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Counts all files in a current folder and in subfolders one-level lower, sorts result and pipes to the less pager.<|im_end|>
<|im_start|>assist... | Counts all files in a current folder and in subfolders one-level lower, sorts result and pipes to the less pager. | find . -maxdepth 1 -type d -print0 | xargs -0 -I {} sh -c 'echo $ \\t {}' | sort -rn | 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 files matching the regex 'myregex' in their contents and append the list of these files to outfile.txt<|im_end|>
<|im_start|>assistant
fi... | Find files matching the regex 'myregex' in their contents and append the list of these files to outfile.txt | find . -exec grep -l -e 'myregex' {} \; >> outfile.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 files with inode number 199053<|im_end|>
<|im_start|>assistant
find / -inum 199053<|im_end|> | Find files with inode number 199053 | find / -inum 199053 | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Counts number of lines with 'OK' in file 'filename'.<|im_end|>
<|im_start|>assistant
grep "OK" <filename> | wc -l<|im_end|> | Counts number of lines with 'OK' in file 'filename'. | grep "OK" <filename> | 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
Continuously send "y" as input to "./MyScript.sh" and ignore standard error<|im_end|>
<|im_start|>assistant
yes 2>/dev/null | ./MyScript.sh<|i... | Continuously send "y" as input to "./MyScript.sh" and ignore standard error | yes 2>/dev/null | ./MyScript.sh | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
display all files in current folder and follow the symbolic links and display the pointed file<|im_end|>
<|im_start|>assistant
find -L .<|im_e... | display all files in current folder and follow the symbolic links and display the pointed file | find -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
Create a script to find the length of a string.<|im_end|>
<|im_start|>assistant
#!/bin/bash
str="hello world"
length=${#str}
echo "The length... | Create a script to find the length of a string. | #!/bin/bash
str="hello world"
length=${#str}
echo "The length of the string is: $length" | AnishJoshi/nl2bash-custom |
<|im_start|>system
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 "myprogram", pausing for user input at each page.<|im_end|>
<|im_start|>assistant
myprogram|more<|im_end|> | Run "myprogram", pausing for user input at each page. | myprogram|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
Display only line numbers listed in 'file_of_line_numbers" from file 'source'.<|im_end|>
<|im_start|>assistant
sed 's/$/p/' file_of_line_numbe... | Display only line numbers listed in 'file_of_line_numbers" from file 'source'. | sed 's/$/p/' file_of_line_numbers | sed -nf - source | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Assign a name when starting a screen session<|im_end|>
<|im_start|>assistant
screen -S lynx lynx<|im_end|> | Assign a name when starting a screen session | screen -S lynx lynx | AnishJoshi/nl2bash-custom |
<|im_start|>system
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 all files in directory "$PATH_TO_LOGS" that were last modified more than "$SOME_NUMBER_OF_DAYS" days ago<|im_end|>
<|im_start|>assist... | Compress all files in directory "$PATH_TO_LOGS" that were last modified more than "$SOME_NUMBER_OF_DAYS" days ago | find $PATH_TO_LOGS -maxdepth 1 -mtime +$SOME_NUMBER_OF_DAYS -exec gzip -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
Displays Homebrew’s install path.<|im_end|>
<|im_start|>assistant
brew --prefix<|im_end|> | Displays Homebrew’s install path. | brew --prefix | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Create a script that monitors system network interface TCP segments sent and alerts if any interface exceeds a certain threshold.<|im_end|>
<|... | Create a script that monitors system network interface TCP segments sent and alerts if any interface exceeds a certain threshold. | #!/bin/bash
threshold=1000
while true; do
netstat -s | awk '/segments sent/ && $1 > "$threshold" {print $1}'
sleep 60
done | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Move each of the directories in /path/to/folders/* to another directory whose name is constituted by appending .mbox to each directory name an... | Move each of the directories in /path/to/folders/* to another directory whose name is constituted by appending .mbox to each directory name and create a directory named Messages in this directory then move all *.emlx files into this directory | find /path/to/folders/* -type d -exec mv {} {}.mbox \; -exec mkdir {}.mbox/Messages \; -exec sh -c "mv {}.mbox/*.emlx {}.mbox/Messages" \; | AnishJoshi/nl2bash-custom |
<|im_start|>system
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 Makefile's in the current directory tree and look for line 235 in each of them<|im_end|>
<|im_start|>assistant
find -type f -name "Ma... | Find all Makefile's in the current directory tree and look for line 235 in each of them | find -type f -name "Makefile" -exec awk 'FNR==235 {print FILENAME; 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
Calculate md5 sum of file ${my_iso_file} and save it to variable 'md5'<|im_end|>
<|im_start|>assistant
md5="$"<|im_end|> | Calculate md5 sum of file ${my_iso_file} and save it to variable 'md5' | md5="$" | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Request SSH to run "echo foo; sleep 5; echo bar" in the background<|im_end|>
<|im_start|>assistant
ssh -f user@host "echo foo; sleep 5; echo b... | Request SSH to run "echo foo; sleep 5; echo bar" in the background | ssh -f user@host "echo foo; sleep 5; echo bar" | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Remove duplicates in variable "variable" and preserve the order<|im_end|>
<|im_start|>assistant
variable=$(echo "$variable" | tr ' ' '\n' | nl... | Remove duplicates in variable "variable" and preserve the order | variable=$(echo "$variable" | tr ' ' '\n' | nl | sort -u -k2 | sort -n | cut -f2-) | AnishJoshi/nl2bash-custom |
<|im_start|>system
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 Kubernetes deployment status and scale deployments based on CPU and memory usage.<|im_end|>
<|im_start|>assi... | Create a script to monitor system Kubernetes deployment status and scale deployments based on CPU and memory usage. | #!/bin/bash
deployment_name="<deployment_name>"
replicas=$(kubectl get deployment $deployment_name -o=jsonpath='{.spec.replicas}')
cpu_requests=$(kubectl top pod -l app=$deployment_name --no-headers | awk '{print $2}' | awk '{sum+=$1} END {print sum}')
memory_requests=$(kubectl top pod -l app=$deployment_name --no-hea... | AnishJoshi/nl2bash-custom |
<|im_start|>system
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 files containing string "PENDWIDTH" and view the result using the more command<|im_end|>
<|im_start|>assistant
find . -exec grep PE... | Search for files containing string "PENDWIDTH" and view the result using the more command | find . -exec grep PENWIDTH {} \; | 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
Find all files/directories under /path/to/files/* paths and print the timestamp in YmdHMS format along with their paths and object of symlinks... | Find all files/directories under /path/to/files/* paths and print the timestamp in YmdHMS format along with their paths and object of symlinks, stat them and apply the sed replacement "s/\-\- \:\:.*/\1\2\3\4\5\6\7/g" on the output | find /path/to/files/* -printf "%TY%Tm%Td%TH%TM%TS|%p|%l" -exec stat -Lc "|%y" {} \; | sed -r "s/\-\- \:\:.*/\1\2\3\4\5\6\7/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
Find all the files in entire file system with the extensions txt or doc, as well as any file larger than 5MB in size<|im_end|>
<|im_start|>ass... | Find all the files in entire file system with the extensions txt or doc, as well as any file larger than 5MB in size | 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
If first command fails, exits from script with exit code of failed command.<|im_end|>
<|im_start|>assistant
make || exit $?<|im_end|> | If first command fails, exits from script with exit code of failed command. | make || 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
Find all files/directories under current directory and put the output into full_backup_dir variable<|im_end|>
<|im_start|>assistant
full_backu... | Find all files/directories under current directory and put the output into full_backup_dir variable | full_backup_dir="`find . -depth -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
Saves hostname that matches ${ip_address} in 'host' variable, without trailing dot.<|im_end|>
<|im_start|>assistant
host=$<|im_end|> | Saves hostname that matches ${ip_address} in 'host' variable, without trailing dot. | host=$ | AnishJoshi/nl2bash-custom |
<|im_start|>system
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 links in the directory students and print them. Do not display any errors.<|im_end|>
<|im_start|>assistant
find /students -type l... | find all the links in the directory students and print them. Do not display any errors. | find /students -type l -print 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
Delete all regular files with '.txt' extension that were modified in more than 25 minutes ago in maximum 1 level down the directory '/home/u20... | Delete all regular files with '.txt' extension that were modified in more than 25 minutes ago in maximum 1 level down the directory '/home/u20806/public_html' | find /home/u20806/public_html -daystart -maxdepth 1 -mmin +25 -type f -name "*.txt" \ -exec rm -f {} \; | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Remove the path $1 from the PATH environment variable<|im_end|>
<|im_start|>assistant
PATH=$<|im_end|> | Remove the path $1 from the PATH environment variable | 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
search for all the directories in a folder and limit the search to current folder and give them as input to the python script<|im_end|>
<|im_s... | search for all the directories in a folder and limit the search to current folder and give them as input to the python script | find /stuff -maxdepth 1 -type d -exec script.py {} + | AnishJoshi/nl2bash-custom |
<|im_start|>system
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 RabbitMQ server status and send alerts if queues are filling up.<|im_end|>
<|im_start|>assistant
#!/bin/bash... | Create a script to monitor system RabbitMQ server status and send alerts if queues are filling up. | #!/bin/bash
threshold="10000"
queue_length=$(rabbitmqctl list_queues | grep 'ready' | awk '{print $2}')
if [ "$queue_length" -gt "$threshold" ]; then
echo "RabbitMQ queue length is high: $queue_length" | mail -s "RabbitMQ Queue 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
Create a script to monitor system user activity and send an alert if any suspicious activity is detected.<|im_end|>
<|im_start|>assistant
#!/b... | Create a script to monitor system user activity and send an alert if any suspicious activity is detected. | #!/bin/bash
suspicious_users=$(last | grep -v 'wtmp' | awk '{print $1}' | sort | uniq -c | sort -n | tail -5)
if [ -n "$suspicious_users" ]; then
echo "Suspicious user activity 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
Unsets environment variable 'z'.<|im_end|>
<|im_start|>assistant
unset z<|im_end|> | Unsets environment variable 'z'. | unset z | AnishJoshi/nl2bash-custom |
<|im_start|>system
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 a process tree for each process of user 'username'.<|im_end|>
<|im_start|>assistant
ps -aux | grep ^username | awk '{print $2}' | xargs... | Prints a process tree for each process of user 'username'. | ps -aux | grep ^username | awk '{print $2}' | xargs pstree | AnishJoshi/nl2bash-custom |
<|im_start|>system
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 create a symbolc link named "/usr/local/bin/fpdf" to "/usr/local/bin/findpdftext"<|im_end|>
<|im_start|>assistant
sudo ln -s -f "/usr/lo... | Force create a symbolc link named "/usr/local/bin/fpdf" to "/usr/local/bin/findpdftext" | sudo ln -s -f "/usr/local/bin/findpdftext" "/usr/local/bin/fpdf" | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Write the output of "./program" to the console and "a.txt"<|im_end|>
<|im_start|>assistant
./program | tee a.txt<|im_end|> | Write the output of "./program" to the console and "a.txt" | ./program | tee a.txt | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Create a script to monitor system root user process CPU scheduling priority and send an alert if any process has a non-default priority.<|im_e... | Create a script to monitor system root user process CPU scheduling priority and send an alert if any process has a non-default priority. | #!/bin/bash
non_default_priorities="$(ps -eo pid,comm,nice --sort nice | awk '$3 != 0' | tail -n 5)"
if [ -n "$non_default_priorities" ]; then
echo "Processes with non-default CPU scheduling priority for root user: $non_default_priorities" | mail -s "Root Non-default CPU Priority Alert" user@example.com
fi | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Print the list of regular files from the current directory tree that were modified less than 2 days ago<|im_end|>
<|im_start|>assistant
find .... | Print the list of regular files from the current directory tree that were modified less than 2 days ago | find . -type f -mtime -2 -exec 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
Print the list of installed packages sorted alphabetically.<|im_end|>
<|im_start|>assistant
#!/bin/bash
apt list --installed | sort<|im_end|> | Print the list of installed packages sorted alphabetically. | #!/bin/bash
apt list --installed | sort | AnishJoshi/nl2bash-custom |
<|im_start|>system
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 environmental variables with "HIST" in their name or contents<|im_end|>
<|im_start|>assistant
set | grep HIST<|im_end|> | Search for environmental variables with "HIST" in their name or contents | set | grep HIST | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Starts tmux session 'name', forcing tmux to assume the terminal supports 256 colours, and executes defined script within.<|im_end|>
<|im_start... | Starts tmux session 'name', forcing tmux to assume the terminal supports 256 colours, and executes defined script within. | tmux -2 new-session -s name "another_script.sh $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 system calls during process of symbolic link creation process on "/tmp/output.txt" file<|im_end|>
<|im_start|>assistant
strace -o /t... | list all system calls during process of symbolic link creation process on "/tmp/output.txt" file | strace -o /tmp/output.txt ln -s -f .bash_aliases test | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Ping hostname, grep for 192.168.11 and print the IP from the output<|im_end|>
<|im_start|>assistant
ping -c 1 hostname | grep 192.168.11 | gre... | Ping hostname, grep for 192.168.11 and print the IP from the output | ping -c 1 hostname | grep 192.168.11 | grep 'bytes from' | awk '{print $4}' | 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
Shuffles strings of text received by 'awk' command on the input.<|im_end|>
<|im_start|>assistant
awk 'BEGIN{srand;} {printf "%06d %s\n", rand*... | Shuffles strings of text received by 'awk' command on the input. | awk 'BEGIN{srand;} {printf "%06d %s\n", rand*1000000, $0;}' | sort -n | cut -c8- | AnishJoshi/nl2bash-custom |
<|im_start|>system
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 *.ext files/directories under current directory and print their path and parent directory path<|im_end|>
<|im_start|>assistant
find .... | Find all *.ext files/directories under current directory and print their path and parent directory path | find . -name '*.ext' | parallel echo {} '`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
Changes group ownership of 'myprogram' to ${USER} (the current user)<|im_end|>
<|im_start|>assistant
chgrp "${USER}" myprogram<|im_end|> | Changes group ownership of 'myprogram' to ${USER} (the current user) | chgrp "${USER}" myprogram | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Finds IP addresses of all network interfaces.<|im_end|>
<|im_start|>assistant
ifconfig | grep -v '127.0.0.1' | sed -n 's/.*inet addr:\([0-9.]\... | Finds IP addresses of all network interfaces. | ifconfig | grep -v '127.0.0.1' | sed -n 's/.*inet addr:\([0-9.]\+\)\s.*/\1/p' | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Gets IP address of 'eth0' network interface.<|im_end|>
<|im_start|>assistant
ifconfig eth0 | awk '/inet addr/{sub; print $1}'<|im_end|> | Gets IP address of 'eth0' network interface. | ifconfig eth0 | awk '/inet addr/{sub; print $1}' | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Starts new tmux session, assuming the terminal supports 256 colours.<|im_end|>
<|im_start|>assistant
tmux -2<|im_end|> | Starts new tmux session, assuming the terminal supports 256 colours. | tmux -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 to monitor system disk usage trends and send an alert if disk usage is increasing rapidly.<|im_end|>
<|im_start|>assistant
#!/... | Create a script to monitor system disk usage trends and send an alert if disk usage is increasing rapidly. | #!/bin/bash
previous_usage="$(cat /var/log/disk_usage.log)"
current_usage="$(df -h / | tail -n 1 | awk '{print $5}')"
if [ "$current_usage" -gt "$previous_usage" ]; then
echo "Disk usage is increasing rapidly: $current_usage" | mail -s "Disk Usage Trend Alert" user@example.com
fi
echo "$current_usage" > /var/log... | AnishJoshi/nl2bash-custom |
<|im_start|>system
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 characters in variable "$a" that exist in variable "$b"<|im_end|>
<|im_start|>assistant
echo "$(comm -12 < < | tr -d '\n')"<|im_end|> | Print characters in variable "$a" that exist in variable "$b" | echo "$(comm -12 < < | 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
Search for 'Processed Files' in all $srch* files under current directory run the sed script 'N;s/\n/\2 \1/' on the output and redirect the fi... | Search for 'Processed Files' in all $srch* files under current directory run the sed script 'N;s/\n/\2 \1/' on the output and redirect the final output to temp2 file | find . -iname "$srch*" -exec grep "Processed Files" {} \; -print| sed -r 'N;s/\n/\2 \1/' > temp2 | AnishJoshi/nl2bash-custom |
<|im_start|>system
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 in the current directory tree and unzip them<|im_end|>
<|im_start|>assistant
find . -depth -name '*.zip' -exec /usr/bin/un... | Find all .zip files in the current directory tree and unzip them | find . -depth -name '*.zip' -exec /usr/bin/unzip -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
Check if a string contains only alphanumeric characters and whitespace characters.<|im_end|>
<|im_start|>assistant
#!/bin/bash
string="abc123... | Check if a string contains only alphanumeric characters and whitespace characters. | #!/bin/bash
string="abc123 "
if [[ "$string" =~ ^[[:alnum:]\s]+$ ]]; then
echo "$string contains only alphanumeric characters and whitespace characters"
else
echo "$string does not contain only alphanumeric characters and whitespace characters"
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
Save in QUEUE_PIDS variable only pid numbers that stored in $NEW_PIDS variable<|im_end|>
<|im_start|>assistant
QUEUE_PIDS=$(comm -23 < < | gre... | Save in QUEUE_PIDS variable only pid numbers that stored in $NEW_PIDS variable | QUEUE_PIDS=$(comm -23 < < | grep -v '^$') | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Prompt user to type a list of cron jobs directly at the terminal, then use these replacing previously existing cron jobs.<|im_end|>
<|im_start... | Prompt user to type a list of cron jobs directly at the terminal, then use these replacing previously existing cron jobs. | 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
Create a script to monitor system Jenkins job status and trigger pipeline re-runs when build failures occur.<|im_end|>
<|im_start|>assistant
#... | Create a script to monitor system Jenkins job status and trigger pipeline re-runs when build failures occur. | #!/bin/bash
job_name="<job_name>"
last_build_status=$(curl -s "http://jenkins.example.com/job/$job_name/lastBuild/api/json" | jq -r '.result')
if [ "$last_build_status" == "FAILURE" ]; then
curl -X POST "http://jenkins.example.com/job/$job_name/build?delay=0sec"
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
Interpret in the current shell all lines in config.sh which contain the word "marker"<|im_end|>
<|im_start|>assistant
source <( grep "marker" ... | Interpret in the current shell all lines in config.sh which contain the word "marker" | source <( grep "marker" config.sh ) | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Find all .txt files in the current directory tree and edit them with `vim'<|im_end|>
<|im_start|>assistant
find . -name "*.txt" | parallel -j1... | Find all .txt files in the current directory tree and edit them with `vim' | find . -name "*.txt" | parallel -j1 --tty vim | AnishJoshi/nl2bash-custom |
<|im_start|>system
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 variables with names starting with "derby" in a Window's command line<|im_end|>
<|im_start|>assistant
set derby<|im_end|> | Display all variables with names starting with "derby" in a Window's command line | set derby | AnishJoshi/nl2bash-custom |
<|im_start|>system
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 "*prefs copy" files in the /mnt/zip directory tree and remove them<|im_end|>
<|im_start|>assistant
find /mnt/zip -name "*prefs copy" -pri... | Find "*prefs copy" files in the /mnt/zip directory tree and remove them | find /mnt/zip -name "*prefs copy" -print0 | xargs rm | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Automatically log into "SOME_SITE.COM" as user "YOUR_USERNAME" using password "YOUR_PASSWORD"<|im_end|>
<|im_start|>assistant
sshpass -p "YOUR... | Automatically log into "SOME_SITE.COM" as user "YOUR_USERNAME" using password "YOUR_PASSWORD" | sshpass -p "YOUR_PASSWORD" ssh -o StrictHostKeyChecking=no YOUR_USERNAME@SOME_SITE.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
Run "myprogram" in the current directory, pausing for user input at each page.<|im_end|>
<|im_start|>assistant
./myprogram | more<|im_end|> | Run "myprogram" in the current directory, pausing for user input at each page. | ./myprogram | 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
Unzip all *.zip files under current directory<|im_end|>
<|im_start|>assistant
find . -name '*.zip' | xargs -n1 unzip<|im_end|> | Unzip all *.zip files under current directory | find . -name '*.zip' | xargs -n1 unzip | AnishJoshi/nl2bash-custom |
<|im_start|>system
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 group changes and send an alert if the root user group membership is modified.<|im_end|>
<|im_star... | Create a script to monitor system root user group changes and send an alert if the root user group membership is modified. | #!/bin/bash
group_changes="$(grep -E 'group' /var/log/auth.log | grep -i 'root' | tail -n 5)"
if [ -n "$group_changes" ]; then
echo "Root user group changes detected: $group_changes" | mail -s "Root Group Change 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
Unset RBENV_VERSION variable in tmux session 'sessname' environment.<|im_end|>
<|im_start|>assistant
tmux set-environment -t sessname -u RBENV... | Unset RBENV_VERSION variable in tmux session 'sessname' environment. | tmux set-environment -t sessname -u RBENV_VERSION | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Find all pdf files in /path and search for "your pattern" in the converted text output and print the paths to the matching files<|im_end|>
<|i... | Find all pdf files in /path and search for "your pattern" in the converted text output and print the paths to the matching files | find /path -name '*.pdf' -exec sh -c 'pdftotext "{}" - | grep --with-filename --label="{}" --color "your pattern"' \; | AnishJoshi/nl2bash-custom |
<|im_start|>system
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 under current directory by appending parent directory name at the beginning of their names if the name doesn't already ... | Rename all *.jpg files under current directory by appending parent directory name at the beginning of their names if the name doesn't already contain the parent directory name | find . -name '*.jpg' -execdir bash -c 'd="${PWD##*/}"; [[ "$1" != "$d-"* ]] && mv "$1" "./$d-$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 'Empty dir' if $some_dir is empty<|im_end|>
<|im_start|>assistant
if find /some/dir/ -maxdepth 0 -empty | read v; then echo "Empty dir";... | Print 'Empty dir' if $some_dir is empty | if find /some/dir/ -maxdepth 0 -empty | read v; then echo "Empty dir"; 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
Reverse the order of lines in "dax-weekly.csv" keeping the first line the same<|im_end|>
<|im_start|>assistant
cat dax-weekly.csv | awk '1 { l... | Reverse the order of lines in "dax-weekly.csv" keeping the first line the same | cat dax-weekly.csv | awk '1 { last = NR; line[last] = $0; } END { print line[1]; for { print line[i]; } }' | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Perform syntax check on all PHP files in the current directory tree<|im_end|>
<|im_start|>assistant
find . -name \*.php -type f -print0 | xarg... | Perform syntax check on all PHP files in the current directory tree | find . -name \*.php -type f -print0 | xargs -0 -n1 php -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
Find directories in /home/vmail that match pathname "*/*/Maildir/.LearnAsSpam/new", and move them to folder .Junk/new<|im_end|>
<|im_start|>as... | Find directories in /home/vmail that match pathname "*/*/Maildir/.LearnAsSpam/new", and move them to folder .Junk/new | find /home/vmail/ -type d -path "*/*/Maildir/.LearnAsSpam/new" -exec 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
Counts lines in file $FILE.<|im_end|>
<|im_start|>assistant
count=$<|im_end|> | Counts lines in file $FILE. | count=$ | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Greps DNS zone transfer info on domain localdomain.com from NS @dc1.localdomain.com, finds strings with any-cased word 'Lawler' and strips las... | Greps DNS zone transfer info on domain localdomain.com from NS @dc1.localdomain.com, finds strings with any-cased word 'Lawler' and strips last letter from each string. | VAR=`dig axfr @dc1.localdomain.com localdomain.com | grep -i Lawler | awk '{ getline ; $1=substr($1,1,length($1)-1); print $1 ; 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
exclude ./dirtoexclude, using yui compress all file under currect folder<|im_end|>
<|im_start|>assistant
find . -path "./dirtoexclude" -prune ... | exclude ./dirtoexclude, using yui compress all file under currect folder | find . -path "./dirtoexclude" -prune \ -o -exec java -jar config/yuicompressor-2.4.2.jar --type js '{}' -o '{}' \; | AnishJoshi/nl2bash-custom |
<|im_start|>system
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 normal/regular files in current folder excluding sub directories and hidden folders and display the count<|im_end|>
<|im_start|>a... | find all the normal/regular files in current folder excluding sub directories and hidden folders and display the count | find . -type f -maxdepth 1 ! -name '.*' -exec printf '%.0s.\n' {} + | wc -l | AnishJoshi/nl2bash-custom |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.