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
Print absolute path of java executable<|im_end|>
<|im_start|>assistant
readlink -f $<|im_end|> | Print absolute path of java executable | readlink -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
Create a script that monitors the system process count every 5 seconds for 1 minute and alerts if it exceeds a certain threshold.<|im_end|>
<|... | Create a script that monitors the system process count every 5 seconds for 1 minute and alerts if it exceeds a certain threshold. | #!/bin/bash
threshold=100
for ((i=0; i<12; i++)); do
process_count=$(ps -e | wc -l)
if (( $process_count > $threshold )); then
echo "High process count: $process_count"
fi
sleep 5
done | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Find all files under current directory whose file type description contains "image", display only path to each file.<|im_end|>
<|im_start|>ass... | Find all files under current directory whose file type description contains "image", display only path to each file. | find . -type f -exec file {} \; | awk -F: '{if ($2 ~/image/) 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
Monitor system file system mounts and disk space usage every 10 seconds for 1 minute and display the results.<|im_end|>
<|im_start|>assistant
... | Monitor system file system mounts and disk space usage every 10 seconds for 1 minute and display the results. | #!/bin/bash
for ((i=0; i<6; i++)); do
df -h >> disk_space_and_mounts.log
mount >> disk_space_and_mounts.log
sleep 10
done | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Save absolute path of the script filename in variable "SCRIPT"<|im_end|>
<|im_start|>assistant
SCRIPT="$(readlink --canonicalize-existing "$0"... | Save absolute path of the script filename in variable "SCRIPT" | SCRIPT="$(readlink --canonicalize-existing "$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
display all the header files and cpp files in the current folder<|im_end|>
<|im_start|>assistant
find . -regex '.*\.\'<|im_end|> | display all the header files and cpp files in the current folder | find . -regex '.*\.\' | AnishJoshi/nl2bash-custom |
<|im_start|>system
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 a CSV file as a formatted table<|im_end|>
<|im_start|>assistant
sed 's/^,/ ,/' test2.csv | tr -d \" | column -s, -t<|im_end|> | Output a CSV file as a formatted table | sed 's/^,/ ,/' test2.csv | tr -d \" | column -s, -t | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
set alisa "12np" for command 'ssh mydomain\\stephencheng@userxyz@host.com'<|im_end|>
<|im_start|>assistant
alias 12np='ssh mydomain\\stephench... | set alisa "12np" for command 'ssh mydomain\\stephencheng@userxyz@host.com' | alias 12np='ssh mydomain\\stephencheng@userxyz@host.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
Save the list of directories modified a fortnight ago to `deploy.txt' removing the leading ./ from the file names<|im_end|>
<|im_start|>assist... | Save the list of directories modified a fortnight ago to `deploy.txt' removing the leading ./ from the file names | find . -type d -mtime 14 | sed -e 's,^\./,,' > deploy.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
replace a word in all the regular/normal files in the current folder<|im_end|>
<|im_start|>assistant
find . -type f -print0 | xargs -0 sed -i ... | replace a word in all the regular/normal files in the current folder | find . -type f -print0 | xargs -0 sed -i 's/Application/whatever/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 JPG files under the "$SOURCE" directory and below<|im_end|>
<|im_start|>assistant
find "$SOURCE" -type f -iname '*.jpg'<|im_end|> | Find all JPG files under the "$SOURCE" directory and below | find "$SOURCE" -type f -iname '*.jpg' | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Interpret /etc/bashrc in the current shell, ignoring lines that contain "mesg".<|im_end|>
<|im_start|>assistant
source <(grep -v "mesg" /etc/b... | Interpret /etc/bashrc in the current shell, ignoring lines that contain "mesg". | source <(grep -v "mesg" /etc/bashrc) | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
delete all the ".bak" or swap files in kat folder<|im_end|>
<|im_start|>assistant
find kat -type f \ -delete<|im_end|> | delete all the ".bak" or swap files in kat folder | find kat -type f \ -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 specific file exists and is a FIFO (named pipe).<|im_end|>
<|im_start|>assistant
#!/bin/bash
file="/path/to/file"
if [ -p "$file"... | Check if a specific file exists and is a FIFO (named pipe). | #!/bin/bash
file="/path/to/file"
if [ -p "$file" ]; then
echo "$file exists and is a FIFO"
else
echo "$file does not exist or is not a FIFO"
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 the day of last Friday in a current month.<|im_end|>
<|im_start|>assistant
cal | awk '$6{date=$6}END{print date}'<|im_end|> | Prints the day of last Friday in a current month. | cal | awk '$6{date=$6}END{print date}' | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Find all files/directories under current directory tree whose paths match the pattern '*ACK*1' (case insensitive)<|im_end|>
<|im_start|>assis... | Find all files/directories under current directory tree whose paths match the pattern '*ACK*1' (case insensitive) | find . -iwholename "*ACK*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
Calculate the number of bytes of all the files listed in "files.txt"<|im_end|>
<|im_start|>assistant
<files.txt xargs stat -c %s | paste -sd+... | Calculate the number of bytes of all the files listed in "files.txt" | <files.txt xargs stat -c %s | 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
Search in current directory downwards all files whose owner is aa1 and grop is grp .<|im_end|>
<|im_start|>assistant
find . \ -print<|im_end|... | Search in current directory downwards all files whose owner is aa1 and grop is grp . | find . \ -print | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
search for the file "foobar.txt" in the folder "/home/mywebsite"<|im_end|>
<|im_start|>assistant
find /home/mywebsite -type f -name "foobar.tx... | search for the file "foobar.txt" in the folder "/home/mywebsite" | find /home/mywebsite -type f -name "foobar.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
Make a POST request to "http://dweet.io/dweet/for/cycy42" with data "PiIP" set to the IP address of the system<|im_end|>
<|im_start|>assistant... | Make a POST request to "http://dweet.io/dweet/for/cycy42" with data "PiIP" set to the IP address of the system | wget --post-data="PiIP=$" http://dweet.io/dweet/for/cycy42 | AnishJoshi/nl2bash-custom |
<|im_start|>system
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 parent directories as needed of "$1" with "\r" removed<|im_end|>
<|im_start|>assistant
mkdir -p $(echo -e $1 |sed $'s/\r/... | Make directories and parent directories as needed of "$1" with "\r" removed | mkdir -p $(echo -e $1 |sed $'s/\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
Removes empty folder 'symlink'.<|im_end|>
<|im_start|>assistant
rm -d symlink<|im_end|> | Removes empty folder 'symlink'. | rm -d symlink | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Delete characters in columns 36 through 40 from the output of "finger"<|im_end|>
<|im_start|>assistant
finger | sed 's/\(.\{35\}\)...../\1/'<... | Delete characters in columns 36 through 40 from the output of "finger" | finger | sed 's/\(.\{35\}\)...../\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 .log files from the current directory tree<|im_end|>
<|im_start|>assistant
find . -name "*.log" -exec echo {} \;<|im_end|> | List .log files from the current directory tree | find . -name "*.log" -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
Returns exit status 0.<|im_end|>
<|im_start|>assistant
foo=$(false)$(true)<|im_end|> | Returns exit status 0. | foo=$(false)$(true) | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Print common characters in variable "$a" and "$b"<|im_end|>
<|im_start|>assistant
comm -12 <(echo $a|awk -F"\0" '{for (i=1; i<=NF; i++) print ... | Print common characters in variable "$a" and "$b" | comm -12 <(echo $a|awk -F"\0" '{for (i=1; i<=NF; i++) print $i}') <(echo $b|awk -F"\0" '{for (i=1; i<=NF; i++) print $i}')|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
Save number of lines with any-cased 'merge' from $COMMIT_EDITMSG file in 'MERGE' variable<|im_end|>
<|im_start|>assistant
MERGE=$<|im_end|> | Save number of lines with any-cased 'merge' from $COMMIT_EDITMSG file in 'MERGE' variable | MERGE=$ | AnishJoshi/nl2bash-custom |
<|im_start|>system
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 error, access, ssl_engine and rewrite logs which are bigger than 300MB and are less then 5GB in the folder /opt<|im_end|>
<|im_st... | find all the error, access, ssl_engine and rewrite logs which are bigger than 300MB and are less then 5GB in the folder /opt | find /opt \ -size +300000k -a -size -5000000k | AnishJoshi/nl2bash-custom |
<|im_start|>system
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 that contain the string literal '`$VERSION`' in their names under current directory tree<|im_end|>
<|im_start|>assi... | Find all files/directories that contain the string literal '`$VERSION`' in their names under current directory tree | find . -name '*`$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
Convert Unix `cal` output to latex table code.<|im_end|>
<|im_start|>assistant
cal | sed '1d;2{h;s/./ /g;x};/^\s*$/b;G;s/\n/ /;s/^...\(.\{15\}... | Convert Unix `cal` output to latex table code. | cal | sed '1d;2{h;s/./ /g;x};/^\s*$/b;G;s/\n/ /;s/^...\(.\{15\}\).*/\1/;s/.../ &\t\&/g;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
Print the path to all *.so files under current directory and search for mysymbol in their symbol tables<|im_end|>
<|im_start|>assistant
find .... | Print the path to all *.so files under current directory and search for mysymbol in their symbol tables | find . -type f -print -exec sh -c "readelf -s {} | grep mysymbol" \; | AnishJoshi/nl2bash-custom |
<|im_start|>system
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 counts non-blank lines in all files in a current folder, that match regex '\.php|\.as|\.sql|\.css|\.js', but skip folders './pma',... | Recursively counts non-blank lines in all files in a current folder, that match regex '\.php|\.as|\.sql|\.css|\.js', but skip folders './pma', './blog', './punbb', './js/3rdparty' and files like '*.svn'. | find . -path './pma' -prune -o -path './blog' -prune -o -path './punbb' -prune -o -path './js/3rdparty' -prune -o -print | egrep '\.php|\.as|\.sql|\.css|\.js' | grep -v '\.svn' | xargs cat | sed '/^\s*$/d' | 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
Gets MAC address of p2p0 network interface.<|im_end|>
<|im_start|>assistant
ifconfig p2p0 | grep -o -E '{5}[[:xdigit:]]{1,2}'<|im_end|> | Gets MAC address of p2p0 network interface. | ifconfig p2p0 | grep -o -E '{5}[[:xdigit:]]{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
Create 6-letter named temporary directory in a folder path that is provided as the first positional parameter, and save the path to it in a va... | Create 6-letter named temporary directory in a folder path that is provided as the first positional parameter, and save the path to it in a variable 'tmp' | tmp=$(mktemp -d $/XXXXXX) | AnishJoshi/nl2bash-custom |
<|im_start|>system
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 drops and alerts if any interface exceeds a certain threshold.<|im_end|>
<|im_start|>as... | Create a script that monitors system network interface drops 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-1) > "$threshold" {print $1, $(NF-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 all *.log files under $sourcePath that were modified more than 10 days ago to a zip archive $zipFile with only file names<|im_end|>
<|im_... | Move all *.log files under $sourcePath that were modified more than 10 days ago to a zip archive $zipFile with only file names | find $sourcePath -type f -mtime +10 -name "*.log" | xargs zip -jmT $zipFile -@ | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Change to folder where the oracle binary is.<|im_end|>
<|im_start|>assistant
cd "$(dirname "$")"<|im_end|> | Change to folder where the oracle binary is. | cd "$(dirname "$")" | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
search all jpg images in current folder and rename them<|im_end|>
<|im_start|>assistant
find . -type f -name "*.jpg" -print0 | xargs -0 rename... | search all jpg images in current folder and rename them | find . -type f -name "*.jpg" -print0 | xargs -0 rename "s/Image_200x200_(\d{3})/img/" | AnishJoshi/nl2bash-custom |
<|im_start|>system
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 user and group information of all users logged in<|im_end|>
<|im_start|>assistant
who | awk '{print $1}' | xargs -n 1 id<|im_end|> | Print user and group information of all users logged in | who | awk '{print $1}' | xargs -n 1 id | AnishJoshi/nl2bash-custom |
<|im_start|>system
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 MySQL server status and send an alert if the server is down.<|im_end|>
<|im_start|>assistant
#!/bin/bash
mysql_sta... | Create a script to monitor MySQL server status and send an alert if the server is down. | #!/bin/bash
mysql_status=$(systemctl is-active --quiet mysql)
if [ "$mysql_status" != "active" ]; then
echo "MySQL server is down."
# Send alert here
fi | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Create a script to monitor system SSH access and send an alert if there are any unauthorized login attempts.<|im_end|>
<|im_start|>assistant
#... | Create a script to monitor system SSH access and send an alert if there are any unauthorized login attempts. | #!/bin/bash
unauthorized_access=$(grep -i 'Invalid user' /var/log/auth.log | wc -l)
if [ "$unauthorized_access" -gt 0 ]; then
echo "Unauthorized SSH access detected."
# Send alert here
fi | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Check if a specific directory exists and has the correct permissions.<|im_end|>
<|im_start|>assistant
#!/bin/bash
directory="/path/to/directo... | Check if a specific directory exists and has the correct permissions. | #!/bin/bash
directory="/path/to/directory"
permissions="755"
if [ -d "$directory" ] && [ $(stat -c %a "$directory") == "$permissions" ]; then
echo "Directory exists with correct permissions"
else
echo "Directory does not exist or has incorrect permissions"
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 in and below all subdirectories of the current directory<|im_end|>
<|im_start|>assistant
find . -mindepth 2<|im_end|> | Find all files in and below all subdirectories of the current directory | find . -mindepth 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 symbolic link in the current directory to "$file"<|im_end|>
<|im_start|>assistant
ln -s "$file"<|im_end|> | Create a symbolic link in the current directory to "$file" | ln -s "$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
Merge lines from "file_1" and "file_2" and format the output as a table with tab separators<|im_end|>
<|im_start|>assistant
paste file_1 file_... | Merge lines from "file_1" and "file_2" and format the output as a table with tab separators | paste file_1 file_2 | column -s $'\t' -t | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Create a script to monitor file system changes and send an alert if any changes are detected.<|im_end|>
<|im_start|>assistant
#!/bin/bash
if ... | Create a script to monitor file system changes and send an alert if any changes are detected. | #!/bin/bash
if [ "$(find /var/log -mmin -5)" ]; then
echo "File system changes detected in /var/log directory." | mail -s "File System Changes 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
run command "${OBJECTDB_HOME}/bin/objectdb.sh start" $JAVA_USER" as user $JAVA_USER<|im_end|>
<|im_start|>assistant
su --session-command="${OB... | run command "${OBJECTDB_HOME}/bin/objectdb.sh start" $JAVA_USER" as user $JAVA_USER | su --session-command="${OBJECTDB_HOME}/bin/objectdb.sh start" $JAVA_USER | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Move all files and directories in the current directory to "/foo"<|im_end|>
<|im_start|>assistant
mv `ls` /foo<|im_end|> | Move all files and directories in the current directory to "/foo" | mv `ls` /foo | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Check if a string is alphanumeric.<|im_end|>
<|im_start|>assistant
#!/bin/bash
string="your123string"
if [[ "$string" =~ ^[[:alnum:]]+$ ]]; ... | Check if a string is alphanumeric. | #!/bin/bash
string="your123string"
if [[ "$string" =~ ^[[:alnum:]]+$ ]]; then
echo "$string is alphanumeric"
else
echo "$string is not alphanumeric"
fi | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Monitor system swap space usage every 10 seconds for 1 minute and display the results.<|im_end|>
<|im_start|>assistant
#!/bin/bash
for ((i=0;... | Monitor system swap space usage every 10 seconds for 1 minute and display the results. | #!/bin/bash
for ((i=0; i<6; i++)); do
sar -S 10 6
sleep 10
done | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Print output of "qstat" with full job names and format as a table<|im_end|>
<|im_start|>assistant
qstat -xml | tr '\n' ' ' | sed 's#<job_list[... | Print output of "qstat" with full job names and format as a table | qstat -xml | tr '\n' ' ' | sed 's#<job_list[^>]*>#\n#g' \ | sed 's#<[^>]*>##g' | grep " " | column -t | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Print list of bash command aliases.<|im_end|>
<|im_start|>assistant
alias -p | cut -d= -f1 | cut -d' ' -f2<|im_end|> | Print list of bash command aliases. | alias -p | cut -d= -f1 | cut -d' ' -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
find all the java script files in a folder and give them as input to a jar<|im_end|>
<|im_start|>assistant
find ./js/ -type f -name "*.js" -ex... | find all the java script files in a folder and give them as input to a jar | find ./js/ -type f -name "*.js" -exec java -jar compiler.jar --compilation_level SIMPLE_OPTIMIZATIONS --js '{}' --js_output_file '{}'.compiled \; | AnishJoshi/nl2bash-custom |
<|im_start|>system
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 *.gz files under asia and emea directory and print their names and line counts to file_count.txt<|im_end|>
<|im_start|>assistant
for ... | Find all *.gz files under asia and emea directory and print their names and line counts to file_count.txt | for file in $; do echo -n $; gunzip -c $file |wc -l; done >> file_count.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
Update 'openssl' package to '2013.09' version.<|im_end|>
<|im_start|>assistant
sudo yum --releasever=2013.09 update openssl<|im_end|> | Update 'openssl' package to '2013.09' version. | sudo yum --releasever=2013.09 update openssl | AnishJoshi/nl2bash-custom |
<|im_start|>system
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 package is installed and remove it if it is.<|im_end|>
<|im_start|>assistant
#!/bin/bash
package_name="package_name"
if ... | Check if a specific package is installed and remove it if it is. | #!/bin/bash
package_name="package_name"
if dpkg -l | grep -q $package_name; then
apt-get remove --purge $package_name -y
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 *shp* directories under current directory and move all regular files inside those directories to ../shp_all/<|im_end|>
<|im_start|>as... | Find all *shp* directories under current directory and move all regular files inside those directories to ../shp_all/ | mv $(find $ -type f) ../shp_all/ | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Create a script to monitor system process network I/O and send an alert if any process exceeds a certain threshold.<|im_end|>
<|im_start|>assi... | Create a script to monitor system process network I/O and send an alert if any process exceeds a certain threshold. | #!/bin/bash
threshold=1000
process_io=$(iftop -t -s 1 | grep '=>' | awk '{print $3}')
if [ "$process_io" -gt "$threshold" ]; then
echo "Process network I/O exceeds $threshold KB/s."
# Send alert here
fi | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Create a script to monitor system root user LDAP authentication status and send an alert if LDAP authentication fails.<|im_end|>
<|im_start|>a... | Create a script to monitor system root user LDAP authentication status and send an alert if LDAP authentication fails. | #!/bin/bash
if grep -qiE 'authentication failure' /var/log/auth.log; then
echo "LDAP authentication failure detected for root user." | mail -s "Root LDAP Authentication 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
Remove all regular files with extensions php, css, ini, txt from directory tree /old/WordPress/<|im_end|>
<|im_start|>assistant
find /old/Word... | Remove all regular files with extensions php, css, ini, txt from directory tree /old/WordPress/ | find /old/WordPress/ -type f -regex ".*\.\" -exec rm {} \; | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Create a script to monitor system root user cron jobs and send an alert if any unauthorized cron jobs are found.<|im_end|>
<|im_start|>assista... | Create a script to monitor system root user cron jobs and send an alert if any unauthorized cron jobs are found. | #!/bin/bash
unauthorized_cron_jobs="$(crontab -l -u root | tail -n 5)"
if [ -n "$unauthorized_cron_jobs" ]; then
echo "Unauthorized cron jobs found for root user: $unauthorized_cron_jobs" | mail -s "Root Unauthorized Cron Jobs 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
Archive "/path/to/copy" on host "remote" as user "user" to "/local/path" via ssh on port "$portNumber"<|im_end|>
<|im_start|>assistant
rsync -... | Archive "/path/to/copy" on host "remote" as user "user" to "/local/path" via ssh on port "$portNumber" | rsync -avz -e "ssh -p $portNumber" user@remote.host:/path/to/copy /local/path | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
find all the files ending with ".mkv" in a folder and send them as an argument to a shell script<|im_end|>
<|im_start|>assistant
find /volume1... | find all the files ending with ".mkv" in a folder and send them as an argument to a shell script | find /volume1/uploads -name "*.mkv" -exec /tmp/rename.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 *text files/directories under current directory<|im_end|>
<|im_start|>assistant
find -name "*text"<|im_end|> | Find all *text files/directories under current directory | find -name "*text" | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Find all *.jpg files in Cam2/2013* paths and send the contents to a ffmpeg command to create a video file<|im_end|>
<|im_start|>assistant
find... | Find all *.jpg files in Cam2/2013* paths and send the contents to a ffmpeg command to create a video file | find Cam2/2013* -name "*.jpg" -print0 | xargs -0 cat | ffmpeg -f image2pipe -framerate 30 -vcodec mjpeg -i - -vcodec libx264 -profile:v baseline -level 3.0 -movflags +faststart -crf 19 -pix_fmt yuv420p -r 30 "Cam2-2013-30fps-19crf.mp4" | AnishJoshi/nl2bash-custom |
<|im_start|>system
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 total number of lines that are present in all the normal/regular files<|im_end|>
<|im_start|>assistant
find . -type f -exec wc -l {}... | count the total number of lines that are present in all the normal/regular files | find . -type f -exec wc -l {} \; | awk '{total += $1} END{print total}' | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Replace the spaces after line number in the output of history with ".."<|im_end|>
<|im_start|>assistant
history | sed 's/^\ */\1../'<|im_end|> | Replace the spaces after line number in the output of history with ".." | history | sed 's/^\ */\1../' | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Print each logged in user's full name<|im_end|>
<|im_start|>assistant
finger | awk 'NR>1{print $2,$3}'<|im_end|> | Print each logged in user's full name | finger | awk 'NR>1{print $2,$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
Get domain "$domain" IP address<|im_end|>
<|im_start|>assistant
dig +short "$domain"<|im_end|> | Get domain "$domain" IP address | dig +short "$domain" | AnishJoshi/nl2bash-custom |
<|im_start|>system
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 systemd mount unit status and send an alert if any mount units are not active.<|im_end|>
<|im_star... | Create a script to monitor system root user systemd mount unit status and send an alert if any mount units are not active. | #!/bin/bash
mount_units="home.mount var.mount usr.mount"
for unit in $mount_units; do
if ! systemctl is-active --quiet $unit; then
echo "Mount unit $unit is not active (root user)." | mail -s "Root Mount Unit 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
Find all *.zip files under current directory and unzip them in the same directory as the files<|im_end|>
<|im_start|>assistant
find . -name '*... | Find all *.zip files under current directory and unzip them in the same directory as the files | find . -name '*.zip' -exec sh -c 'unzip -d "`dirname \"{}\"`" "{}"' ';' | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Fetches the newest version of Homebrew and all formulae from GitHub and perform any necessary migrations.<|im_end|>
<|im_start|>assistant
brew... | Fetches the newest version of Homebrew and all formulae from GitHub and perform any necessary migrations. | brew update | AnishJoshi/nl2bash-custom |
<|im_start|>system
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 filename.sh as root with preserved user environment<|im_end|>
<|im_start|>assistant
su -cp filename.sh<|im_end|> | run script filename.sh as root with preserved user environment | su -cp filename.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
run script "runProgram.sh" as user jetty<|im_end|>
<|im_start|>assistant
su - jetty ./runprogram.sh<|im_end|> | run script "runProgram.sh" as user jetty | su - jetty ./runprogram.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
Gets MAC address of 'eth0' network interface.<|im_end|>
<|im_start|>assistant
ifconfig eth0 | grep -o -E '{5}[[:xdigit:]]{1,2}'<|im_end|> | Gets MAC address of 'eth0' network interface. | ifconfig eth0 | grep -o -E '{5}[[:xdigit:]]{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
Creates temporary file in a TMPDIR folder with name like tmp.XXXXXXXXXX.<|im_end|>
<|im_start|>assistant
mktemp<|im_end|> | Creates temporary file in a TMPDIR folder with name like tmp.XXXXXXXXXX. | mktemp | AnishJoshi/nl2bash-custom |
<|im_start|>system
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 and replace CRLF with LF in all files under current directory ignoring .git and .svn directories<|im_end|>
<|im_s... | Remove trailing white spaces and replace CRLF with LF in all files under current directory ignoring .git and .svn directories | find . -not \( -name .svn -prune -o -name .git -prune \) -type f -exec sed -i 's/[:space:]+$//' \{} \; -exec sed -i 's/\r\n$/\n/' \{} \; | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Print the cp commands that would be required to copy all *.data files under /source_path to /target_path by appending the parent directory nam... | Print the cp commands that would be required to copy all *.data files under /source_path to /target_path by appending the parent directory names in the source paths to the beginning of each of the target file names | find /source_path -name \*.data | while read -r filename; do printf "print version: cp %s %s\n" "${filename}" "$(printf "%s\n" "${filename}" | sed "s/^.*[/]\[/]\$/\/target_path\/\1_\2/")"; done | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Create a script to find the sum of cubes of first n natural numbers.<|im_end|>
<|im_start|>assistant
#!/bin/bash
sum_of_cubes() {
n="$1"
... | Create a script to find the sum of cubes of first n natural numbers. | #!/bin/bash
sum_of_cubes() {
n="$1"
sum=$((n * (n + 1) / 2))
sum=$((sum * sum))
echo "$sum"
}
sum_of_cubes 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
Search for a specific pattern in files within a directory.<|im_end|>
<|im_start|>assistant
#!/bin/bash
directory="/path/to/your/directory"
pa... | Search for a specific pattern in files within a directory. | #!/bin/bash
directory="/path/to/your/directory"
pattern="your_pattern"
grep -r "$pattern" "$directory" | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
find all the files in the current directory whose size is equal to exactly 126MB.<|im_end|>
<|im_start|>assistant
find . -size 126M<|im_end|> | find all the files in the current directory whose size is equal to exactly 126MB. | find . -size 126M | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Assigns MAC address 00:80:48:BA:d1:30 to interface eth0.<|im_end|>
<|im_start|>assistant
ifconfig eth0 hw ether 00:80:48:BA:d1:30<|im_end|> | Assigns MAC address 00:80:48:BA:d1:30 to interface eth0. | ifconfig eth0 hw ether 00:80:48:BA:d1:30 | AnishJoshi/nl2bash-custom |
<|im_start|>system
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 modification times sorted by size and last modification time.<|im_end|>
<|im_... | Print the list of files in a directory with their sizes and last modification times sorted by size and last modification time. | #!/bin/bash
ls -l --time-style=long-iso /path/to/your/directory | awk '{print $5, $6, $7, $8, $9}' | sort -k 5,5n -k 7,7 | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
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/^/$(hostname): /" | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Search in the current directory and all sub-directories except ./D and any further sub-directories also named D for the file named hi.dat<|im_... | Search in the current directory and all sub-directories except ./D and any further sub-directories also named D for the file named hi.dat | $ find . \ -o -name hi.dat | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Create a script to check if a given string is an anagram of another string.<|im_end|>
<|im_start|>assistant
#!/bin/bash
is_anagram() {
st... | Create a script to check if a given string is an anagram of another string. | #!/bin/bash
is_anagram() {
string1="$1"
string2="$2"
if [ "$(echo "$string1" | tr -d ' ' | tr '[:upper:]' '[:lower:]' | grep -o . | sort | tr -d '
')" = "$(echo "$string2" | tr -d ' ' | tr '[:upper:]' '[:lower:]' | grep -o . | sort | tr -d '
')" ]; then
echo "$string1 and $string2 are anagrams"
... | AnishJoshi/nl2bash-custom |
<|im_start|>system
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 last modified time of file 'file_name' to variable 'STAMP'<|im_end|>
<|im_start|>assistant
STAMP=`date -r file_name`<|im_end|> | Save the last modified time of file 'file_name' to variable 'STAMP' | STAMP=`date -r file_name` | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Create a script to check the disk usage of a specific directory and send an alert if it exceeds a certain threshold.<|im_end|>
<|im_start|>ass... | Create a script to check the disk usage of a specific directory and send an alert if it exceeds a certain threshold. | #!/bin/bash
dir_path="/path/to/directory"
threshold=90
usage=$(df -h "$dir_path" | awk '{print $5}' | sed 's/%//')
if [ "$usage" -gt "$threshold" ]; then
echo "Disk usage of $dir_path exceeds $threshold%."
# Send alert here
fi | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Merge content of decompressed files "$part0", "$part1", and so on<|im_end|>
<|im_start|>assistant
sort -m < < ...<|im_end|> | Merge content of decompressed files "$part0", "$part1", and so on | sort -m < < ... | AnishJoshi/nl2bash-custom |
<|im_start|>system
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 md5sum of each ".py" file under "/path/to/dir/", sort the output, and calculate the md5sum of that<|im_end|>
<|im_start|>assista... | Calculate the md5sum of each ".py" file under "/path/to/dir/", sort the output, and calculate the md5sum of that | find /path/to/dir/ -type f -name "*.py" -exec md5sum {} + | awk '{print $1}' | sort | md5sum | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Replace all occurrences of word "foo" with "bar" in *.c and *.h files from the current directory tree<|im_end|>
<|im_start|>assistant
find -na... | Replace all occurrences of word "foo" with "bar" in *.c and *.h files from the current directory tree | find -name '*.[ch]' -exec sed -i 's/\<foo\>/bar/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
For each line in list.txt, output the line adding "FAIL" if the same line appears in fail.txt, and "PASS" otherwise - lines in fail.txt must b... | For each line in list.txt, output the line adding "FAIL" if the same line appears in fail.txt, and "PASS" otherwise - lines in fail.txt must be in the same order as they appear in list.txt. | sed 's/$/ FAIL/' fail.txt | join -a 1 -e PASS -j 1 -o 1.1,2.2 list.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 SSH packets and send an alert if it exceeds a certain threshold.<|im_end|>
<|im_start|>assistant
#!/bin/bash... | Create a script to monitor system SSH packets and send an alert if it exceeds a certain threshold. | #!/bin/bash
threshold="100"
ssh_packets=$(tcpdump -c 100 ssh | grep 'packets captured' | awk '{print $1}')
if [ "$ssh_packets" -gt "$threshold" ]; then
echo "System SSH packets count is too high: $ssh_packets" | mail -s "High SSH Packets 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
Fint all *.txt files/directories in entire file system without descending to other file system and without error reporting<|im_end|>
<|im_star... | Fint all *.txt files/directories in entire file system without descending to other file system and without error reporting | find / -name "*.txt" -xdev 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
find regular files whose filename is "your_pattern", suppressing all error messages.<|im_end|>
<|im_start|>assistant
find / -type f -name "you... | find regular files whose filename is "your_pattern", suppressing all error messages. | find / -type f -name "your_pattern" 2>/dev/null | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Saves listing of a current folder in 'var' variable.<|im_end|>
<|im_start|>assistant
var=$<|im_end|> | Saves listing of a current folder in 'var' variable. | var=$ | AnishJoshi/nl2bash-custom |
<|im_start|>system
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 a file xyz.c to all the .c files present in the C directory and below<|im_end|>
<|im_start|>assistant
find ./C -name "*.c" | xargs -n1 c... | Copy a file xyz.c to all the .c files present in the C directory and below | find ./C -name "*.c" | xargs -n1 cp xyz.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
find all the regular/normal files in the current folder which belong to the user "sedlav"<|im_end|>
<|im_start|>assistant
find . -user sedlav ... | find all the regular/normal files in the current folder which belong to the user "sedlav" | find . -user sedlav -type f | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
List all files under current directory matching the regex '.*\'<|im_end|>
<|im_start|>assistant
find . -type f -regex '.*\' -exec ls {} \;<|im... | List all files under current directory matching the regex '.*\' | find . -type f -regex '.*\' -exec ls {} \; | AnishJoshi/nl2bash-custom |
<|im_start|>system
You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|>
<|im_start|>user
Search the current directory tree for files whose name is ".note", case insensitive<|im_end|>
<|im_start|>assistant
find . -iname '.note'<|im_... | Search the current directory tree for files whose name is ".note", case insensitive | find . -iname '.note' | AnishJoshi/nl2bash-custom |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.