messages
listlengths
3
3
category
stringclasses
3 values
utility
stringclasses
89 values
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Can you write a script that retries a connection to backup.internal:5432 up to 10 times, sleeping 1s between attempts?" }, { "role": "assistant", "content": "#!/usr...
script
bash
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Find empty files in /home/alice." }, { "role": "assistant", "content": "find /home/alice -type f -empty" } ]
single
find
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Change the owner of backup.json to jenkins." }, { "role": "assistant", "content": "sudo chown jenkins backup.json" } ]
single
chown
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Copy output.css into the tests directory." }, { "role": "assistant", "content": "cp output.css tests/" } ]
single
cp
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "send a GET request to https://192.168.1.10/api and show the response headers" }, { "role": "assistant", "content": "curl -I https://192.168.1.10/api" } ]
single
curl
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "list only the .jpg files in images" }, { "role": "assistant", "content": "ls images | grep '\\.jpg$'" } ]
pipeline
ls
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Count how many lines in kern.log match 'timeout'." }, { "role": "assistant", "content": "grep -c 'timeout' kern.log" } ]
single
grep
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "replace tabs with commas in settings.csv and write to settings.csv.csv" }, { "role": "assistant", "content": "sed 's/\\t/,/g' settings.csv > settings.csv.csv" } ]
pipeline
sed
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Change the owner of dump.js to jenkins." }, { "role": "assistant", "content": "sudo chown jenkins dump.js" } ]
single
chown
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Give me an init-style dispatcher for the prometheus service with case on $1." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -eu...
script
case
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Can you write a script that retries a connection to auth.internal:5432 up to 4 times, sleeping 5s between attempts?" }, { "role": "assistant", "c...
script
bash
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Find the 10 most common 'refused'-related lines in messages." }, { "role": "assistant", "content": "grep 'refused' messages | sort | uniq -c | sort -n...
pipeline
grep
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "search all .sql files under reports for the word TODO" }, { "role": "assistant", "content": "find reports -name '*.sql' -print0 | xargs -0 grep -l TOD...
pipeline
find
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Show CPU and disk I/O stats every 10 seconds, 3 times." }, { "role": "assistant", "content": "iostat 10 3" } ]
single
iostat
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Show the top 15 processes by memory." }, { "role": "assistant", "content": "ps aux --sort=-%mem | head -n 16" } ]
pipeline
ps
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Show the 10 largest subdirectories in /home/alice." }, { "role": "assistant", "content": "du -h /home/alice/* | sort -rh | head -n 10" } ]
pipeline
du
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "I need a script that accepts --input (-i), --name (-n) and --count (-c) via getopts, with a usage message." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -euo pipefail\ninput=\"\...
script
getopts
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "replace tabs with commas in order.ini and write to order.ini.csv" }, { "role": "assistant", "content": "sed 's/\\t/,/g' order.ini > order.ini.csv" }...
pipeline
sed
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Count '404' occurrences in the ssh journal today." }, { "role": "assistant", "content": "journalctl -u ssh --since today --no-pager | grep -c '404'" ...
pipeline
journalctl
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "search all .txt files under scripts for the word TODO" }, { "role": "assistant", "content": "find scripts -name '*.txt' -print0 | xargs -0 grep -...
pipeline
find
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Change the owner of report.sh to www-data." }, { "role": "assistant", "content": "sudo chown www-data report.sh" } ]
single
chown
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "I need a rotating backup: archive backups into /data/backup with gzip, retain 5 copies." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nse...
script
tar
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Move error.txt into the assets folder." }, { "role": "assistant", "content": "mv error.txt assets/" } ]
single
mv
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Where is the python3 binary located?" }, { "role": "assistant", "content": "which python3" } ]
single
which
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Read config.log, then convert everything to uppercase — as a pipeline." }, { "role": "assistant", "content": "cat config.log | tr 'a-z' 'A-Z'" ...
pipeline
tr
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Append the current date to messages." }, { "role": "assistant", "content": "date >> messages" } ]
pipeline
redirection
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Loop through the .css files in /var/www and prints the line count of each file — write it as a proper script." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -euo pipefail\ndir=/v...
script
wc
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Give me a script that iterates over logs/*.md and prints the line count of each file." }, { "role": "assistant", "content": "#!/usr/bin/env bash\...
script
wc
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Set error.xml to permissions 644." }, { "role": "assistant", "content": "chmod 644 error.xml" } ]
single
chmod
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "print lines of inventory.csv where column 2 is greater than 100" }, { "role": "assistant", "content": "awk '$2 > 100' inventory.csv" } ]
single
awk
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Write a small script that categorizes a filename by extension using case (is a .png an image, archive, doc?)." }, { "role": "assistant", "content...
script
case
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Tally how many times each log level appears in cron.log." }, { "role": "assistant", "content": "grep -oE '(INFO|WARN|ERROR|DEBUG)' cron.log | so...
pipeline
grep
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Loop over every .csv file in /opt/app and append its sha256 checksum to checksums.txt." }, { "role": "assistant", "content": "#!/usr/bin/env bash...
script
for
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "List the files opened by process 7291." }, { "role": "assistant", "content": "lsof -p 7291" } ]
single
lsof
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Remove write permission for group and others on transaction.sh." }, { "role": "assistant", "content": "chmod go-w transaction.sh" } ]
single
chmod
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "I need a retry wrapper around connection to registry.local:5432: 10 attempts, 3s apart." }, { "role": "assistant", "content": "#!/usr/bin/env ba...
script
bash
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Write a health check that reports UP/DOWN for the postgres process via its exit code." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset ...
script
if
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Fetch JSON from https://staging.service.io/api/users and pretty-print it with jq." }, { "role": "assistant", "content": "curl -s https://staging...
pipeline
curl
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Is the fail2ban service currently active?" }, { "role": "assistant", "content": "systemctl is-active fail2ban" } ]
single
systemctl
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "list the distinct error messages in gateway.log" }, { "role": "assistant", "content": "grep -i error gateway.log | sort -u" } ]
pipeline
grep
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Show every open file under /var/log." }, { "role": "assistant", "content": "lsof +D /var/log" } ]
single
lsof
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "I need a bash script that makes a .bak copy of each file for all .cache files under /opt/app." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -euo pipefail\ndir=/opt/app\nfor f in...
script
cp
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Append the current date to app.log." }, { "role": "assistant", "content": "date >> app.log" } ]
pipeline
redirection
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "extract all the 'name' fields from https://db01.local/api/users" }, { "role": "assistant", "content": "curl -s https://db01.local/api/users | jq -r '.[].name'" } ]
pipeline
curl
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Change the owner of payload.csv to alice." }, { "role": "assistant", "content": "sudo chown alice payload.csv" } ]
single
chown
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Extract just the email addresses from order.tsv." }, { "role": "assistant", "content": "grep -oE '[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+' order.tsv | sort -u" } ]
pipeline
sed
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "get the number of items in the JSON array at https://backup.example.com/api/items" }, { "role": "assistant", "content": "curl -s https://backup.e...
pipeline
curl
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "How many words are in auth.xml?" }, { "role": "assistant", "content": "wc -w auth.xml" } ]
single
wc
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Process all .html files under /var/www with checksum with sha256sum using 8 parallel workers via xargs." }, { "role": "assistant", "content": "#!/usr/...
script
xargs
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "copy the whole reports folder to reports_copy recursively" }, { "role": "assistant", "content": "cp -r reports reports_copy" } ]
single
cp
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Count how many java processes are running." }, { "role": "assistant", "content": "pgrep -c java" } ]
pipeline
pgrep
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Show me how to follow the mariadb journal but only show lines mentioning 'segfault'." }, { "role": "assistant", "content": "journalctl -u mariadb -f | grep --line-buffered -i 'segfault'" } ]
pipeline
journalctl
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Delete the first line of account.ini in place." }, { "role": "assistant", "content": "sed -i '1d' account.ini" } ]
single
sed
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Find files in /home/deploy owned by www-data." }, { "role": "assistant", "content": "find /home/deploy -type f -user www-data" } ]
single
find
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Read servers.txt and for each host, report UP/DOWN based on whether it pings each host once." }, { "role": "assistant", "content": "#!/usr/bin/env bas...
script
ping
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "replace tabs with commas in credentials.log and write to credentials.log.csv" }, { "role": "assistant", "content": "sed 's/\\t/,/g' credentials.l...
pipeline
sed
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "recursively search public for 'dropped' and show line numbers" }, { "role": "assistant", "content": "grep -rn 'dropped' public" } ]
single
grep
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Given payment.tsv, strip trailing whitespace." }, { "role": "assistant", "content": "cat payment.tsv | sed 's/[[:space:]]*$//'" } ]
pipeline
sed
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Find the biggest files under logs." }, { "role": "assistant", "content": "du -ah logs | sort -rh | head -n 20" } ]
pipeline
du
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Show the total size of the backup directory in human-readable form." }, { "role": "assistant", "content": "du -sh backup" } ]
single
du
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Back up /opt/app to /var/backups as a dated xz archive, pruning all but the last 3 backups." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -euo pip...
script
tar
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Show the top 5 most frequent values in field 7 of the comma-separated file auth.log." }, { "role": "assistant", "content": "cut -d, -f7 auth.log ...
pipeline
cut
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "What are the disk usage of config broken down one level deep?" }, { "role": "assistant", "content": "du -h --max-depth=1 config 2>/dev/null | sort -rh" } ]
pipeline
du
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Write a script that verifies the environment variables PORT, API_KEY and REDIS_URL are all set before running." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -euo pipefail\nfor v...
script
env
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Recursively set owner and group of lib to svc-app:developers." }, { "role": "assistant", "content": "sudo chown -R svc-app:developers lib" } ]
single
chown
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "I need getopts handling for three options: -i, -t and -o; print usage on bad input." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -e...
script
getopts
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Show the 10 largest subdirectories in media." }, { "role": "assistant", "content": "du -h media/* | sort -rh | head -n 10" } ]
pipeline
du
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Create and switch to a new branch called main." }, { "role": "assistant", "content": "git checkout -b main" } ]
single
git
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Find files in media larger than +2G." }, { "role": "assistant", "content": "find media -type f -size +2G" } ]
single
find
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "which directories under downloads are eating the most space?" }, { "role": "assistant", "content": "du -h --max-depth=1 downloads | sort -rh" } ]
pipeline
du
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "change just the group of test.yaml to mysql" }, { "role": "assistant", "content": "sudo chgrp mysql test.yaml" } ]
single
chown
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Count error lines in the rabbitmq journal since yesterday." }, { "role": "assistant", "content": "journalctl -u rabbitmq --since yesterday | grep...
pipeline
journalctl
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "get the number of items in the JSON array at https://db01.corp.net/api/items" }, { "role": "assistant", "content": "curl -s https://db01.corp.net/api/items | jq 'le...
pipeline
curl
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Give me a script that iterates over /mnt/storage/*.css and compresses each file with gzip." }, { "role": "assistant", "content": "#!/usr/bin/env...
script
gzip
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Show me how to list the unique 'WARNING' messages in build.log." }, { "role": "assistant", "content": "grep 'WARNING' build.log | sort -u" } ]
pipeline
grep
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Show me the disk usage of logs broken down one level deep." }, { "role": "assistant", "content": "du -h --max-depth=1 logs 2>/dev/null | sort -rh" } ]
pipeline
du
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Find the biggest files under uploads." }, { "role": "assistant", "content": "du -ah uploads | sort -rh | head -n 20" } ]
pipeline
du
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "search all .sql files under include for the word TODO" }, { "role": "assistant", "content": "find include -name '*.sql' -print0 | xargs -0 grep -l TODO" } ]
pipeline
find
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Back up backups to /mnt/backup as a dated gzip archive, pruning all but the last 5 backups." }, { "role": "assistant", "content": "#!/usr/bin/en...
script
tar
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Loop over every .log file in images and gzip any that are larger than 10MB." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -euo pipefail\nfor f in ...
script
for
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Display the ancestors of process 5439 as a tree." }, { "role": "assistant", "content": "pstree -s 5439" } ]
single
pstree
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Write a start/stop/restart/status control script for elasticsearch using a case statement." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -euo pipefail\nsvc=elasticsearch\ncase \...
script
case
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "locate files under build modified in the last 1 days" }, { "role": "assistant", "content": "find build -type f -mtime -1" } ]
single
find
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Count how many unique IP-like first fields appear in syslog." }, { "role": "assistant", "content": "awk '{print $1}' syslog | sort | uniq -c | s...
pipeline
grep
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Print only lines 10 through 20 of payload.log." }, { "role": "assistant", "content": "sed -n '10,20p' payload.log" } ]
single
sed
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Show me the disk usage of static broken down one level deep." }, { "role": "assistant", "content": "du -h --max-depth=1 static 2>/dev/null | sort -rh" } ]
pipeline
du
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Give me an init-style dispatcher for the containerd service with case on $1." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -euo pipefail\nsvc=containerd\ncase \"${1:-}\" in\n s...
script
case
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "give the owner rwx and everyone else read on index.pdf" }, { "role": "assistant", "content": "chmod 744 index.pdf" } ]
single
chmod
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "I need a rotating backup: archive logs into /srv/backup with bzip2, retain 3 copies." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -euo pipefail\nsrc=logs\ndest=/srv/backup\nkee...
script
tar
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Show the value of the PATH environment variable." }, { "role": "assistant", "content": "echo $PATH" } ]
single
env
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Write a shell script that accepts --dir (-d), --count (-c) and --output (-o) via getopts, with a usage message." }, { "role": "assistant", "content": "#!/usr/bin/en...
script
getopts
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Given payment.md, sort it and drop duplicate lines." }, { "role": "assistant", "content": "cat payment.md | sort -u" } ]
pipeline
sort
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "List just the filenames under /var/lib/mysql that contain 'dropped'." }, { "role": "assistant", "content": "grep -rl 'dropped' /var/lib/mysql" } ]
single
grep
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Extract just the email addresses from customer.csv." }, { "role": "assistant", "content": "grep -oE '[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+' customer.c...
pipeline
sed
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "change just the group of product.md to developers" }, { "role": "assistant", "content": "sudo chgrp developers product.md" } ]
single
chown
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "locate files under build modified in the last 3 days" }, { "role": "assistant", "content": "find build -type f -mtime -3" } ]
single
find
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "For error.tmp, show the last 20 lines." }, { "role": "assistant", "content": "tail -n 20 error.tmp" } ]
single
tail
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Set export.md to permissions 644." }, { "role": "assistant", "content": "chmod 644 export.md" } ]
single
chmod
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Write a Bash script that accepts --count (-c), --input (-i) and --tag (-t) via getopts, with a usage message." }, { "role": "assistant", "content...
script
getopts
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Get fields 1 and 3 from inventory.csv, colon separated." }, { "role": "assistant", "content": "cut -d: -f1,3 inventory.csv" } ]
single
cut