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 create directory /data/db<|im_end|> <|im_start|>assistant sudo mkdir /data/db<|im_end|>
create directory /data/db
sudo mkdir /data/db
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 create directory /etc/cron.minute<|im_end|> <|im_start|>assistant mkdir /etc/cron.minute<|im_end|>
create directory /etc/cron.minute
mkdir /etc/cron.minute
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 create directory /path/to/destination<|im_end|> <|im_start|>assistant mkdir /path/to/destination<|im_end|>
create directory /path/to/destination
mkdir /path/to/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 create directory /tmp/new<|im_end|> <|im_start|>assistant mkdir /tmp/new<|im_end|>
create directory /tmp/new
mkdir /tmp/new
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 create directory /var/svn as user root<|im_end|> <|im_start|>assistant sudo mkdir /var/svn<|im_end|>
create directory /var/svn as user root
sudo mkdir /var/svn
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 create directories a b c d e<|im_end|> <|im_start|>assistant mkdir a b c d e<|im_end|>
create directories a b c d e
mkdir a b c d 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 create directory aaa<|im_end|> <|im_start|>assistant mkdir aaa<|im_end|>
create directory aaa
mkdir aaa
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 create directory aaa/bbb<|im_end|> <|im_start|>assistant mkdir aaa/bbb<|im_end|>
create directory aaa/bbb
mkdir aaa/bbb
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 create directory backup<|im_end|> <|im_start|>assistant mkdir backup<|im_end|>
create directory backup
mkdir backup
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 create directories bravo_dir and alpha_dir<|im_end|> <|im_start|>assistant mkdir bravo_dir alpha_dir<|im_end|>
create directories bravo_dir and alpha_dir
mkdir bravo_dir alpha_dir
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 create directory destdir<|im_end|> <|im_start|>assistant mkdir destdir<|im_end|>
create directory destdir
mkdir destdir
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 create directory dir<|im_end|> <|im_start|>assistant mkdir -p dir<|im_end|>
create directory dir
mkdir -p dir
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 create directory es if it is not exist and create direcoty LC_MESSAGES<|im_end|> <|im_start|>assistant mkdir -p es/LC_MESSAGES<|im_end|>
create directory es if it is not exist and create direcoty LC_MESSAGES
mkdir -p es/LC_MESSAGES
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 create directory foo<|im_end|> <|im_start|>assistant mkdir -p foo<|im_end|>
create directory foo
mkdir -p foo
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 create directory foo<|im_end|> <|im_start|>assistant mkdir foo<|im_end|>
create directory foo
mkdir foo
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 create directory log into home directory<|im_end|> <|im_start|>assistant mkdir ~/log<|im_end|>
create directory log into home directory
mkdir ~/log
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 create directory new_dir<|im_end|> <|im_start|>assistant mkdir new_dir<|im_end|>
create directory new_dir
mkdir new_dir
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 create directory practice into home directory<|im_end|> <|im_start|>assistant mkdir ~/practice<|im_end|>
create directory practice into home directory
mkdir ~/practice
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 create directory public_html into home directory<|im_end|> <|im_start|>assistant mkdir ~/public_html<|im_end|>
create directory public_html into home directory
mkdir ~/public_html
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 create directory saxon_docs<|im_end|> <|im_start|>assistant mkdir saxon_docs<|im_end|>
create directory saxon_docs
mkdir saxon_docs
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 create directory subdirectory<|im_end|> <|im_start|>assistant mkdir subdirectory<|im_end|>
create directory subdirectory
mkdir subdirectory
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 create directory temp into home directory<|im_end|> <|im_start|>assistant mkdir ~/temp<|im_end|>
create directory temp into home directory
mkdir ~/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 create directory testExpress<|im_end|> <|im_start|>assistant mkdir testExpress<|im_end|>
create directory testExpress
mkdir testExpress
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 create directory TestProject<|im_end|> <|im_start|>assistant mkdir TestProject<|im_end|>
create directory TestProject
mkdir TestProject
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 Create empty files (or update timestamps if they exist) with names matching each word in variable "correctFilePathAndName"<|im_end|> <|im_star...
Create empty files (or update timestamps if they exist) with names matching each word in variable "correctFilePathAndName"
echo -e "$correctFilePathAndName" | xargs touch
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 Creates file by template 'aws-sync-XXXXX' in a current folder and stores file name in a 'dir' variable.<|im_end|> <|im_start|>assistant dir="$...
Creates file by template 'aws-sync-XXXXX' in a current folder and stores file name in a 'dir' variable.
dir="$(mktemp aws-sync-XXXXX)"
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 Creates full path with parents, that matches to folder path extracted from $f variable.<|im_end|> <|im_start|>assistant mkdir -p -- "$(dirname...
Creates full path with parents, that matches to folder path extracted from $f variable.
mkdir -p -- "$(dirname -- "$f")"
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 Create intermediate directories "tmp" as required and directories real_dir1 and real_dir2<|im_end|> <|im_start|>assistant mkdir -p tmp/real_di...
Create intermediate directories "tmp" as required and directories real_dir1 and real_dir2
mkdir -p tmp/real_dir1 tmp/real_dir2
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 Create intermediate directories "x" and "p" as required and create "q"<|im_end|> <|im_start|>assistant mkdir -p x/p/q<|im_end|>
Create intermediate directories "x" and "p" as required and create "q"
mkdir -p x/p/q
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 Create intermediate directories as required<|im_end|> <|im_start|>assistant mkdir -p $2<|im_end|>
Create intermediate directories as required
mkdir -p $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 Create intermediate directories as required and directory /tmp/test/blah/oops/something<|im_end|> <|im_start|>assistant mkdir -p /tmp/test/bla...
Create intermediate directories as required and directory /tmp/test/blah/oops/something
mkdir -p /tmp/test/blah/oops/something
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 Create intermediate directories foo and bar as required and directory foo/bar/baz<|im_end|> <|im_start|>assistant mkdir -p foo/bar/baz<|im_end...
Create intermediate directories foo and bar as required and directory foo/bar/baz
mkdir -p foo/bar/baz
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 Create intermediate directoriy path2 as required and directories a..z<|im_end|> <|im_start|>assistant mkdir -p path2/{a..z}<|im_end|>
Create intermediate directoriy path2 as required and directories a..z
mkdir -p path2/{a..z}
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 Create intermediate directories ~/foo/bar/ as required and directories baz, bif, bang<|im_end|> <|im_start|>assistant mkdir -p ~/foo/bar/baz ~...
Create intermediate directories ~/foo/bar/ as required and directories baz, bif, bang
mkdir -p ~/foo/bar/baz ~/foo/bar/bif ~/foo/boo/bang
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 Create links for all files in the current directory tree that are more than 1000 days old in "/home/user/archives"<|im_end|> <|im_start|>assis...
Create links for all files in the current directory tree that are more than 1000 days old in "/home/user/archives"
find . -type f -mtime +1000 -print0 | cpio -dumpl0 /home/user/archives
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 Create master SSH control socket "my-ctrl-socket" in the background with no terminal or command execution with connection forwarding from loca...
Create master SSH control socket "my-ctrl-socket" in the background with no terminal or command execution with connection forwarding from localhost port 50000 to localhost port 3306 via "jm@sampledomani.com"
ssh -M -S my-ctrl-socket -fnNT -L 50000:localhost:3306 jm@sampledomain.com
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 Create new crontab set including $job and only jobs from current crontab that don`t contain $command<|im_end|> <|im_start|>assistant cat <(fgr...
Create new crontab set including $job and only jobs from current crontab that don`t contain $command
cat <(fgrep -i -v "$command" <(crontab -l)) <(echo "$job") | 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 Creates random file name formatted like expression in variable ${str// /X} and saves it in 'rand_str' variable.<|im_end|> <|im_start|>assistan...
Creates random file name formatted like expression in variable ${str// /X} and saves it in 'rand_str' variable.
rand_str=$(mktemp --dry-run ${str// /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 Create ssh tunnel through "genja.org" connecting localhost port 4444 to "raptor.lan" port 22<|im_end|> <|im_start|>assistant ssh -L 4444:rapto...
Create ssh tunnel through "genja.org" connecting localhost port 4444 to "raptor.lan" port 22
ssh -L 4444:raptor.lan:22 genja.org
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 Create symbolic links in the current directory for all files excluding "CONFIGFILE" located in "/your/project"<|im_end|> <|im_start|>assistant...
Create symbolic links in the current directory for all files excluding "CONFIGFILE" located in "/your/project"
find /your/project -maxdepth 1 ! -name "CONFIGFILE" -exec ln -s \{\} ./ \;
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 Create symbolic links in the current directory for all files excluding "CONFIGFILE" located under "/your/project" directory tree<|im_end|> <|i...
Create symbolic links in the current directory for all files excluding "CONFIGFILE" located under "/your/project" directory tree
find /your/project -type f ! -name 'CONFIGFILE' -exec ln -s \{\} ./ \;
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 Create symbolic links in current directory for all files located in "dir" directory and have filename extension "jpg"<|im_end|> <|im_start|>as...
Create symbolic links in current directory for all files located in "dir" directory and have filename extension "jpg"
find dir -name '*.jpg' -exec ln -s "{}" \;
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 Create symbolic links in the current directory for all files located in directory "/path/with/files" with a name containing "txt"<|im_end|> <|...
Create symbolic links in the current directory for all files located in directory "/path/with/files" with a name containing "txt"
find /path/with/files -type f -name "*txt*" -exec ln -s {} . ';'
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 Create symbolic links in the current directory for all files under "bar1" that are not directories and do not end in ".cc"<|im_end|> <|im_star...
Create symbolic links in the current directory for all files under "bar1" that are not directories and do not end in ".cc"
find bar1 -name '*foo*' -not -type d -not -name '*.cc' -exec ln -s $PWD/'{}' bar2/ \;
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 create symbolic links in current directory to all files located in directory "/original" and have filename extension ".processname"<|im_end|> ...
create symbolic links in current directory to all files located in directory "/original" and have filename extension ".processname"
find /original -name '*.processme' -exec echo ln -s '{}' . \;
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 create symbolic links in current directory to all files located in directory "/original" and have filename extension ".processname"<|im_end|> ...
create symbolic links in current directory to all files located in directory "/original" and have filename extension ".processname"
ln -s $(echo /original/*.processme) .
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 create symbolic links in directory "/your/dest/dir/" to all files located in "/your/source/dir/" and have filename extension "txt.mrg"<|im_end...
create symbolic links in directory "/your/dest/dir/" to all files located in "/your/source/dir/" and have filename extension "txt.mrg"
find /your/source/dir/ -iname '*.txt.mrg' -exec ln -s '{}' /your/dest/dir/ \;
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 Create symlinks to all /home/folder1/*.txt files and 'folder2_' directory with the same name in a target directory named '+'<|im_end|> <|im_s...
Create symlinks to all /home/folder1/*.txt files and 'folder2_' directory with the same name in a target directory named '+'
find /home/folder1/*.txt -type f -exec ln -s {} "folder2_" + \;
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 Create symlinks to all /home/folder1/*.txt files with the same name in current directory<|im_end|> <|im_start|>assistant find /home/folder1/*...
Create symlinks to all /home/folder1/*.txt files with the same name in current directory
find /home/folder1/*.txt -type f -exec ln -s {} \;
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 Create symlinks to all /home/folder2/*.txt files with the same name in current directory<|im_end|> <|im_start|>assistant find /home/folder2/*...
Create symlinks to all /home/folder2/*.txt files with the same name in current directory
find /home/folder2/*.txt -type f -exec ln -s {} \;
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 Create tar.gz files older than one day logs<|im_end|> <|im_start|>assistant find /home/testuser/log/ -mtime +1 | xargs tar -czvPf /opt/older...
Create tar.gz files older than one day logs
find /home/testuser/log/ -mtime +1 | xargs tar -czvPf /opt/older_log_$(date +%F).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 Creates temporary directory in '/tmp/' folder and saves path to it in 'my_tmp_dir' variable.<|im_end|> <|im_start|>assistant my_tmp_dir=$(mkte...
Creates temporary directory in '/tmp/' folder and saves path to it in 'my_tmp_dir' variable.
my_tmp_dir=$(mktemp -d --tmpdir=/tmp)
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 Creates temporary directory with name formatted like .daemonXXXXXXX in /tmp/ folder, and saves path to it in 'TMPDIR' variable.<|im_end|> <|im...
Creates temporary directory with name formatted like .daemonXXXXXXX in /tmp/ folder, and saves path to it in 'TMPDIR' variable.
TMPDIR=$(mktemp -p /tmp -d .daemonXXXXXXX)
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 Creates temporary file and saves path to it in 'content_dir1' variable.<|im_end|> <|im_start|>assistant content_dir1=$(mktemp)<|im_end|>
Creates temporary file and saves path to it in 'content_dir1' variable.
content_dir1=$(mktemp)
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 Creates temporary file and saves path to it in 'content_dir2' variable.<|im_end|> <|im_start|>assistant content_dir2=$(mktemp)<|im_end|>
Creates temporary file and saves path to it in 'content_dir2' variable.
content_dir2=$(mktemp)
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 Creates temporary file and saves path to it in a 'tmpfile' variable.<|im_end|> <|im_start|>assistant tmpfile=$(mktemp)<|im_end|>
Creates temporary file and saves path to it in a 'tmpfile' variable.
tmpfile=$(mktemp)
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 Creates temporary file and saves path to it in a 'tmpfile' variable.<|im_end|> <|im_start|>assistant tmpfile=`mktemp`<|im_end|>
Creates temporary file and saves path to it in a 'tmpfile' variable.
tmpfile=`mktemp`
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 Creates temporary file by template provided in option '-t'.<|im_end|> <|im_start|>assistant mktemp -t identifier.XXXXXXXXXX<|im_end|>
Creates temporary file by template provided in option '-t'.
mktemp -t identifier.XXXXXXXXXX
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 Creates temporary file in $appdir variable with name formatted like expression in variable ${template}, and saves path to it in 'launcherfile'...
Creates temporary file in $appdir variable with name formatted like expression in variable ${template}, and saves path to it in 'launcherfile' variable.
launcherfile=$(mktemp -p "$appdir" "$template")
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 Creates temporary file in a current folder and saves path to it in 'f' variable.<|im_end|> <|im_start|>assistant f=`mktemp -p .`<|im_end|>
Creates temporary file in a current folder and saves path to it in 'f' variable.
f=`mktemp -p .`
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 Creates temporary file in a current folder with name formatted like 'templateXXXXXX', and saves path to it in 'tempfile' variable.<|im_end|> <...
Creates temporary file in a current folder with name formatted like 'templateXXXXXX', and saves path to it in 'tempfile' variable.
tempfile=$(mktemp $(pwd)/templateXXXXXX)
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 Creates temporary file in a TMPDIR folder or /tmp folder if TMPDIR doesn`t defined, with file name like current shell name and '-XXXXX'-format...
Creates temporary file in a TMPDIR folder or /tmp folder if TMPDIR doesn`t defined, with file name like current shell name and '-XXXXX'-formatted suffix, and saves created path to the 'tempFile' variable.
tempFile="$(mktemp "${TMPDIR:-/tmp/}$(basename "$0")-XXXXX")"
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 Creates temporary file in default folder and saves path to it in 'source' variable.<|im_end|> <|im_start|>assistant source=`mktemp`<|im_end|>
Creates temporary file in default folder and saves path to it in 'source' variable.
source=`mktemp`
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 Creates temporary file in TMPDIR folder or /tmp/ if TMPDIR is not defined, named by template ${tempname}.XXXXXX, and saves path to new file in...
Creates temporary file in TMPDIR folder or /tmp/ if TMPDIR is not defined, named by template ${tempname}.XXXXXX, and saves path to new file in a TMPPS_PREFIX variable.
TMPPS_PREFIX=$(mktemp "${TMPDIR:-/tmp/}${tempname}.XXXXXX")
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 Creates temporary file name and saves path to it in 'TMP_FILE' variable.<|im_end|> <|im_start|>assistant TMP_FILE="$(mktemp -t)"<|im_end|>
Creates temporary file name and saves path to it in 'TMP_FILE' variable.
TMP_FILE="$(mktemp -t)"
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 Creates temporary file with appended suffix '.cmd' and saves path to it in 'LGT_TEMP_FILE' variable.<|im_end|> <|im_start|>assistant LGT_TEMP_...
Creates temporary file with appended suffix '.cmd' and saves path to it in 'LGT_TEMP_FILE' variable.
LGT_TEMP_FILE="$(mktemp --suffix .cmd)"
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 Creates temporary file with name formatted like '.script.XXXXXX' in '/tmp/' folder and saves path to it in 'script1' variable.<|im_end|> <|im_...
Creates temporary file with name formatted like '.script.XXXXXX' in '/tmp/' folder and saves path to it in 'script1' variable.
script1=`mktemp /tmp/.script.XXXXXX`;
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 Creates temporary file with name formatted like '.script.XXXXXX' in '/tmp/' folder and saves path to it in 'script2' variable.<|im_end|> <|im_...
Creates temporary file with name formatted like '.script.XXXXXX' in '/tmp/' folder and saves path to it in 'script2' variable.
script2=`mktemp /tmp/.script.XXXXXX`;
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 Creates temporary file with name formatted like 'emacs-manager.XXXXXX' in '/tmp/' folder and saves path to it in 'tmp_file' variable.<|im_end|...
Creates temporary file with name formatted like 'emacs-manager.XXXXXX' in '/tmp/' folder and saves path to it in 'tmp_file' variable.
tmp_file=`mktemp --tmpdir=/tmp emacs-manager.XXXXXX`
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 Creates temporary file with name formatted like expression in variable ${PROG}, and saves path to it in 'mytemp' variable.<|im_end|> <|im_star...
Creates temporary file with name formatted like expression in variable ${PROG}, and saves path to it in 'mytemp' variable.
mytemp="$(mktemp -t "${PROG}")"
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 Creates temporary folder, and saves current folder path joined with created temporary folder path in 'tdir' variable.<|im_end|> <|im_start|>...
Creates temporary folder, and saves current folder path joined with created temporary folder path in 'tdir' variable.
tdir="$(pwd)/$(mktemp -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 Creates temporary folder and saves path to it in 'other' variable.<|im_end|> <|im_start|>assistant other="$(mktemp --directory)"<|im_end|>
Creates temporary folder and saves path to it in 'other' variable.
other="$(mktemp --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 Creates temporary folder and saves path to it in 'td' variable.<|im_end|> <|im_start|>assistant td=$( mktemp -d )<|im_end|>
Creates temporary folder and saves path to it in 'td' variable.
td=$( mktemp -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 Creates temporary folder and saves path to it in a 'tempd' variable.<|im_end|> <|im_start|>assistant tempd=`mktemp -d`<|im_end|>
Creates temporary folder and saves path to it in a 'tempd' variable.
tempd=`mktemp -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 Creates temporary folder and save path to that in a TMPDIR variable.<|im_end|> <|im_start|>assistant TMPDIR=$(mktemp -d)<|im_end|>
Creates temporary folder and save path to that in a TMPDIR variable.
TMPDIR=$(mktemp -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 Creates temporary folder in /tmp/ (by default) with 10-letter suffux.<|im_end|> <|im_start|>assistant mktemp -d -t<|im_end|>
Creates temporary folder in /tmp/ (by default) with 10-letter suffux.
mktemp -d -t
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 Creates temporary folder in a TMPDIR folder or /tmp folder if TMPDIR doesn`t defined, with folder name like current shell name and 10-letter s...
Creates temporary folder in a TMPDIR folder or /tmp folder if TMPDIR doesn`t defined, with folder name like current shell name and 10-letter suffix, and saves created path in 'mydir' variable.
mydir=$(mktemp -d "${TMPDIR:-/tmp/}$(basename $0).XXXXXXXXXXXX")
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 Creates temporary folder in TMPDIR (if defined) or in '/tmp/', and stores path to created folder in 'dir' variable.<|im_end|> <|im_start|>assi...
Creates temporary folder in TMPDIR (if defined) or in '/tmp/', and stores path to created folder in 'dir' variable.
dir=$(mktemp -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 Creates temporary folder in TMPDIR (if defined) or in '/tmp/', and stores path to created folder in 'tmpdir' variable.<|im_end|> <|im_start|>a...
Creates temporary folder in TMPDIR (if defined) or in '/tmp/', and stores path to created folder in 'tmpdir' variable.
tmpdir=$(mktemp -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 Creates temporary folder like '/tmp/tardir-XXXXXX' with 6-letter suffix and saves its path in 'tmpdir' variable.<|im_end|> <|im_start|>assista...
Creates temporary folder like '/tmp/tardir-XXXXXX' with 6-letter suffix and saves its path in 'tmpdir' variable.
tmpdir=$(mktemp -d /tmp/tardir-XXXXXX)
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 Creates temporary folder relative to directory '/path/to/dir'.<|im_end|> <|im_start|>assistant mktemp -d -p /path/to/dir<|im_end|>
Creates temporary folder relative to directory '/path/to/dir'.
mktemp -d -p /path/to/dir
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 Creates temporary folder within a $mnt_dir folder and saves path to it in a 'rsync_src' variable.<|im_end|> <|im_start|>assistant rsync_src=`m...
Creates temporary folder within a $mnt_dir folder and saves path to it in a 'rsync_src' variable.
rsync_src=`mktemp -d -p $mnt_dir`
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 Creates temporary folder within TMPDIR, with name like current shell name and 10-letter suffix.<|im_end|> <|im_start|>assistant mktemp -dt "$(...
Creates temporary folder within TMPDIR, with name like current shell name and 10-letter suffix.
mktemp -dt "$(basename $0).XXXXXXXXXX"
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 Cut off three last symbols from string '1234567890 *'<|im_end|> <|im_start|>assistant echo '1234567890 *' | rev | cut -c 4- | rev<|im_end|>
Cut off three last symbols from string '1234567890 *'
echo '1234567890 *' | rev | cut -c 4- | rev
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 Cuts off last part from the path $dir, and deletes resulted folder if empty.<|im_end|> <|im_start|>assistant rmdir "$(dirname $dir)"<|im_end|>
Cuts off last part from the path $dir, and deletes resulted folder if empty.
rmdir "$(dirname $dir)"
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 Decompress "/file/address/file.tar.gz" to standard output<|im_end|> <|im_start|>assistant gzip -dc /file/address/file.tar.gz<|im_end|>
Decompress "/file/address/file.tar.gz" to standard output
gzip -dc /file/address/file.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 Decompress "path/to/test/file.gz" to standard output and save all lines matching "my regex" and not matching "other regex" to files with a 100...
Decompress "path/to/test/file.gz" to standard output and save all lines matching "my regex" and not matching "other regex" to files with a 1000000 line limit
gzip -dc path/to/test/file.gz | grep -P 'my regex' | grep -vP 'other regex' | split -dl1000000 - 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 Decompress "path/to/test/file.gz" to standard output and save all lines matching "my regex" to files with a 1000000 line limit<|im_end|> <|im_...
Decompress "path/to/test/file.gz" to standard output and save all lines matching "my regex" to files with a 1000000 line limit
gzip -dc path/to/test/file.gz | grep -P --regexp='my regex' | split -dl1000000 - 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 Decompress "path/to/test/file.gz" to standard output and save all lines matching "my regex" to files with a 1000000 line limit<|im_end|> <|im_...
Decompress "path/to/test/file.gz" to standard output and save all lines matching "my regex" to files with a 1000000 line limit
gzip -dc path/to/test/file.gz | grep -P --regexp='my regex' | split -l1000000
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 Decompress ${set1[@]} files with gzip<|im_end|> <|im_start|>assistant gzip -d ${set1[@]} &<|im_end|>
Decompress ${set1[@]} files with gzip
gzip -d ${set1[@]} &
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 Decompress 'file.gz'<|im_end|> <|im_start|>assistant gzip -d file.gz<|im_end|>
Decompress 'file.gz'
gzip -d file.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 Decompress 'file.gz' to standard output and execute the output in bash<|im_end|> <|im_start|>assistant gzip -d --stdout file.gz | bash<|im_end...
Decompress 'file.gz' to standard output and execute the output in bash
gzip -d --stdout file.gz | bash
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 Decompress and unarchive "hello-0.2.tar.gz"<|im_end|> <|im_start|>assistant gzip -dc hello-0.2.tar.gz | tar -xf -<|im_end|>
Decompress and unarchive "hello-0.2.tar.gz"
gzip -dc hello-0.2.tar.gz | tar -xf -
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 Decompress and extract '/usr/src/redhat/SOURCES/source-one.tar.gz'<|im_end|> <|im_start|>assistant gzip -dc /usr/src/redhat/SOURCES/source-one...
Decompress and extract '/usr/src/redhat/SOURCES/source-one.tar.gz'
gzip -dc /usr/src/redhat/SOURCES/source-one.tar.gz | tar -xvvf -
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 Decompress and extract 'archive.tar.gz' into '/destination'<|im_end|> <|im_start|>assistant gzip -dc archive.tar.gz | tar -xf - -C /destinatio...
Decompress and extract 'archive.tar.gz' into '/destination'
gzip -dc archive.tar.gz | tar -xf - -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 Decompress and sort "$part0" and "$part1" of files in different processes<|im_end|> <|im_start|>assistant sort -m <(zcat $part0 | sort) <(zcat...
Decompress and sort "$part0" and "$part1" of files in different processes
sort -m <(zcat $part0 | sort) <(zcat $part1 | 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 Decompresses each of "*bz2" files under the current folder, redirecting output to the standard out, and prints only fourth of comma-separated ...
Decompresses each of "*bz2" files under the current folder, redirecting output to the standard out, and prints only fourth of comma-separated fields.
find . -name "*.bz2" -print0 | xargs -I{} -0 bzip2 -dc {} | cut -f, -d4
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 Decompresses file.<|im_end|> <|im_start|>assistant bzip2 -d /tmp/itunes20140618.tbz<|im_end|>
Decompresses file.
bzip2 -d /tmp/itunes20140618.tbz
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 Decompresses file 'xac.bz2', redirecting output to standard out.<|im_end|> <|im_start|>assistant bzip2 -dc xac.bz2<|im_end|>
Decompresses file 'xac.bz2', redirecting output to standard out.
bzip2 -dc xac.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 Delete all ".DS_Store" files/directories under test directory<|im_end|> <|im_start|>assistant find test -name ".DS_Store" -delete<|im_end|>
Delete all ".DS_Store" files/directories under test directory
find test -name ".DS_Store" -delete
GWHed/nl2bash