messages
listlengths
3
3
category
stringclasses
3 values
utility
stringclasses
89 values
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "move all .js files into the data directory" }, { "role": "assistant", "content": "mv *.js data/" } ]
single
mv
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Take access.md and sort it and drop duplicate lines." }, { "role": "assistant", "content": "cat access.md | sort -u" } ]
pipeline
sort
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Update the package index and upgrade all packages." }, { "role": "assistant", "content": "sudo apt update && sudo apt upgrade -y" } ]
single
apt
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Write a shell script that verifies the environment variables PORT, REDIS_URL and ENV are all set before running." }, { "role": "assistant", "content":...
script
env
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "which directories under /data/uploads are eating the most space?" }, { "role": "assistant", "content": "du -h --max-depth=1 /data/uploads | sort -rh" ...
pipeline
du
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "I need a bash script that compresses each file with gzip for all .md files under /srv/data." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -euo pipefail\ndir=/srv/data\nfor f in ...
script
gzip
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "From auth.md, strip trailing whitespace." }, { "role": "assistant", "content": "cat auth.md | sed 's/[[:space:]]*$//'" } ]
pipeline
sed
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Show me how to list the unique 'Connection refused' messages in output.log." }, { "role": "assistant", "content": "grep 'Connection refused' output.log | sort -u" ...
pipeline
grep
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "For each .tmp file under /home/deploy, record a sha256 checksum in a manifest file." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -euo pipefail\ns...
script
for
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "What are the 20 largest subdirectories of src?" }, { "role": "assistant", "content": "du -h src/* 2>/dev/null | sort -rh | head -n 20" } ]
pipeline
du
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "What are the 20 biggest files under cache?" }, { "role": "assistant", "content": "find cache -type f -printf '%s %p\\n' 2>/dev/null | sort -rn | head ...
pipeline
find
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "What are the 5 most common entries in column 9 of syslog?" }, { "role": "assistant", "content": "cut -d, -f9 syslog | sort | uniq -c | sort -nr | head...
pipeline
cut
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "In sales.csv, which 10 values of column 4 occur most often?" }, { "role": "assistant", "content": "awk '{print $4}' sales.csv | sort | uniq -c |...
pipeline
awk
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "I want a cleanup script for /var/log that purges .old files older than 14 days." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -...
script
find
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Make 14 day-stamped folders under /srv/backup using a for loop over a date range." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset...
script
for
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Sort event.tsv numerically in reverse order." }, { "role": "assistant", "content": "sort -nr event.tsv" } ]
single
sort
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Count total lines across all .tmp files in templates." }, { "role": "assistant", "content": "find templates -type f -name '*.tmp' -print0 | xargs -0 cat | wc -l" } ]
pipeline
find
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "list the distinct error messages in output.log" }, { "role": "assistant", "content": "grep -i error output.log | sort -u" } ]
pipeline
grep
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "get the number of items in the JSON array at https://app01.corp.net/api/items" }, { "role": "assistant", "content": "curl -s https://app01.corp....
pipeline
curl
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "I need a script that accepts --name (-n), --port (-p) and --input (-i) via getopts, with a usage message." }, { "role": "assistant", "content": ...
script
getopts
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Show which process is using port 27017." }, { "role": "assistant", "content": "lsof -i :27017" } ]
single
lsof
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "recursively search /srv/www for 'throttled' and show line numbers" }, { "role": "assistant", "content": "grep -rn 'throttled' /srv/www" } ]
single
grep
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "I want a cleanup script for uploads that purges .cache files older than 90 days." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -euo ...
script
find
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Find all .py files under downloads and delete them. (Careful: destructive.)" }, { "role": "assistant", "content": "find downloads -type f -name '...
pipeline
find
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Find files in releases owned by svc-app." }, { "role": "assistant", "content": "find releases -type f -user svc-app" } ]
single
find
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Print column 4 of the comma-separated file data.csv." }, { "role": "assistant", "content": "awk -F, '{print $4}' data.csv" } ]
single
awk
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Can you write a script that categorizes a filename by extension using case (is a .csv an image, archive, doc?)?" }, { "role": "assistant", "cont...
script
case
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Search metrics.log for lines containing 'failed'." }, { "role": "assistant", "content": "grep 'failed' metrics.log" } ]
single
grep
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Parse orders.csv as comma-separated id,name,email using while read and print each name." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -euo pipefai...
script
while
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Check the status of docker." }, { "role": "assistant", "content": "systemctl status docker" } ]
single
systemctl
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Write a shell script that loops over every .log file in /srv/data and prints the line count of each file." }, { "role": "assistant", "content": "#!/us...
script
wc
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Find the most recently modified file in backup." }, { "role": "assistant", "content": "ls -t backup | head -n 1" } ]
pipeline
ls
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "From order.yaml, count each unique line, most common first." }, { "role": "assistant", "content": "cat order.yaml | sort | uniq -c | sort -nr" } ]
pipeline
uniq
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Create a script that refuses to run unless it's executed as root." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -euo pipefail\nif [ \"$(id -u)\" -ne 0 ]; then\n echo \"this scr...
script
if
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Find the biggest files under project." }, { "role": "assistant", "content": "du -ah project | sort -rh | head -n 20" } ]
pipeline
du
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "How many lines in kern.log mention 'null'?" }, { "role": "assistant", "content": "grep -c 'null' kern.log | cat" } ]
pipeline
grep
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Which processes have files open in cache?" }, { "role": "assistant", "content": "lsof +D cache" } ]
single
lsof
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "List the disk usage of vendor broken down one level deep." }, { "role": "assistant", "content": "du -h --max-depth=1 vendor 2>/dev/null | sort -rh" } ]
pipeline
du
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Show established connections on port 80." }, { "role": "assistant", "content": "lsof -i :80 -sTCP:ESTABLISHED" } ]
single
lsof
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "change just the group of results.pdf to sudo" }, { "role": "assistant", "content": "sudo chgrp sudo results.pdf" } ]
single
chown
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Create a symbolic link named latest.log pointing to dump.tar.gz." }, { "role": "assistant", "content": "ln -s dump.tar.gz latest.log" } ]
single
ln
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "List the disk usage of migrations broken down one level deep." }, { "role": "assistant", "content": "du -h --max-depth=1 migrations 2>/dev/null ...
pipeline
du
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Run 'make -j4' at a lower priority (nice 1)." }, { "role": "assistant", "content": "nice -n 1 make -j4" } ]
single
nice
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Create a script that dumps every PostgreSQL database into its own gzip file under /var/backups, keeping 14 days." }, { "role": "assistant", "cont...
script
pg_dump
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Give me a frequency tally of column 7 in metrics.log and show the 15 biggest." }, { "role": "assistant", "content": "awk '{print $7}' metrics.log | sort | uniq -c | sort -nr | head -n 15" } ]
pipeline
awk
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "list only the .pdf files in cache" }, { "role": "assistant", "content": "ls cache | grep '\\.pdf$'" } ]
pipeline
ls
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Change the owner of config.tmp to deploy." }, { "role": "assistant", "content": "sudo chown deploy config.tmp" } ]
single
chown
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "I want a cleanup script for cache that purges .cache files older than 1 days." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -euo pipefail\ntarget=cache\nage=1\n[ -d \"$target\" ...
script
find
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Tally column 7 of products.tsv and print the 10 top values by count." }, { "role": "assistant", "content": "cut -d, -f7 products.tsv | sort | uniq -c | sort -nr | head -n 10" } ]
pipeline
cut
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Write a shell script that requires exactly two arguments (source and destination) and errors out otherwise." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -euo pipefail\nif [ \"$...
script
args
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Write a start/stop/restart/status control script for mariadb using a case statement." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -...
script
case
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Write a shell script that generates an nginx config file for example.com using a here-document." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -euo...
script
heredoc
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "I need getopts handling for three options: -o, -i and -p; print usage on bad input." }, { "role": "assistant", "content": "#!/usr/bin/env bash\n...
script
getopts
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "enable mariadb to start on boot" }, { "role": "assistant", "content": "sudo systemctl enable mariadb" } ]
single
systemctl
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "How many connections are there to port 2379?" }, { "role": "assistant", "content": "ss -tn | grep ':2379' | wc -l" } ]
pipeline
ss
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "move all .html files into the assets directory" }, { "role": "assistant", "content": "mv *.html assets/" } ]
single
mv
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Recursively set owner and group of vendor to www-data:docker." }, { "role": "assistant", "content": "sudo chown -R www-data:docker vendor" } ]
single
chown
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Append the current date to api.log." }, { "role": "assistant", "content": "date >> api.log" } ]
pipeline
redirection
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "How do I list the PIDs of haproxy sorted by memory use?" }, { "role": "assistant", "content": "ps -C haproxy -o pid=,rss= --sort=-rss" } ]
pipeline
ps
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "change permissions to 644 on all files under backup" }, { "role": "assistant", "content": "find backup -type f -print0 | xargs -0 chmod 644" }...
pipeline
find
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Read notes.csv, then keep only non-empty lines — as a pipeline." }, { "role": "assistant", "content": "cat notes.csv | grep -v '^$'" } ]
pipeline
grep
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Show lines in gateway.log that do NOT contain 'OutOfMemory'." }, { "role": "assistant", "content": "grep -v 'OutOfMemory' gateway.log" } ]
single
grep
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "get the number of items in the JSON array at https://staging.corp.net/api/items" }, { "role": "assistant", "content": "curl -s https://staging.corp.net/api/items | jq 'length'" } ]
pipeline
curl
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Count how often each column-9 value appears in sales.tsv; show the 10 most common." }, { "role": "assistant", "content": "cut -d, -f9 sales.tsv ...
pipeline
cut
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Remove adjacent duplicate lines from the already-sorted data.tsv." }, { "role": "assistant", "content": "uniq data.tsv" } ]
single
uniq
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Set changelog.md to permissions 644." }, { "role": "assistant", "content": "chmod 644 changelog.md" } ]
single
chmod
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Parse command-line flags -i (input), -c (count) and -t (tag) using getopts and validate that -i is provided." }, { "role": "assistant", "content": "#!/usr/bin/env b...
script
getopts
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "What are the disk usage of reports broken down one level deep?" }, { "role": "assistant", "content": "du -h --max-depth=1 reports 2>/dev/null | sort -rh" } ]
pipeline
du
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Write a backup script that gzip-compresses /var/www into a timestamped tarball under /backup and keeps only the 7 newest." }, { "role": "assistant", "content": "#!/usr/bin/env bash\nset -euo pipe...
script
tar
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Given credentials.ini, show the 20 longest lines." }, { "role": "assistant", "content": "cat credentials.ini | awk '{ print length, $0 }' | sort -rn | head -20 | cu...
pipeline
awk
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "strip leading whitespace from every line of settings.log and save to clean.txt" }, { "role": "assistant", "content": "sed 's/^[[:space:]]*//' settings.log > clean.t...
pipeline
sed
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Read customer.tsv, then sort it and drop duplicate lines — as a pipeline." }, { "role": "assistant", "content": "cat customer.tsv | sort -u" } ]
pipeline
sort
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "give the owner rwx and everyone else read on release.jpg" }, { "role": "assistant", "content": "chmod 744 release.jpg" } ]
single
chmod
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Make transaction.log executable." }, { "role": "assistant", "content": "chmod +x transaction.log" } ]
single
chmod
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Write a health-check loop over targets.txt that pings each host once and prints the status of each." }, { "role": "assistant", "content": "#!/usr...
script
ping
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Find files in backup owned by svc-app." }, { "role": "assistant", "content": "find backup -type f -user svc-app" } ]
single
find
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Change the owner of archive.tmp to ubuntu." }, { "role": "assistant", "content": "sudo chown ubuntu archive.tmp" } ]
single
chown
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "gzip every .log file under docs" }, { "role": "assistant", "content": "find docs -type f -name '*.log' -print0 | xargs -0 gzip" } ]
pipeline
find
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Show the unique sorted lines of export.ini." }, { "role": "assistant", "content": "cat export.ini | sort | uniq" } ]
pipeline
sort
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "show top output for just the containerd processes" }, { "role": "assistant", "content": "top -p $(pgrep -d, containerd)" } ]
single
top
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "extract backup.tar.gz into the modules folder" }, { "role": "assistant", "content": "tar -xzf backup.tar.gz -C modules" } ]
single
tar
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Sort migration.json and remove duplicate lines." }, { "role": "assistant", "content": "sort -u migration.json" } ]
single
sort
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Check if invoice.old exists and cat it, otherwise say it's missing." }, { "role": "assistant", "content": "[ -f invoice.old ] && cat invoice.old ...
pipeline
chain
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Please determine what kind of file it is in audit.bak." }, { "role": "assistant", "content": "file audit.bak" } ]
single
file
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Write a small script that deletes .tmp files older than 7 days from /var/cache and logs what it removed." }, { "role": "assistant", "content": "#...
script
find
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "What kernel release is this machine running?" }, { "role": "assistant", "content": "uname -r" } ]
single
uname
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Recursively make everything in docs readable and writable by the owner only." }, { "role": "assistant", "content": "chmod -R 600 docs" } ]
single
chmod
[ { "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://auth.example.com/api/items" }, { "role": "assistant", "content": "curl -s https://auth.example.com/api/items | ...
pipeline
curl
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "extract backup.tar.gz into the backup folder" }, { "role": "assistant", "content": "tar -xzf backup.tar.gz -C backup" } ]
single
tar
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Take response.ini and keep only non-empty lines." }, { "role": "assistant", "content": "cat response.ini | grep -v '^$'" } ]
pipeline
grep
[ { "role": "system", "content": "You are a helpful assistant that writes correct, idiomatic Bash commands." }, { "role": "user", "content": "Write a script that prints a small system report: hostname, uptime, disk and memory usage." }, { "role": "assistant", "content": "#!/usr/bin/env...
script
report
[ { "role": "system", "content": "You are a Bash expert." }, { "role": "user", "content": "Total the resident memory of all node processes in MB." }, { "role": "assistant", "content": "ps -C node -o rss= | awk '{s+=$1} END{print s/1024 \" MB\"}'" } ]
pipeline
ps
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Show the contents of the scripts directory sorted by modification time, newest first." }, { "role": "assistant", "content": "ls -lt scripts" } ]
single
ls
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "List only directories inside /etc/apache2." }, { "role": "assistant", "content": "ls -d /etc/apache2/*/" } ]
single
ls
[ { "role": "system", "content": "You are a Linux shell expert. Respond with Bash only." }, { "role": "user", "content": "Write a script that retries a curl to https://db02.internal/health up to 5 times with a 2-second backoff." }, { "role": "assistant", "content": "#!/usr/bin/env bash...
script
retry
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Find the 20 hottest values in column 1 of kern.log (by frequency)." }, { "role": "assistant", "content": "awk '{print $1}' kern.log | sort | uniq -c |...
pipeline
awk
[ { "role": "system", "content": "You are a command-line assistant specializing in Bash and GNU coreutils." }, { "role": "user", "content": "Find the 20 hottest values in column 7 of report.csv (by frequency)." }, { "role": "assistant", "content": "awk '{print $7}' report.csv | sort | ...
pipeline
awk
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Parse command-line flags -p (port), -d (dir) and -n (name) using getopts and validate that -p is provided." }, { "role": "assistant", "content": "#!/u...
script
getopts
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "strip leading whitespace from every line of inventory.csv and save to clean.txt" }, { "role": "assistant", "content": "sed 's/^[[:space:]]*//' invento...
pipeline
sed
[ { "role": "system", "content": "You translate natural-language requests into correct Bash commands." }, { "role": "user", "content": "Write a health-check loop over servers.txt that curls the /health endpoint and prints the status of each." }, { "role": "assistant", "content": "#!/us...
script
curl