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
Generate a random password.<|im_end|>
<|im_start|>assistant
#!/bin/bash
openssl rand -base64 12<|im_end|> | Generate a random password. | #!/bin/bash
openssl rand -base64 12 | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Save absolute path of "/home/nohsib/dvc/../bop" in variable "absolute_path"<|im_end|>
<|im_start|>assistant
absolute_path=$<|im_end|> | Save absolute path of "/home/nohsib/dvc/../bop" in variable "absolute_path" | absolute_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
Unzip "archive.tgz" and extract all archives excluding ones matching "apri/fls/filename"<|im_end|>
<|im_start|>assistant
zcat archive.tgz | ta... | Unzip "archive.tgz" and extract all archives excluding ones matching "apri/fls/filename" | zcat archive.tgz | tar -x --wildcards apri/fls/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
Calculate the total disk usage for each ".jpg" file on the system and prepend the system host name to the output<|im_end|>
<|im_start|>assista... | Calculate the total disk usage for each ".jpg" file on the system and prepend the system host name to the output | find "$PWD" / -iname '*.jpg' -exec du -s {} + | sed "s/^/$: /" | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Prepend the reverse history number as negative values to the output of the history command with arguments "$@"<|im_end|>
<|im_start|>assistant... | Prepend the reverse history number as negative values to the output of the history command with arguments "$@" | history "$@" | tac | nl | tac | sed 's/^\\/\1-\2/' | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Find sqlite3 databases in the current directory tree, execute query 'SELECT * FROM table WHERE column1="value"' on all of them, and search the... | Find sqlite3 databases in the current directory tree, execute query 'SELECT * FROM table WHERE column1="value"' on all of them, and search the result for "value" | find . -name "*.db" -type f | while read file ; do sqlite3 $file "SELECT * FROM table WHERE column1='value'" | grep value ; if [ $? -eq 0 ] ; then echo $file ; 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
copy all java files from current folder to another folder<|im_end|>
<|im_start|>assistant
find . -name "*.java" -print0 | xargs -0 -J % cp % d... | copy all java files from current folder to another folder | find . -name "*.java" -print0 | xargs -0 -J % cp % destinationFolder | AnishJoshi/nl2bash-custom |
<|im_start|>system
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 automate database backups, including compression and rotation of backup files.<|im_end|>
<|im_start|>assistant
#!/bin/bash
... | Create a script to automate database backups, including compression and rotation of backup files. | #!/bin/bash
date=$(date +%Y%m%d)
backup_dir="/path/to/backups"
backup_file="$backup_dir/db_backup_$date.sql"
mysqldump -u username -p password database_name > "$backup_file"
gzip "$backup_file"
find "$backup_dir" -type f -name "db_backup_*" -mtime +7 -delete | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Check if a file is a block device.<|im_end|>
<|im_start|>assistant
#!/bin/bash
file="/path/to/your/file.txt"
if [ -b "$file" ]; then
ech... | Check if a file is a block device. | #!/bin/bash
file="/path/to/your/file.txt"
if [ -b "$file" ]; then
echo "$file is a block device"
else
echo "$file is not a block device"
fi | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Read a line from standard input into variable "message" with escaped prompt "Please Enter a Message: \n\b"<|im_end|>
<|im_start|>assistant
rea... | Read a line from standard input into variable "message" with escaped prompt "Please Enter a Message: \n\b" | read -p "$" message | AnishJoshi/nl2bash-custom |
<|im_start|>system
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 CPU temperature and send an alert if it exceeds a certain threshold.<|im_end|>
<|im_start|>assistant
#!/bin/bash
t... | Create a script to monitor CPU temperature and send an alert if it exceeds a certain threshold. | #!/bin/bash
threshold="70"
cpu_temp=$(sensors | grep 'Package id 0' | awk '{print $4}')
if [ "$cpu_temp" -gt "$threshold" ]; then
echo "CPU temperature is too high: $cpu_temp°C" | mail -s "High CPU Temperature Alert" user@example.com
fi | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Find recursively all files matching pattern 'file??' in the xargstest/ directory and print a sorted list of them<|im_end|>
<|im_start|>assista... | Find recursively all files matching pattern 'file??' in the xargstest/ directory and print a sorted list of them | find xargstest/ -name 'file??' | 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
Find all files in the current directory recursively that were last modified more than 5 days ago<|im_end|>
<|im_start|>assistant
find ./* -mti... | Find all files in the current directory recursively that were last modified more than 5 days ago | find ./* -mtime +5 | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Find all README's in /usr/share<|im_end|>
<|im_start|>assistant
find /usr/share -name README<|im_end|> | Find all README's in /usr/share | find /usr/share -name README | AnishJoshi/nl2bash-custom |
<|im_start|>system
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 grub.conf files in entire file system discarding errors in csh or tcsh shell<|im_end|>
<|im_start|>assistant
find / -name grub.conf >& /d... | Find grub.conf files in entire file system discarding errors in csh or tcsh shell | find / -name grub.conf >& /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
Counts lines in file file1 and shows progress bar while doing.<|im_end|>
<|im_start|>assistant
tail -n 100 file1 | bar | wc -l<|im_end|> | Counts lines in file file1 and shows progress bar while doing. | tail -n 100 file1 | bar | 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
Delete all contents form the files that contain the case insensitive regex 'stringtofind' in maximum 1 level down the / directory excluding ot... | Delete all contents form the files that contain the case insensitive regex 'stringtofind' in maximum 1 level down the / directory excluding other partitions | find / -maxdepth 1 -xdev -type f -exec grep -i "stringtofind" -q "{}" \; -print0 | xargs -0 sed '/./d' | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Print unique lines in sorted file "A" when compared to sorted files "B", "C", and "D"<|im_end|>
<|im_start|>assistant
comm -2 -3 A B | comm -2... | Print unique lines in sorted file "A" when compared to sorted files "B", "C", and "D" | comm -2 -3 A B | comm -2 -3 - C | comm -2 -3 - D | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Create a script to monitor Docker daemon status and send an alert if it's not running.<|im_end|>
<|im_start|>assistant
#!/bin/bash
docker_sta... | Create a script to monitor Docker daemon status and send an alert if it's not running. | #!/bin/bash
docker_status=$(systemctl is-active --quiet docker)
if [ "$docker_status" != "active" ]; then
echo "Docker daemon is not running."
# 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
Prints total number of lines of all *.m and *.h files in a current folder and subfolders.<|im_end|>
<|im_start|>assistant
find ./ -type f -nam... | Prints total number of lines of all *.m and *.h files in a current folder and subfolders. | find ./ -type f -name "*.[mh]" -exec wc -l {} \; | sed -e 's/[ ]*//g' | cut -d"." -f1 | paste -sd+ - | bc | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Exits the entire bash script with defined status code N.<|im_end|>
<|im_start|>assistant
exit N<|im_end|> | Exits the entire bash script with defined status code N. | exit N | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Find all *.tar.gz files/directories under /directory/whatever which were modified more than $DAYS ago and show a message if no files were foun... | Find all *.tar.gz files/directories under /directory/whatever which were modified more than $DAYS ago and show a message if no files were found | find /directory/whatever -name '*.tar.gz' -mtime +$DAYS | grep 'tar.gz' || echo "You don't have files older than $DAYS days" | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Make directories and parents for each line in "infile" excluding the file name<|im_end|>
<|im_start|>assistant
while read line; do mkdir -p "$... | Make directories and parents for each line in "infile" excluding the file name | while read line; do mkdir -p "${line%/*}"; done < infile | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Make directories and parents for each file path in "somefile.txt" excluding the file name<|im_end|>
<|im_start|>assistant
xargs -n 1 dirname <... | Make directories and parents for each file path in "somefile.txt" excluding the file name | xargs -n 1 dirname <somefile.txt | 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
Create a script to monitor system Google Cloud Functions status and deploy new versions when function code is updated.<|im_end|>
<|im_start|>a... | Create a script to monitor system Google Cloud Functions status and deploy new versions when function code is updated. | #!/bin/bash
function_name="<function_name>"
function_status=$(gcloud functions describe $function_name --format='value(status)')
if [ "$function_status" == "READY" ]; then
gcloud functions deploy $function_name --runtime python38 --trigger-http
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
Locate python interpreter and show its human-readable file type description, resolving any symlinks.<|im_end|>
<|im_start|>assistant
file -L $... | Locate python interpreter and show its human-readable file type description, resolving any symlinks. | file -L $(python -c 'import sys; 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
Count the number of files named 'job.history' under '/data/SpoolIn' directory tree that match 'FAIL' in their contents<|im_end|>
<|im_start|>a... | Count the number of files named 'job.history' under '/data/SpoolIn' directory tree that match 'FAIL' in their contents | find /data/SpoolIn -name job.history -exec grep -l FAIL {} \; | 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
find all the wav files in the current folder and do not search in the sub directories<|im_end|>
<|im_start|>assistant
find . -name '*.wav' -ma... | find all the wav files in the current folder and do not search in the sub directories | find . -name '*.wav' -maxdepth 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
set alias "h" for command "history"<|im_end|>
<|im_start|>assistant
alias h='history'<|im_end|> | set alias "h" for command "history" | alias h='history' | AnishJoshi/nl2bash-custom |
<|im_start|>system
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 'name' 'application'<|im_end|> | Assign a name when starting a screen session | screen -S 'name' 'application' | AnishJoshi/nl2bash-custom |
<|im_start|>system
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 over time and generates a report.<|im_end|>
<|im_start|>assistant
#!/bin/bash
whi... | Create a script that monitors system process resource usage over time and generates a report. | #!/bin/bash
while true; do
ps -eo pid,%cpu,%mem,cmd --sort=-%cpu | head -n 11 > /tmp/top_cpu_processes.txt
ps -eo pid,%cpu,%mem,cmd --sort=-%mem | head -n 11 > /tmp/top_memory_processes.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
Create a script that monitors system kernel logs for critical messages and alerts if any are found.<|im_end|>
<|im_start|>assistant
#!/bin/bas... | Create a script that monitors system kernel logs for critical messages and alerts if any are found. | #!/bin/bash
while true; do
grep -q 'kernel panic' /var/log/kern.log && echo "Kernel panic 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
Dry run making directories in "/TARGET_FOLDER_ROOT/" for each ".mov" file in the current directory tree<|im_end|>
<|im_start|>assistant
find .... | Dry run making directories in "/TARGET_FOLDER_ROOT/" for each ".mov" file in the current directory tree | find . -type f -iname \*.mov -printf '%h\n' | sort | uniq | xargs -n 1 -d '\n' -I '{}' echo mkdir -vp "/TARGET_FOLDER_ROOT/{}" | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Print a welcome message with the current user's user name<|im_end|>
<|im_start|>assistant
echo "Welcome $!"<|im_end|> | Print a welcome message with the current user's user name | echo "Welcome $!" | AnishJoshi/nl2bash-custom |
<|im_start|>system
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 --fail-if-command-contains=$bad_string"<|im_end|>
<|im_start|>assistant
alias my_command="$oldal... | set alias "my_command" for command "$oldalias --fail-if-command-contains=$bad_string" | alias my_command="$oldalias --fail-if-command-contains=$bad_string" | AnishJoshi/nl2bash-custom |
<|im_start|>system
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 excluding files ending with 'gz', 'tmp' and 'xftp' in their names in the current directory tree and compress them with gzip not... | Find all files excluding files ending with 'gz', 'tmp' and 'xftp' in their names in the current directory tree and compress them with gzip not preserving timestamp and original name | find . -type f ! \ -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
Remove all files and directories under '/home/foo' directory tree that match with one of the name patterns '.DS_Store', '._.DS_Store' , '._*',... | Remove all files and directories under '/home/foo' directory tree that match with one of the name patterns '.DS_Store', '._.DS_Store' , '._*', '.TemporaryItems' or '.apdisk' | find /home/foo \ -exec 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
Find all files throughout the entire file hierarchy with the optional constraints of опция_поиска, значение and/or опция_действия.<|im_end|>
<... | Find all files throughout the entire file hierarchy with the optional constraints of опция_поиска, значение and/or опция_действия. | 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
List files under current directory which were modified, accessed or whose status were changed $FTIME ago and sort them and remove duplicate en... | List files under current directory which were modified, accessed or whose status were changed $FTIME ago and sort them and remove duplicate entries | | sort | uniq | AnishJoshi/nl2bash-custom |
<|im_start|>system
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 "te" for command 'tail -f /var/log/apache2/error_log | perl -ne '\''...'\'''<|im_end|>
<|im_start|>assistant
alias te='tail -f /var/... | set alias "te" for command 'tail -f /var/log/apache2/error_log | perl -ne '\''...'\''' | alias te='tail -f /var/log/apache2/error_log | perl -ne '\''...'\''' | AnishJoshi/nl2bash-custom |
<|im_start|>system
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 status | head -1 | cut -d ' ' -f 3<|im_end|... | Print git branch currently checked out in a working directory. | git status | head -1 | cut -d ' ' -f 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
Find all *.txt, *.html files under /basedir that match the case insensitive pattern *company* in their names<|im_end|>
<|im_start|>assistant
f... | Find all *.txt, *.html files under /basedir that match the case insensitive pattern *company* in their names | find /basedir/ \( -iname '*company*' -and \ \) -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
Print "This is a sentence." by replacing all consecutive space characters with a single newline character<|im_end|>
<|im_start|>assistant
echo... | Print "This is a sentence." by replacing all consecutive space characters with a single newline character | echo "This is a sentence." | tr -s " " "\012" | AnishJoshi/nl2bash-custom |
<|im_start|>system
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 which have been modified between two dates in current folder<|im_end|>
<|im_start|>assistant
find . -type f -newermt "2014-0... | display all files which have been modified between two dates in current folder | find . -type f -newermt "2014-01-01" ! -newermt "2014-06-01" | AnishJoshi/nl2bash-custom |
<|im_start|>system
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 names of the aliases<|im_end|>
<|im_start|>assistant
alias | awk '/^alias /{print substr($2,1,index-1)}'<|im_end|> | list all names of the aliases | alias | awk '/^alias /{print substr($2,1,index-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
set alias ":" for command 'xargs -I{}'<|im_end|>
<|im_start|>assistant
alias :='xargs -I{}'<|im_end|> | set alias ":" for command 'xargs -I{}' | alias :='xargs -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
Execute Shell script with find comamnd<|im_end|>
<|im_start|>assistant
find -maxdepth 0 -name "*.sh" -exec ./lastline.sh {} \;<|im_end|> | Execute Shell script with find comamnd | find -maxdepth 0 -name "*.sh" -exec ./lastline.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
Report file systems disk space usage pretty formatted.<|im_end|>
<|im_start|>assistant
df -Ph | perl -ne 'chomp; printf "\n%-40s %8s %8s %8s %... | Report file systems disk space usage pretty formatted. | df -Ph | perl -ne 'chomp; printf "\n%-40s %8s %8s %8s %8s %-20s", split / +/, $_, 6 ; ' | AnishJoshi/nl2bash-custom |
<|im_start|>system
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 longest word in a given list of words.<|im_end|>
<|im_start|>assistant
#!/bin/bash
words=("apple" "banana" "orang... | Create a script to find the longest word in a given list of words. | #!/bin/bash
words=("apple" "banana" "orange" "strawberry" "grape")
longest_word=""
for word in "${words[@]}"; do
if [ ${#word} -gt ${#longest_word} ]; then
longest_word="$word"
fi
done
echo "The longest word in the list is: $longest_word" | AnishJoshi/nl2bash-custom |
<|im_start|>system
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 file system which belong to the group lighttpd<|im_end|>
<|im_start|>assistant
find / -group lighttpd -print<|im_... | display all the files in the file system which belong to the group lighttpd | find / -group lighttpd -print | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Find all files/directories with '.c' or '.h' extension under current directory tree and search for the regex expanded by the variable $i and s... | Find all files/directories with '.c' or '.h' extension under current directory tree and search for the regex expanded by the variable $i and show the output by paging through one screenful at a time | find . -name '*.[ch]' -exec grep $i {} | 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 identical files in the HOME directory and subdirectories and tell if there are hard links<|im_end|>
<|im_start|>assistant
find $HOME ... | Find all identical files in the HOME directory and subdirectories and tell if there are hard links | find $HOME -type f | samefile -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
Convert relative symbolic link "$link" to absolute symbolic link<|im_end|>
<|im_start|>assistant
ln -sf "$" "$link"<|im_end|> | Convert relative symbolic link "$link" to absolute symbolic link | ln -sf "$" "$link" | AnishJoshi/nl2bash-custom |
<|im_start|>system
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 temporary directory and go into it.<|im_end|>
<|im_start|>assistant
tmpdir=$ && cd $tmpdir<|im_end|> | Create a temporary directory and go into it. | tmpdir=$ && cd $tmpdir | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Disables overwriting existing files<|im_end|>
<|im_start|>assistant
set -o noclobber<|im_end|> | Disables overwriting existing files | set -o noclobber | AnishJoshi/nl2bash-custom |
<|im_start|>system
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 in the current user's home directory and below for files that have not been accessed for more than 100 days and ask the user ... | Search for files in the current user's home directory and below for files that have not been accessed for more than 100 days and ask the user for permission to delete each file, one by one. | find ~/ -atime +100 -exec rm -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
Print "I am USER and the program named ls is in LS_PATH" where "USER" is the current user's user name and "LS_PATH" is the full path of the co... | Print "I am USER and the program named ls is in LS_PATH" where "USER" is the current user's user name and "LS_PATH" is the full path of the command "ls" | echo I am $ and the program named ls is in $. | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Print the base name of the current working directory<|im_end|>
<|im_start|>assistant
pwd | xargs basename<|im_end|> | Print the base name of the current working directory | pwd | xargs basename | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Create a script to monitor system root user service status and send an alert if any services are not running.<|im_end|>
<|im_start|>assistant
... | Create a script to monitor system root user service status and send an alert if any services are not running. | #!/bin/bash
services="ssh apache2 mysql"
for service in $services; do
if ! systemctl is-active --quiet $service; then
echo "Service $service is not running (root user)." | mail -s "Root Service Status 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
Kill a running screen session<|im_end|>
<|im_start|>assistant
screen -X -S SCREENID kill<|im_end|> | Kill a running screen session | screen -X -S SCREENID kill | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Locate all *.txt files in the current directory tree<|im_end|>
<|im_start|>assistant
find . -name '*.txt<|im_end|> | Locate all *.txt files in the current directory tree | find . -name '*.txt | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Find files with SGID and SUID permssions set in the file system<|im_end|>
<|im_start|>assistant
find / \ -ls<|im_end|> | Find files with SGID and SUID permssions set in the file system | find / \ -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
List detailed information about all Jar files in the current directory tree<|im_end|>
<|im_start|>assistant
find . -iname "*.jar" | xargs zipi... | List detailed information about all Jar files in the current directory tree | find . -iname "*.jar" | xargs zipinfo | AnishJoshi/nl2bash-custom |
<|im_start|>system
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 resize images in a directory to a specific resolution.<|im_end|>
<|im_start|>assistant
#!/bin/bash
resolution="800x600"
fo... | Create a script to resize images in a directory to a specific resolution. | #!/bin/bash
resolution="800x600"
for file in *.jpg; do
convert "$file" -resize "$resolution" "$file"
done
echo "Images resized to $resolution." | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Create a script that monitors system CPU usage by user and alerts if any user exceeds a certain threshold.<|im_end|>
<|im_start|>assistant
#!/... | Create a script that monitors system CPU usage by user and alerts if any user exceeds a certain threshold. | #!/bin/bash
threshold=50
while true; do
ps -eo user,%cpu | awk '{sum[$1]+=$2}; END {for (i in sum) if (sum[i] > "$threshold") print i, sum[i]}'
sleep 3600
done | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Count the number of times that a single "-----------\n" separated record contains both "A=2" and "dummy=2" and the number of records that do n... | Count the number of times that a single "-----------\n" separated record contains both "A=2" and "dummy=2" and the number of records that do not have "dummy=2" in compressed file "file.gz" | zcat file.gz | awk -v RS="-----------\n" '/A=2[ ,\n]/ && /dummy=2[ ,\n]/{count++} !/dummy=2[ ,\n]/{other++} END{print "Final counter value=",count, "; other=", other}' | AnishJoshi/nl2bash-custom |
<|im_start|>system
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 user name in all capitals of the current user to variable "v"<|im_end|>
<|im_start|>assistant
v=$(whoami | awk '{print toupper($0)}')... | Save the user name in all capitals of the current user to variable "v" | v=$(whoami | awk '{print toupper($0)}') | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
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 != "" && n < 10 {print; n++}' {} \; | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Find all *.sql files in maximum 1 level down the current directory, process it with sed and then send the output to a mysql command<|im_end|>
... | Find all *.sql files in maximum 1 level down the current directory, process it with sed and then send the output to a mysql command | find -maxdepth 1 -name '*.sql' -exec sed -e 's/ , );/1,1);/g' '{}' | mysql -D ootp | AnishJoshi/nl2bash-custom |
<|im_start|>system
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 usage by user and alerts if any user exceeds a certain threshold.<|im_end|>
<|im_start|>assistant... | Create a script that monitors system network usage by user and alerts if any user exceeds a certain threshold. | #!/bin/bash
threshold=50M
while true; do
sar -n DEV 1 1 | grep -w '.*[0-9]' | awk '$NF > "$threshold" {print $1, $NF}'
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
Prints days since epoch<|im_end|>
<|im_start|>assistant
echo `date +%s`/86400 | bc<|im_end|> | Prints days since epoch | echo `date +%s`/86400 | bc | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Synchronize "dir_a" and "dir_b" to contain the latest files in both directories<|im_end|>
<|im_start|>assistant
rsync -urv --progress dir_a di... | Synchronize "dir_a" and "dir_b" to contain the latest files in both directories | rsync -urv --progress dir_a dir_b && rsync -urv --progress dir_b dir_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
Create a script to monitor system kernel version and send an alert if it's outdated.<|im_end|>
<|im_start|>assistant
#!/bin/bash
kernel_versi... | Create a script to monitor system kernel version and send an alert if it's outdated. | #!/bin/bash
kernel_version=$(uname -r)
latest_kernel_version=$(apt-cache policy linux-generic | grep 'Installed' | awk '{print $2}')
if [ "$kernel_version" != "$latest_kernel_version" ]; then
echo "System kernel is outdated."
# Send alert here
fi | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Find all files on smbfs mounts and print its information and file type<|im_end|>
<|im_start|>assistant
find $ -mount -type f -ls -execdir file... | Find all files on smbfs mounts and print its information and file type | find $ -mount -type f -ls -execdir file {} \; | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Execute "bash -c 'python -m unittest discover |& pyrg'" in a shell with color support every second<|im_end|>
<|im_start|>assistant
watch -n 1 ... | Execute "bash -c 'python -m unittest discover |& pyrg'" in a shell with color support every second | watch -n 1 --color --exec bash -c 'python -m unittest discover |& pyrg' | AnishJoshi/nl2bash-custom |
<|im_start|>system
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 the status of a specific website every 30 seconds for 5 minutes and log the results to a file.<|im_end|>
<|im_start|>assistant
#!/bin/ba... | Check the status of a specific website every 30 seconds for 5 minutes and log the results to a file. | #!/bin/bash
for ((i=0; i<10; i++)); do
curl -s -o /dev/null -w "%{http_code}" http://example.com >> website_status.log
sleep 30
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 under current directory tree that contain '1' or 'k' in their names<|im_end|>
<|im_start|>assistant
find . -name "*... | Find all files/directories under current directory tree that contain '1' or 'k' in their names | find . -name "*[1k]*" | AnishJoshi/nl2bash-custom |
<|im_start|>system
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 that belong to user root<|im_end|>
<|im_start|>assistant
find / -user root<|im_end|> | Find all files that belong to user root | find / -user root | AnishJoshi/nl2bash-custom |
<|im_start|>system
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 is defined in the current tmux session environment<|im_end|>
<|im_start|>assistant
tmux show-environment | grep RBENV<|im_end|> | Check if RBENV is defined in the current tmux session environment | tmux show-environment | 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
Always answer "no" to any prompt from "<command>"<|im_end|>
<|im_start|>assistant
yes no | <command><|im_end|> | Always answer "no" to any prompt from "<command>" | yes no | <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
Recursively find files in the current directory with a modification time more than 7 days ago, save the filenames to "compressedP.list", and c... | Recursively find files in the current directory with a modification time more than 7 days ago, save the filenames to "compressedP.list", and compress each file in parallel | find . -type f -mtime +7 | tee compressedP.list | parallel compress | AnishJoshi/nl2bash-custom |
<|im_start|>system
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 .html files to .txt in a portable way without requiring the "rename" perl script.<|im_end|>
<|im_start|>assistant
for file in *.ht... | Rename all .html files to .txt in a portable way without requiring the "rename" perl script. | for file in *.html; do mv "$file" "${file%.html}.txt"; 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 login sessions and send an alert if any abnormal sessions are detected.<|im_end|>
<|im_start|>assistant
#!/b... | Create a script to monitor system login sessions and send an alert if any abnormal sessions are detected. | #!/bin/bash
abnormal_sessions=$(who | awk '{print $1}' | sort | uniq -c | sort -n | tail -5)
if [ -n "$abnormal_sessions" ]; then
echo "Abnormal login sessions 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
Find all directories named "D" in the current directory tree<|im_end|>
<|im_start|>assistant
find ./ -type d -name 'D'<|im_end|> | Find all directories named "D" in the current directory tree | find ./ -type d -name 'D' | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Find all files/directories in current directory and execute multiple commands for each file/directory<|im_end|>
<|im_start|>assistant
find . ... | Find all files/directories in current directory and execute multiple commands for each file/directory | find . -exec bash -c 'cmd1; cmd2' filedumper {} \; | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
run script /PATH/TO/MY_APP as user USER_FOOBAR in background<|im_end|>
<|im_start|>assistant
su - USER_FOOBAR -c /PATH/TO/MY_APP &<|im_end|> | run script /PATH/TO/MY_APP as user USER_FOOBAR in background | su - USER_FOOBAR -c /PATH/TO/MY_APP & | AnishJoshi/nl2bash-custom |
<|im_start|>system
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 users sorted by their login times in reverse order.<|im_end|>
<|im_start|>assistant
#!/bin/bash
last | awk '{print $1, $NF}... | Print the list of users sorted by their login times in reverse order. | #!/bin/bash
last | awk '{print $1, $NF}' | sort -k 2 -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
Remove sequence like '\xEF\xBB\xBF' from first string of every file in a current folder and subfolders, creating backup file with .bak extensi... | Remove sequence like '\xEF\xBB\xBF' from first string of every file in a current folder and subfolders, creating backup file with .bak extension for every changed file, and removing backup on success. | find . -type f -exec sed '1s/^\xEF\xBB\xBF//' -i.bak {} \; -exec rm {}.bak \; | AnishJoshi/nl2bash-custom |
<|im_start|>system
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 merge two arrays.<|im_end|>
<|im_start|>assistant
#!/bin/bash
merge_arrays() {
arr1=(1 2 3)
arr2=(4 5 6)
merge... | Create a script to merge two arrays. | #!/bin/bash
merge_arrays() {
arr1=(1 2 3)
arr2=(4 5 6)
merged_arr=(${arr1[@]} ${arr2[@]})
echo "Merged array: ${merged_arr[@]}"
}
merge_arrays | AnishJoshi/nl2bash-custom |
<|im_start|>system
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 newer than main.css in ~/src<|im_end|>
<|im_start|>assistant
find ~/src -newer main.css<|im_end|> | Find files newer than main.css in ~/src | find ~/src -newer main.css | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Print the list of files in a directory with their sizes and last access times sorted by size and last access time in reverse order.<|im_end|>
... | Print the list of files in a directory with their sizes and last access times sorted by size and last access time in reverse order. | #!/bin/bash
ls -l --time-style=long-iso /path/to/your/directory | awk '{print $5, $6, $7, $8, $9}' | sort -k 5,5nr -k 4,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
Print the full path of a file under the current working directory with inode number specified on standard input<|im_end|>
<|im_start|>assistan... | Print the full path of a file under the current working directory with inode number specified on standard input | xargs -n 1 -I '{}' find "$(pwd)" -type f -inum '{}' -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
Send SIGTERM signal to any process which 'ps' lists as "python csp_build.py"<|im_end|>
<|im_start|>assistant
ps aux | awk '$11" "$12 == "pytho... | Send SIGTERM signal to any process which 'ps' lists as "python csp_build.py" | ps aux | awk '$11" "$12 == "python csp_build.py" { system }' | AnishJoshi/nl2bash-custom |
<|im_start|>system
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 errors, drops, FIFO errors, collisions, and TCP retransmission rate and alerts if any i... | Create a script that monitors system network interface errors, drops, FIFO errors, collisions, and TCP retransmission rate and alerts if any interface exceeds a certain threshold. | #!/bin/bash
threshold=10
while true; do
sar -n EDEV 1 1 | grep -w '.*[0-9]' | awk '$NF > "$threshold" {print $1, $NF}'
sar -n SOCK 1 1 | grep -w '.*[0-9]' | awk '$NF > "$threshold" {print $1, $NF}'
sar -n COLL 1 1 | grep -w '.*[0-9]' | awk '$NF > "$threshold" {print $1, $NF}'
netstat -s | grep 'retran... | AnishJoshi/nl2bash-custom |
<|im_start|>system
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 checksum of $KEY, take the 1st to 10th character, append them with the string '/tmp/command_cache.' and save the rsultant string... | Calculate md5 checksum of $KEY, take the 1st to 10th character, append them with the string '/tmp/command_cache.' and save the rsultant string to variable FILE | FILE="/tmp/command_cache.`echo -n "$KEY" | md5sum | cut -c -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
Finds binaries names in a list of running processes and prints containing folder of first 10 binaries.<|im_end|>
<|im_start|>assistant
ps aux ... | Finds binaries names in a list of running processes and prints containing folder of first 10 binaries. | ps aux | awk '{print $11}' | grep -x -e "/.*" | xargs dirname | head | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Create a script to find the factorial of a given number using recursion.<|im_end|>
<|im_start|>assistant
#!/bin/bash
factorial() {
num="$... | Create a script to find the factorial of a given number using recursion. | #!/bin/bash
factorial() {
num="$1"
if [ "$num" -eq 0 ]; then
echo 1
else
echo $((num * $(factorial $((num - 1)))))
fi
}
num=5
echo "The factorial of $num is: $(factorial $num)" | AnishJoshi/nl2bash-custom |
<|im_start|>system
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 "1" and write output to standard output and file "${LOG_FILE}"<|im_end|>
<|im_start|>assistant
exec 1 | tee ${LOG_FILE}<|im_end|> | Execute "1" and write output to standard output and file "${LOG_FILE}" | exec 1 | tee ${LOG_FILE} | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
find all jar files in current folder and search for a file in all these jar's and display the jar names along with searched file<|im_end|>
<|i... | find all jar files in current folder and search for a file in all these jar's and display the jar names along with searched file | find . -name "*.jar" -print -exec jar -tf {} \;|egrep "jar$|message_track.properties" | AnishJoshi/nl2bash-custom |
<|im_start|>system
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 'foo' file.<|im_end|>
<|im_start|>assistant
rm foo<|im_end|> | Removes 'foo' file. | rm foo | AnishJoshi/nl2bash-custom |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.