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 Edit current user's cron job list with editor specified by EDITOR environment variable, or default /usr/bin/editor if EDITOR is not set.<|im_e...
Edit current user's cron job list with editor specified by EDITOR environment variable, or default /usr/bin/editor if EDITOR is not set.
crontab -e
GWHed/nl2bash
<|im_start|>system You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|> <|im_start|>user Eliminates partially duplicate lines by column, keeping the last occurrence<|im_end|> <|im_start|>assistant tac temp.txt | sort -k2,2 -r -u<|i...
Eliminates partially duplicate lines by column, keeping the last occurrence
tac temp.txt | sort -k2,2 -r -u
GWHed/nl2bash
<|im_start|>system You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|> <|im_start|>user Enables 'dotglob' shell option.<|im_end|> <|im_start|>assistant shopt -s dotglob<|im_end|>
Enables 'dotglob' shell option.
shopt -s dotglob
GWHed/nl2bash
<|im_start|>system You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|> <|im_start|>user Enables 'globstar' (recursive globbing) shell option.<|im_end|> <|im_start|>assistant shopt -s globstar<|im_end|>
Enables 'globstar' (recursive globbing) shell option.
shopt -s globstar
GWHed/nl2bash
<|im_start|>system You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|> <|im_start|>user Enables 'nullglob' shell option.<|im_end|> <|im_start|>assistant shopt -s nullglob<|im_end|>
Enables 'nullglob' shell option.
shopt -s nullglob
GWHed/nl2bash
<|im_start|>system You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|> <|im_start|>user Enables shell option 'autocd'.<|im_end|> <|im_start|>assistant shopt -s autocd<|im_end|>
Enables shell option 'autocd'.
shopt -s autocd
GWHed/nl2bash
<|im_start|>system You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|> <|im_start|>user Enables shell option 'cdable_vars'.<|im_end|> <|im_start|>assistant shopt -s cdable_vars<|im_end|>
Enables shell option 'cdable_vars'.
shopt -s cdable_vars
GWHed/nl2bash
<|im_start|>system You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|> <|im_start|>user Enables shell option 'cmdhist'.<|im_end|> <|im_start|>assistant shopt -s cmdhist<|im_end|>
Enables shell option 'cmdhist'.
shopt -s cmdhist
GWHed/nl2bash
<|im_start|>system You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|> <|im_start|>user Enables shell option 'compat31'.<|im_end|> <|im_start|>assistant shopt -s compat31<|im_end|>
Enables shell option 'compat31'.
shopt -s compat31
GWHed/nl2bash
<|im_start|>system You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|> <|im_start|>user Enables shell option 'expand_aliases'.<|im_end|> <|im_start|>assistant shopt -s expand_aliases<|im_end|>
Enables shell option 'expand_aliases'.
shopt -s expand_aliases
GWHed/nl2bash
<|im_start|>system You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|> <|im_start|>user Enables shell options 'expand_aliases', 'extglob', 'xpg_echo'.<|im_end|> <|im_start|>assistant shopt -s expand_aliases extglob xpg_echo<|im_en...
Enables shell options 'expand_aliases', 'extglob', 'xpg_echo'.
shopt -s expand_aliases extglob xpg_echo
GWHed/nl2bash
<|im_start|>system You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|> <|im_start|>user Enables shell options 'extglob' and 'progcomp'<|im_end|> <|im_start|>assistant shopt -s extglob progcomp<|im_end|>
Enables shell options 'extglob' and 'progcomp'
shopt -s extglob progcomp
GWHed/nl2bash
<|im_start|>system You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|> <|im_start|>user Enables shell option 'failglob'.<|im_end|> <|im_start|>assistant shopt -s failglob<|im_end|>
Enables shell option 'failglob'.
shopt -s failglob
GWHed/nl2bash
<|im_start|>system You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|> <|im_start|>user Enables shell option 'lastpipe'.<|im_end|> <|im_start|>assistant shopt -s lastpipe<|im_end|>
Enables shell option 'lastpipe'.
shopt -s lastpipe
GWHed/nl2bash
<|im_start|>system You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|> <|im_start|>user Enables shell option 'nullglob'.<|im_end|> <|im_start|>assistant shopt -s execfail<|im_end|>
Enables shell option 'nullglob'.
shopt -s execfail
GWHed/nl2bash
<|im_start|>system You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|> <|im_start|>user Enables shell options 'nullglob' and 'dotglob'.<|im_end|> <|im_start|>assistant shopt -s nullglob dotglob<|im_end|>
Enables shell options 'nullglob' and 'dotglob'.
shopt -s nullglob dotglob
GWHed/nl2bash
<|im_start|>system You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|> <|im_start|>user Enables shell option 'promptvars'.<|im_end|> <|im_start|>assistant shopt -s promptvars<|im_end|>
Enables shell option 'promptvars'.
shopt -s promptvars
GWHed/nl2bash
<|im_start|>system You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|> <|im_start|>user Ensure all 5 of UEDP0{1..5}_20120821.csv files exist, creating empty files for any missing ones (updates the file's timestamps)<|im_end|> <|im...
Ensure all 5 of UEDP0{1..5}_20120821.csv files exist, creating empty files for any missing ones (updates the file's timestamps)
touch -a UEDP0{1..5}_20120821.csv
GWHed/nl2bash
<|im_start|>system You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|> <|im_start|>user Erase user's cron jobs and add one cron job to run "script" every minute.<|im_end|> <|im_start|>assistant echo "* * * * * script" | crontab -<...
Erase user's cron jobs and add one cron job to run "script" every minute.
echo "* * * * * script" | crontab -
GWHed/nl2bash
<|im_start|>system You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|> <|im_start|>user ERROR - this is for DOS<|im_end|> <|im_start|>assistant ping -n 1 %ip% | find "TTL"<|im_end|>
ERROR - this is for DOS
ping -n 1 %ip% | find "TTL"
GWHed/nl2bash
<|im_start|>system You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|> <|im_start|>user ERROR - Probably means -pgoDt (capital D)<|im_end|> <|im_start|>assistant sudo rsync -pgodt /home/ /newhome/<|im_end|>
ERROR - Probably means -pgoDt (capital D)
sudo rsync -pgodt /home/ /newhome/
GWHed/nl2bash
<|im_start|>system You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|> <|im_start|>user ERROR - will overwrite the executable if it's not a symlink.<|im_end|> <|im_start|>assistant sudo ln -sf /usr/local/ssl/bin/openssl `which ope...
ERROR - will overwrite the executable if it's not a symlink.
sudo ln -sf /usr/local/ssl/bin/openssl `which openssl`
GWHed/nl2bash
<|im_start|>system You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|> <|im_start|>user Evaluate the output of recursively changing the owner and group of "/data/*" to "mongodb"<|im_end|> <|im_start|>assistant `sudo chown -R mongo...
Evaluate the output of recursively changing the owner and group of "/data/*" to "mongodb"
`sudo chown -R mongodb:mongodb /data/*`
GWHed/nl2bash
<|im_start|>system You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|> <|im_start|>user Exclude directory from find . command<|im_end|> <|im_start|>assistant find ! -path "dir1" -iname "*.mp3"<|im_end|>
Exclude directory from find . command
find ! -path "dir1" -iname "*.mp3"
GWHed/nl2bash
<|im_start|>system You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|> <|im_start|>user Exclude directory from find . command<|im_end|> <|im_start|>assistant find -iname example.com | grep -v beta<|im_end|>
Exclude directory from find . command
find -iname example.com | grep -v beta
GWHed/nl2bash
<|im_start|>system You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|> <|im_start|>user Exclude directory from find . command<|im_end|> <|im_start|>assistant find -name "*.js" -not -path "./directory/*"<|im_end|>
Exclude directory from find . command
find -name "*.js" -not -path "./directory/*"
GWHed/nl2bash
<|im_start|>system You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|> <|im_start|>user Exclude directory from find . command<|im_end|> <|im_start|>assistant find . -name '*.js' -and -not -path directory<|im_end|>
Exclude directory from find . command
find . -name '*.js' -and -not -path directory
GWHed/nl2bash
<|im_start|>system You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|> <|im_start|>user Exclude directory from find . command<|im_end|> <|im_start|>assistant find . -name '*.js' | grep -v excludeddir<|im_end|>
Exclude directory from find . command
find . -name '*.js' | grep -v excludeddir
GWHed/nl2bash
<|im_start|>system You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|> <|im_start|>user Exclude directory from find . command<|im_end|> <|im_start|>assistant find . -path ./misc -prune -o -name '*.txt' -print<|im_end|>
Exclude directory from find . command
find . -path ./misc -prune -o -name '*.txt' -print
GWHed/nl2bash
<|im_start|>system You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|> <|im_start|>user Exclude directory from find . command<|im_end|> <|im_start|>assistant find . -type d -name proc -prune -o -name '*.js'<|im_end|>
Exclude directory from find . command
find . -type d -name proc -prune -o -name '*.js'
GWHed/nl2bash
<|im_start|>system You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|> <|im_start|>user Exclude directory from find . command<|im_end|> <|im_start|>assistant find ./ -path ./beta/* -prune -o -iname example.com -print<|im_end|>
Exclude directory from find . command
find ./ -path ./beta/* -prune -o -iname example.com -print
GWHed/nl2bash
<|im_start|>system You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|> <|im_start|>user Exclude directory from find . command<|im_end|> <|im_start|>assistant find build -not \( -path build/external -prune \) -name \*.js<|im_end|>
Exclude directory from find . command
find build -not \( -path build/external -prune \) -name \*.js
GWHed/nl2bash
<|im_start|>system You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|> <|im_start|>user exclude vendor and app/cache dir, and search name which suffixed with php<|im_end|> <|im_start|>assistant find . -name *.php -or -path "./vend...
exclude vendor and app/cache dir, and search name which suffixed with php
find . -name *.php -or -path "./vendor" -prune -or -path "./app/cache" -prune
GWHed/nl2bash
<|im_start|>system 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 "${MD5}" on all files found under "${1}", numerically sort the results, and save to variable "DATA"<|im_end|> <|im_start|>assistant DA...
Execute "${MD5}" on all files found under "${1}", numerically sort the results, and save to variable "DATA"
DATA=$( find "${1}" -type f -exec ${MD5} {} ';' | sort -n )
GWHed/nl2bash
<|im_start|>system 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 "date" every second<|im_end|> <|im_start|>assistant watch -n 1 date<|im_end|>
Execute "date" every second
watch -n 1 date
GWHed/nl2bash
<|im_start|>system 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 "du -s path" every 300 seconds<|im_end|> <|im_start|>assistant watch -n 300 du -s path<|im_end|>
Execute "du -s path" every 300 seconds
watch -n 300 du -s path
GWHed/nl2bash
<|im_start|>system 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 "ls -l data.temp" every 2 seconds<|im_end|> <|im_start|>assistant watch ls -l data.temp<|im_end|>
Execute "ls -l data.temp" every 2 seconds
watch ls -l data.temp
GWHed/nl2bash
<|im_start|>system 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 "ls -l" every 0.5 seconds<|im_end|> <|im_start|>assistant watch -n 0.5 ls -l<|im_end|>
Execute "ls -l" every 0.5 seconds
watch -n 0.5 ls -l
GWHed/nl2bash
<|im_start|>system 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 "ls -l" every 2 seconds<|im_end|> <|im_start|>assistant watch 'ls -l'<|im_end|>
Execute "ls -l" every 2 seconds
watch 'ls -l'
GWHed/nl2bash
<|im_start|>system 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 "ls -l" every 2 seconds<|im_end|> <|im_start|>assistant watch ls -l<|im_end|>
Execute "ls -l" every 2 seconds
watch ls -l
GWHed/nl2bash
<|im_start|>system 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 "ls -l" every 2 seconds and highlight the differences in runs<|im_end|> <|im_start|>assistant watch -d ls -l<|im_end|>
Execute "ls -l" every 2 seconds and highlight the differences in runs
watch -d ls -l
GWHed/nl2bash
<|im_start|>system 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 "ls -l" on host "something" as user "root"<|im_end|> <|im_start|>assistant ssh root@something 'ls -l'<|im_end|>
Execute "ls -l" on host "something" as user "root"
ssh root@something 'ls -l'
GWHed/nl2bash
<|im_start|>system 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 "ls" every 2 seconds<|im_end|> <|im_start|>assistant watch ls<|im_end|>
Execute "ls" every 2 seconds
watch ls
GWHed/nl2bash
<|im_start|>system 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 "ls" every second<|im_end|> <|im_start|>assistant watch -n 1 ls<|im_end|>
Execute "ls" every second
watch -n 1 ls
GWHed/nl2bash
<|im_start|>system You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|> <|im_start|>user Execute "ps -C java -o pcpu,state,cputime,etimes" every second<|im_end|> <|im_start|>assistant watch -n 1 ps -C java -o pcpu,state,cputime,eti...
Execute "ps -C java -o pcpu,state,cputime,etimes" every second
watch -n 1 ps -C java -o pcpu,state,cputime,etimes
GWHed/nl2bash
<|im_start|>system 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 "wget -qO- http://fake.link/file.txt" every 5 seconds<|im_end|> <|im_start|>assistant watch -n 5 wget -qO- http://fake.link/file.txt...
Execute "wget -qO- http://fake.link/file.txt" every 5 seconds
watch -n 5 wget -qO- http://fake.link/file.txt
GWHed/nl2bash
<|im_start|>system 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 'echo -e "\033[31mHello World\033[0m"' every without color support 2 seconds<|im_end|> <|im_start|>assistant watch 'echo -e "\033[31mH...
Execute 'echo -e "\033[31mHello World\033[0m"' every without color support 2 seconds
watch 'echo -e "\033[31mHello World\033[0m"'
GWHed/nl2bash
<|im_start|>system 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 'echo -e "\tHello World"' every 2 seconds<|im_end|> <|im_start|>assistant watch 'echo -e "\tHello World"'<|im_end|>
Execute 'echo -e "\tHello World"' every 2 seconds
watch 'echo -e "\tHello World"'
GWHed/nl2bash
<|im_start|>system 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 `echo' for each file found<|im_end|> <|im_start|>assistant find . | xargs -n 1 echo<|im_end|>
Execute `echo' for each file found
find . | xargs -n 1 echo
GWHed/nl2bash
<|im_start|>system 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 `find -type f | egrep -i "(jpg|bmp|png|gif)$"` every 300 seconds and display without title<|im_end|> <|im_start|>assistant watch -n 30...
Execute `find -type f | egrep -i "(jpg|bmp|png|gif)$"` every 300 seconds and display without title
watch -n 300 -t `find -type f | egrep -i "(jpg|bmp|png|gif)$"`
GWHed/nl2bash
<|im_start|>system 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 /usr/bin/find with $* arguments<|im_end|> <|im_start|>assistant /usr/bin/find $*<|im_end|>
Execute /usr/bin/find with $* arguments
/usr/bin/find $*
GWHed/nl2bash
<|im_start|>system 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 /usr/bin/find with $* arguments where current directory is the first argument<|im_end|> <|im_start|>assistant /usr/bin/find ./ $*<|im_...
Execute /usr/bin/find with $* arguments where current directory is the first argument
/usr/bin/find ./ $*
GWHed/nl2bash
<|im_start|>system 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 command "who" when key "\eW" is pressed<|im_end|> <|im_start|>assistant bind -x '"\eW":"who"'<|im_end|>
execute command "who" when key "\eW" is pressed
bind -x '"\eW":"who"'
GWHed/nl2bash
<|im_start|>system You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|> <|im_start|>user Execute the file utility for each file found under /etc and below<|im_end|> <|im_start|>assistant find /etc -print0 | xargs -0 file<|im_end|>
Execute the file utility for each file found under /etc and below
find /etc -print0 | xargs -0 file
GWHed/nl2bash
<|im_start|>system You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|> <|im_start|>user Execute the file utility for each file found under /etc or below that contains "test" in its pathname<|im_end|> <|im_start|>assistant find /et...
Execute the file utility for each file found under /etc or below that contains "test" in its pathname
find /etc -print0 | grep -azZ test | xargs -0 file
GWHed/nl2bash
<|im_start|>system You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|> <|im_start|>user Execute the first instance of "parallel" found in the PATH, passing it all parameters received by the script/function<|im_end|> <|im_start|>as...
Execute the first instance of "parallel" found in the PATH, passing it all parameters received by the script/function
`which parallel` "$@"
GWHed/nl2bash
<|im_start|>system 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 python script "test.py" with "LD_PRELOAD=./linebufferedstdout.so" and write the output to console and append to "test.out"<|im_end|> <...
Execute python script "test.py" with "LD_PRELOAD=./linebufferedstdout.so" and write the output to console and append to "test.out"
LD_PRELOAD=./linebufferedstdout.so python test.py | tee -a test.out
GWHed/nl2bash
<|im_start|>system 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 zcat on every file matching "*20120805.gz" in the current directory and subdirectories<|im_end|> <|im_start|>assistant find . -name *2...
Execute zcat on every file matching "*20120805.gz" in the current directory and subdirectories
find . -name *20120805.gz -exec zcat {} \;
GWHed/nl2bash
<|im_start|>system You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|> <|im_start|>user explicitly list all files in the current directory<|im_end|> <|im_start|>assistant find . -print<|im_end|>
explicitly list all files in the current directory
find . -print
GWHed/nl2bash
<|im_start|>system You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|> <|im_start|>user extract "backup.tar.gz" with verbose output<|im_end|> <|im_start|>assistant tar -xzvf backup.tar.gz<|im_end|>
extract "backup.tar.gz" with verbose output
tar -xzvf backup.tar.gz
GWHed/nl2bash
<|im_start|>system You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|> <|im_start|>user extract "filename.tar.xz" with verbose output<|im_end|> <|im_start|>assistant $ tar xvfJ filename.tar.xz<|im_end|>
extract "filename.tar.xz" with verbose output
$ tar xvfJ filename.tar.xz
GWHed/nl2bash
<|im_start|>system You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|> <|im_start|>user extract "passwd.tar.gz" with verbose output<|im_end|> <|im_start|>assistant tar -xvzf passwd.tar.gz<|im_end|>
extract "passwd.tar.gz" with verbose output
tar -xvzf passwd.tar.gz
GWHed/nl2bash
<|im_start|>system You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|> <|im_start|>user extract "phantomjs-1.9.0-linux-x86_64.tar.bz2"<|im_end|> <|im_start|>assistant sudo tar xvf phantomjs-1.9.0-linux-x86_64.tar.bz2<|im_end|>
extract "phantomjs-1.9.0-linux-x86_64.tar.bz2"
sudo tar xvf phantomjs-1.9.0-linux-x86_64.tar.bz2
GWHed/nl2bash
<|im_start|>system You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|> <|im_start|>user extract 'archive.tar.gz' to /destination<|im_end|> <|im_start|>assistant tar xzf archive.tar.gz -C /destination<|im_end|>
extract 'archive.tar.gz' to /destination
tar xzf archive.tar.gz -C /destination
GWHed/nl2bash
<|im_start|>system You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|> <|im_start|>user extract /path/to/my_archive.tar.xz to /path/to/extract and preserve permissions.<|im_end|> <|im_start|>assistant tar xpvf /path/to/my_archive....
extract /path/to/my_archive.tar.xz to /path/to/extract and preserve permissions.
tar xpvf /path/to/my_archive.tar.xz -C /path/to/extract
GWHed/nl2bash
<|im_start|>system You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|> <|im_start|>user Extract five digits sequence from a filename with x number of alphanumeric characters followed by the five digit sequence surrounded by a sing...
Extract five digits sequence from a filename with x number of alphanumeric characters followed by the five digit sequence surrounded by a single underscore on either side then another set of x number of alphanumeric characters.
echo 'someletters_12345_moreleters.ext' | cut -d'_' -f 2
GWHed/nl2bash
<|im_start|>system You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|> <|im_start|>user Extracts a bz2 file.<|im_end|> <|im_start|>assistant bunzip2 file.bz2<|im_end|>
Extracts a bz2 file.
bunzip2 file.bz2
GWHed/nl2bash
<|im_start|>system You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|> <|im_start|>user Extract and print hostname and protocol part from URL like "http://www.suepearson.co.uk/product/174/71/3816/".<|im_end|> <|im_start|>assistant...
Extract and print hostname and protocol part from URL like "http://www.suepearson.co.uk/product/174/71/3816/".
echo "http://www.suepearson.co.uk/product/174/71/3816/" | cut -d'/' -f1-3
GWHed/nl2bash
<|im_start|>system You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|> <|im_start|>user Extract any line in "f1" or "f2" which does not appear in the other<|im_end|> <|im_start|>assistant comm -3 <(sort -un f1) <(sort -un f2)<|im_...
Extract any line in "f1" or "f2" which does not appear in the other
comm -3 <(sort -un f1) <(sort -un f2)
GWHed/nl2bash
<|im_start|>system You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|> <|im_start|>user Extract any line in "file1" or "file2" which does not appear in the other<|im_end|> <|im_start|>assistant comm -3 <(sort file1) <(sort file2)<...
Extract any line in "file1" or "file2" which does not appear in the other
comm -3 <(sort file1) <(sort file2)
GWHed/nl2bash
<|im_start|>system You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|> <|im_start|>user Extract any line in "file1.txt" which does not appear as the first ";" delimited entry in "file2.txt"<|im_end|> <|im_start|>assistant comm -23...
Extract any line in "file1.txt" which does not appear as the first ";" delimited entry in "file2.txt"
comm -23 <(sort file1.txt) <(grep -o '^[^;]*' file2.txt | sort)
GWHed/nl2bash
<|im_start|>system You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|> <|im_start|>user Extract any line in "fileA" which does not appear as the first word of any line in "fileB"<|im_end|> <|im_start|>assistant comm -23 <(sort fil...
Extract any line in "fileA" which does not appear as the first word of any line in "fileB"
comm -23 <(sort fileA) <(cut -d' ' -f1 fileB | sort -u)
GWHed/nl2bash
<|im_start|>system You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|> <|im_start|>user Extract any line in "set1" which does not appear in "set2"<|im_end|> <|im_start|>assistant comm -23 <(sort set1) <(sort set2)<|im_end|>
Extract any line in "set1" which does not appear in "set2"
comm -23 <(sort set1) <(sort set2)
GWHed/nl2bash
<|im_start|>system You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|> <|im_start|>user extract archive stored in $1<|im_end|> <|im_start|>assistant tar -zxvf $1<|im_end|>
extract archive stored in $1
tar -zxvf $1
GWHed/nl2bash
<|im_start|>system You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|> <|im_start|>user Extract the contents of "Input.txt.gz", list the unique first comma separated field prefixed by the number of occurrences<|im_end|> <|im_start...
Extract the contents of "Input.txt.gz", list the unique first comma separated field prefixed by the number of occurrences
zcat Input.txt.gz | cut -d , -f 1 | sort | uniq -c
GWHed/nl2bash
<|im_start|>system You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|> <|im_start|>user Extract files from archive 'archive.tar'<|im_end|> <|im_start|>assistant cat archive.tar | tar x<|im_end|>
Extract files from archive 'archive.tar'
cat archive.tar | tar x
GWHed/nl2bash
<|im_start|>system You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|> <|im_start|>user Extract path and query part from URL<|im_end|> <|im_start|>assistant echo "$url" | cut -d'/' -f4-<|im_end|>
Extract path and query part from URL
echo "$url" | cut -d'/' -f4-
GWHed/nl2bash
<|im_start|>system You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|> <|im_start|>user Extract protocol and host name from URL.<|im_end|> <|im_start|>assistant echo "$url" | cut -d'/' -f1-3<|im_end|>
Extract protocol and host name from URL.
echo "$url" | cut -d'/' -f1-3
GWHed/nl2bash
<|im_start|>system You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|> <|im_start|>user Extract protocol part from URL.<|im_end|> <|im_start|>assistant echo "$url" | cut -d':' -f1<|im_end|>
Extract protocol part from URL.
echo "$url" | cut -d':' -f1
GWHed/nl2bash
<|im_start|>system You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|> <|im_start|>user Extracts single file 'filename' from bzip2-compressed tarball archive.tbz.<|im_end|> <|im_start|>assistant bzip2 -dc archive.tbz | tar xvf - f...
Extracts single file 'filename' from bzip2-compressed tarball archive.tbz.
bzip2 -dc archive.tbz | tar xvf - filename
GWHed/nl2bash
<|im_start|>system You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|> <|im_start|>user Extract, sort and print only group names from /etc/group.<|im_end|> <|im_start|>assistant cut -d: -f1 /etc/group | sort<|im_end|>
Extract, sort and print only group names from /etc/group.
cut -d: -f1 /etc/group | sort
GWHed/nl2bash
<|im_start|>system You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|> <|im_start|>user Fetch 'stackoverflow.com' domain IP addresses from dig DNS lookup<|im_end|> <|im_start|>assistant dig stackoverflow.com | grep -e "^[^;]" | tr...
Fetch 'stackoverflow.com' domain IP addresses from dig DNS lookup
dig stackoverflow.com | grep -e "^[^;]" | tr -s " \t" " " | cut -d" " -f5
GWHed/nl2bash
<|im_start|>system You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|> <|im_start|>user File "files.txt" contains a list of files, copy all files listed to host "remote", connecting as ssh user "user", and copying the files to thi...
File "files.txt" contains a list of files, copy all files listed to host "remote", connecting as ssh user "user", and copying the files to this user's home directory - this will not work with files/directory names containing spaces.
cat files.txt | xargs scp user@remote:
GWHed/nl2bash
<|im_start|>system You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|> <|im_start|>user The file "files_to_find.txt" contains a list of filenames, create each file or update its timestamp if it exists.<|im_end|> <|im_start|>assist...
The file "files_to_find.txt" contains a list of filenames, create each file or update its timestamp if it exists.
touch `cat files_to_find.txt`
GWHed/nl2bash
<|im_start|>system You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|> <|im_start|>user File 'save_pid.txt' contains a process ID, instantly kill this process with SIGKILL signal.<|im_end|> <|im_start|>assistant kill -9 `cat save_...
File 'save_pid.txt' contains a process ID, instantly kill this process with SIGKILL signal.
kill -9 `cat save_pid.txt`
GWHed/nl2bash
<|im_start|>system You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|> <|im_start|>user file all the Sticky Bit set files whose permission are 551<|im_end|> <|im_start|>assistant find / -perm 1551<|im_end|>
file all the Sticky Bit set files whose permission are 551
find / -perm 1551
GWHed/nl2bash
<|im_start|>system You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|> <|im_start|>user Filters only directories from long file listing of the current directory<|im_end|> <|im_start|>assistant ls -l --color=always "$@" | egrep --c...
Filters only directories from long file listing of the current directory
ls -l --color=always "$@" | egrep --color=never '^d|^[[:digit:]]+ d'
GWHed/nl2bash
<|im_start|>system You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|> <|im_start|>user Filters only directories from long file listing of the current directory<|im_end|> <|im_start|>assistant ls -l --color=always "$@" | grep --co...
Filters only directories from long file listing of the current directory
ls -l --color=always "$@" | grep --color=never '^d'
GWHed/nl2bash
<|im_start|>system You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|> <|im_start|>user Filters only directories from long file listing of the current directory.<|im_end|> <|im_start|>assistant ls -l | grep "^d"<|im_end|>
Filters only directories from long file listing of the current directory.
ls -l | grep "^d"
GWHed/nl2bash
<|im_start|>system You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|> <|im_start|>user Filters out strings, using the extended regexp pattern '^#|^$|no crontab for|cannot use this program' from "$USERTAB"<|im_end|> <|im_start|>as...
Filters out strings, using the extended regexp pattern '^#|^$|no crontab for|cannot use this program' from "$USERTAB"
echo "$USERTAB"| grep -vE '^#|^$|no crontab for|cannot use this program'
GWHed/nl2bash
<|im_start|>system You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|> <|im_start|>user Filters unique lines by matching against the first column of a .csv file<|im_end|> <|im_start|>assistant tac a.csv | sort -u -t, -r -k1,1 |tac...
Filters unique lines by matching against the first column of a .csv file
tac a.csv | sort -u -t, -r -k1,1 |tac
GWHed/nl2bash
<|im_start|>system You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|> <|im_start|>user Find "*prefs copy" files in the /mnt/zip directory tree and remove them with prompting<|im_end|> <|im_start|>assistant find /mnt/zip -name "*p...
Find "*prefs copy" files in the /mnt/zip directory tree and remove them with prompting
find /mnt/zip -name "*prefs copy" -print0 | xargs -p rm
GWHed/nl2bash
<|im_start|>system 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 ".c" and ".h" files in the current directory tree and print lines containing "#include"<|im_end|> <|im_start|>assistant tree -if | grep \...
Find ".c" and ".h" files in the current directory tree and print lines containing "#include"
tree -if | grep \\.[ch]\\b | xargs -n 1 grep -H "#include"
GWHed/nl2bash
<|im_start|>system 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 ".c" and ".h" files in the current directory tree and print line numbers and lines containing "#include"<|im_end|> <|im_start|>assistant ...
Find ".c" and ".h" files in the current directory tree and print line numbers and lines containing "#include"
tree -if | grep \\.[ch]\\b | xargs -n 1 grep -nH "#include"
GWHed/nl2bash
<|im_start|>system 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 ".flac" files in current folder using regular expressions<|im_end|> <|im_start|>assistant find ./ -regex "./cmn-.\.flac"<|im_end|>
find ".flac" files in current folder using regular expressions
find ./ -regex "./cmn-.\.flac"
GWHed/nl2bash
<|im_start|>system You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|> <|im_start|>user find the "MyCProgram.c" file (case insensitive find) under the current directory<|im_end|> <|im_start|>assistant find -iname "MyCProgram.c"<|i...
find the "MyCProgram.c" file (case insensitive find) under the current directory
find -iname "MyCProgram.c"
GWHed/nl2bash
<|im_start|>system You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|> <|im_start|>user Find the "param1" string in regular files under and below /var<|im_end|> <|im_start|>assistant find /var -type f -exec grep "param1" {} \; -p...
Find the "param1" string in regular files under and below /var
find /var -type f -exec grep "param1" {} \; -print
GWHed/nl2bash
<|im_start|>system You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|> <|im_start|>user Find the "param1" string in regular files under and below /var<|im_end|> <|im_start|>assistant find /var -type f | xargs grep "param1"<|im_en...
Find the "param1" string in regular files under and below /var
find /var -type f | xargs grep "param1"
GWHed/nl2bash
<|im_start|>system 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 & replace broken symbolic links<|im_end|> <|im_start|>assistant find -L . -type l -delete -exec ln -s new_target {} \;<|im_end|>
Find & replace broken symbolic links
find -L . -type l -delete -exec ln -s new_target {} \;
GWHed/nl2bash
<|im_start|>system You are an expert shell programmer. Given a natural language request, output ONLY the corresponding shell command. No explanations.<|im_end|> <|im_start|>user Find '*prefs copy' files under /mnt/zip and delete them with confirmation prompt ensuring white space safety<|im_end|> <|im_start|>assistant f...
Find '*prefs copy' files under /mnt/zip and delete them with confirmation prompt ensuring white space safety
find /mnt/zip -name "*prefs copy" -print0 | xargs -0 -p /bin/rm
GWHed/nl2bash