Meta tags:
description= A collection of hand-crafted bash scripts for various common tasks. - pirate/bash-utils;
Headings (most frequently used words):
navigation, and, bash, repository, about, files, footer, topics, resources, stars, watchers, forks, tools, trap, dpkg, 04, utils, menu, latest, commit, history, folders, code, layout, reading, list, useful, helper, commands, releases, packages, contributors, languages, manpages, cli, explainer, articles, more, perl, pe, best, simple, find, replace, regex, unofficial, strict, mode, timeout, until, nohup, expect, getopts, argbash, pkill, eval, exec, pkgname, compare, versions, 20, ge, 18, 12, pipeexec, sed, truncate, strings, with, ellipsis, use, strace, to, catch, syscall, failures,
Text of the page (most frequently used words):
bash (67), https (49), github (30), com (30), and (27), scripts (21), for (21), shell (19), the (16), echo (12), with (11), option (11), org (11), you (10), http (10), about (9), more (9), optind (8), html (8), set (8), #collection (7), command (7), timeout (7), www (7), code (7), repository (6), tools (6), scripting (6), things (6), cli (6), net (6), blog (6), functions (6), util (6), security (5), license (5), readme (5), unix (5), common (5), tasks (5), some (5), bin (5), scenario (5), linux (5), commands (5), testing (5), all (5), navigation (4), forks (4), stars (4), 317 (4), dns (4), hand (4), crafted (4), various (4), process (4), when (4), script (4), eval (4), articles (4), see (4), here (4), ten (4), wish (4), known (4), programming (4), files (4), lib (4), utils (4), signed (4), your (4), support (4), copilot (4), that (3), this (3), mit (3), resources (3), letsencrypt (3), cloudflare (3), strace (3), injection (3), use (3), sed (3), long (3), string (3), strings (3), 443 (3), processes (3), like (3), etc (3), any (3), useful (3), last (3), level (3), exit (3), trap (3), must (3), argument (3), argbash (3), curl (3), dev (3), mywiki (3), wooledge (3), guide (3), how (3), options (3), message (3), blogs (3), zwischenzugs (3), fish (3), defensive (3), anordal (3), shellharden (3), master (3), pirate (3), list (3), logging (3), commit (3), actions (3), quality (3), another (3), tab (3), window (3), refresh (3), session (3), reload (3), sign (3), developers (3), changelog (3), customer (3), enterprise (3), grade (3), features (3), build (3), can (2), perform (2), docs (2), community (2), status (2), footer (2), report (2), watching (2), watchers (2), activity (2), dotfiles (2), library (2), topics (2), fault (2), system (2), clone (2), error (2), short (2), truncate (2), perl (2), regex (2), have (2), piping (2), doing (2), compare (2), date (2), versions (2), dpkg (2), daemon (2), exec (2), want (2), builtin (2), second (2), pkill (2), scratch (2), finish (2), done (2), default (2), getopts (2), parse (2), until (2), slow (2), ssh (2), man (2), gnu (2), software (2), manual (2), redsymbol (2), unofficial (2), strict (2), mode (2), helper (2), archive (2), sweeting (2), art (2), line (2), debugging (2), advanced (2), traps (2), safer (2), toolkit (2), better (2), minutes (2), 2012 (2), write (2), 2019 (2), what (2), across (2), framework (2), additional (2), non (2), trivial (2), make (2), rust (2), help (2), from (2), bashible (2), bite (2), critic (2), bats (2), 2018 (2), shellcode (2), matter (2), gensokyo (2), detecting (2), server (2), side (2), snippets (2), view (2), shells (2), bashpitfalls (2), wiki (2), barryclark (2), bashstrap (2), blob (2), how_to_do_things_safely_in_bash (2), surprising (2), variables (2), interesting (2), shellcheck (2), reading (2), helpers (2), source (2), base (2), development (2), items (2), name (2), commits (2), latest (2), menu (2), star (2), settings (2), insights (2), projects (2), universe (2), training (2), integrations (2), stories (2), center (2), documentation (2), learn (2), business (2), fixes (2), products (2), secret (2), action, time, not, share, personal, information, manage, cookies, contact, privacy, terms, 2026, inc, languages, contributors, packages, releases, medium, manav503, using, calls, fcb859940895, trace, eagain, catch, syscall, failures, terminal_width, tput, cols, bonus, get, terminal, width, columns, example, longer, than, characters, ellipsis, tcp, best, simple, find, replace, flonatel, pipexec, total, control, over, between, including, crazy, own, stdout, into, its, stdin, launching, complex, directed, graphs, pipes, single, pipeexec, check, pkg, info, installed, package, semver, incremental, easily, pkgname, runs, forever, running, kick, off, dont, child, replaces, current, specified, third, first, nginx, kill, matching, given, function, mktemp, tmp, xxxxxxxxxx, esac, unimplemented, chosen, otherwise, falls, through, note, associated, optarg, case, mnopq, while, handle, passed, arguments, sanely, expect, nohup, heitorpb, bla, silent, fail, body, 8080, health, sleep, lore, around, news, ycombinator, item, 44096395, brew, install, coreutils, gtimeout, mac, executes, args, sends, sigterm, doesn, return, after, details, read, document, man7, pages, man1, errexit, errtrace, nounset, pipefail, ifs, script_dir, null, pwd, dirname, bash_source, shopt, nullglob, xtrace, html_node, environment, setup, usr, env, these, links, are, down, mirrors, basn, namerefs, rednafi, misc, bash_namerefs, jlevy, backgrounding, management, processmanagement, zine, julia, evans, wizardzines, comics, mendel, cooper, hangar118, sdf, towards, parsing, matejak, robertmuth, blogspot, indempotent, arslan, idempotent, exactly, was, point, vidarholen, contents, 1035, var, xval, run, multiple, directories, glob, patterns, inevolin, unit, pgrange, bash_unit, saveriomiroddi, writing, them, rust_cmd_lib, auto, text, comment, top, samizdat, ansible, based, devops, mig1984, jane, street, tech, janestreet, unixtoolbox, xhtml, checksum, opensource, article, something, didn, know, catonmat, dhaval, kapil, dhavalkapil, style, google, styleguide, xml, thiht, rich, posix, tricks, etalabs, sh_tricks, builtins, fafbe742, idontplaydarts, 2016, pipe, faq, cookbook, bashfaq, jonlabelle, markdown, kfirlavi, index, comparison, hyperpolyglot, mistakes, pixelbeat, shell_script_mistakes, greg, seven, víctor, lópez, ferrando, lopezferrando, safely, life, changing, linter, koalaman, regex101, bropages, tldr, explainshell, tilde, fun, admin, start, die, manpages, explainer, monitoring, favorite, utilities, macos, much, sourcing, directly, before, other, enables, shared, defines, which, depends, requires_cmds, pure, easier, configuration, handling, adapters, interact, 3rd, party, finished, everything, need, related, specific, task, both, fetch, values, variety, providers, layout, folders, history, open, file, tags, branches, fork, change, notification, notifications, public, pull, requests, issues, dismiss, alert, switched, accounts, out, appearance, search, pricing, event, talks, workshops, next, partners, company, forum, events, webinars, resource, connect, premium, add, ons, trust, why, evaluate, industries, government, manufacturing, financial, services, healthcare, industry, nonprofits, startups, team, enterprises, stage, businesses, improvements, one, place, developer, sponsors, trending, repos, explore, customize, certifications, scanning, leak, prevention, protection, vulnerability, detection, remediation, secure, cloud, environments, codespaces, analysis, enforcement, automation, ship, coding, agent, automated, work, hosting, review, collaboration, platform, skip, content,
Text of the page (random words):
github pirate bash utils a collection of hand crafted bash scripts for various common tasks github skip to content navigation menu sign in products platform github repository hosting code review and collaboration copilot ai coding agent for tasks projects and automated work build ship actions ci cd and automation code quality quality analysis fixes and enforcement codespaces cloud development environments secure code security vulnerability detection and remediation secret protection secret scanning and leak prevention all features developers learn documentation training certifications build build with copilot customize copilot integrations explore trending repos github sponsors developer articles changelog changelog your source for the latest features improvements and fixes across github products all in one place businesses by stage enterprises team startups nonprofits by industry healthcare financial services manufacturing government see all industries evaluate github why github customer stories business insights trust center add ons github advanced security enterprise grade code security copilot for business enterprise grade ai features premium support enterprise grade 24 7 support resources learn connect documentation resource center blog events webinars community forum customer stories integrations support customer support training github status company about partners changelog github universe github universe the event for developers by developers talks workshops and what s next for github pricing search sign in sign up appearance settings you signed in with another tab or window reload to refresh your session you signed out in another tab or window reload to refresh your session you switched accounts on another tab or window reload to refresh your session dismiss alert message pirate bash utils repository navigation code issues pull requests actions projects security and quality insights more items bash utils public notifications you must be signed in to change notification settings fork 32 32 star 317 317 you must be signed in to star a repository about a collection of hand crafted bash scripts for various common tasks topics bash bash library bash scripting cloudflare dns dotfiles letsencrypt shell scripts tools unix resources readme mit license activity stars 317 stars watchers 4 watching forks 32 forks report repository master branches tags go to file code open more actions menu latest commit history 59 commits 59 commits folders and files name name last commit message last commit date bin bin lib lib util util license license readme md readme md view all files repository files navigation readme mit license more items bash utils a collection of my hand crafted bash scripts and helper functions for various common tasks code layout bin is a collection of finished scripts for doing everything you need to do related to a specific task e g dns can both set and fetch dns values from a variety of providers lib is a collection of adapters to interact with 3rd party tools or scripts e g cloudflare letsencrypt etc util is a collection of pure bash functions to make development in bash easier e g logging configuration error handling etc when sourcing helpers directly source util base sh before util logging sh and the other util or lib files base sh enables the shared shell options and defines helpers like requires_cmds which logging sh depends on reading list for a list of my favorite cli utilities for linux macos and much more see here https docs sweeting me s system monitoring tools ️ for my fish shell functions snippets and reading list see here https github com pirate fish functions manpages and cli explainer tools https linux die net man https wiki tilde fun admin linux cli start https explainshell com github https tldr sh http bropages org https regex101 com articles tools and more shellcheck life changing bash linter and testing toolkit https github com koalaman shellcheck how to do things safely in bash https github com anordal shellharden blob master how_to_do_things_safely_in_bash md 30 interesting commands for the linux shell víctor lópez ferrando https www lopezferrando com 30 interesting shell commands 7 surprising bash variables https zwischenzugs com 2019 05 11 seven surprising bash variables anordal shellharden https github com anordal shellharden blob master how_to_do_things_safely_in_bash md barryclark bashstrap https github com barryclark bashstrap bashpitfalls greg s wiki http mywiki wooledge org bashpitfalls common shell script mistakes http www pixelbeat org programming shell_script_mistakes html comparison of all the unix shells http hyperpolyglot org unix shells defensive bash programming https www kfirlavi com blog 2012 11 14 defensive bash programming index html or https jonlabelle com snippets view markdown defensive bash programming bash faq and cookbook https mywiki wooledge org bashfaq detecting the use of curl bash server side https idontplaydarts com 2016 04 detecting curl pipe bash server side gensokyo blog use bash builtins shell fish bash https blog gensokyo io a fafbe742 html rich s sh posix shell tricks http www etalabs net sh_tricks html shell scripts matter https dev to thiht shell scripts matter shell style guide https google github io styleguide shell xml shellcode injection dhaval kapil https dhavalkapil com blogs shellcode injection something you didn t know about functions in bash http catonmat net blog bash functions ten more things i wish i d known about bash https zwischenzugs com 2018 01 21 ten more things i wish id known about bash ten things i wish i d known about bash https zwischenzugs com 2018 01 06 ten things i wish id known about bash testing bash scripts with bats https opensource com article 19 2 testing bash bats testing bash scripts with critic sh https github com checksum critic sh useful bash and unix commands https cb vu unixtoolbox xhtml when bash scripts bite jane street tech blogs https blogs janestreet com when bash scripts bite bashible ansible like framework for bash based devops https github com mig1984 bashible auto parse help text from comment at the top of script https samizdat dev help message for shell scripts make bash scripts safer by writing them in rust https github com rust shell script rust_cmd_lib additional shell options for non trivial bash scripts https saveriomiroddi github io additional shell options for non trivial bash shell scripts bash unit testing framework https github com pgrange bash_unit in cli run commands across multiple directories with glob patterns https github com inevolin in cli what exactly was the point of x var xval https www vidarholen net contents blog p 1035 how to write indempotent bash scripts https arslan io 2019 07 03 how to write idempotent bash scripts better bash scripting in 15 minutes http robertmuth blogspot com 2012 08 better bash scripting in 15 minutes html argbash argument parsing toolkit https github com matejak argbash bash exit traps towards safer bash scripts http redsymbol net articles bash exit traps advanced bash scripting guide by mendel cooper https hangar118 sdf org p bash scripting guide bash debugging zine by julia evans https wizardzines com comics bash debugging bash process backgrounding and daemon management https mywiki wooledge org processmanagement the art of command line https github com jlevy the art of command line basn namerefs https rednafi com misc bash_namerefs bash here strings https www gnu org software bash manual bash html here strings if any of these links are down see https archive sweeting me or https archive org for mirrors useful helper commands unofficial bash strict mode usr bin env bash bash environment setup http redsymbol net articles unofficial bash strict mode https www gnu org software bash manual html_node the set builtin html set o xtrace set x shopt s nullglob set o errexit set o errtrace set o nounset set o pipefail ifs n script_dir cd dirname bash_source 0 dev null 2 1 pwd timeout timeout executes the ssh command with args and sends a sigterm if ssh doesn t return after 5 second for more details about timeout read this document http man7 org linux man pages man1 timeout 1 html timeout 5 some slow command or on mac brew install coreutils gtimeout 5 some slow command https news ycombinator com item id 44096395 more lore around timeout until until curl silent fail with body 10 0 0 1 8080 health do sleep 1 done https heitorpb github io bla timeout nohup expect trap getopts argbash parse and handle passed cli arguments sanely while getopts mnopq rs option do case option in m echo scenario 1 option m optind optind n o echo scenario 2 option option optind optind p echo scenario 3 option p optind optind q echo scenario 4 option q with argument optarg optind optind note that option q must have an associated argument otherwise it falls through to the default r s echo scenario 5 option option echo unimplemented option chosen default esac done trap bin bash scratch mktemp d t tmp xxxxxxxxxx function finish rm rf scratch trap finish exit pkill kill any processes matching given regex pkill nginx eval a b b c c d echo a b first level eval echo a c second level eval eval echo a d third level exec this shell builtin replaces the current process with a specified command useful for when the last command in a script is a long running process you want to kick off and you dont want it to be a child of bash exec some daemon that runs forever dpkg s pkgname dpkg compare versions 20 04 2 ge 18 04 12 check pkg info of any installed package and compare semver date incremental versions easily pipeexec have total control over piping between processes including doing crazy things like piping a processes own stdout into its stdin launching complex directed graphs of pipes as a single process etc https github com flonatel pipexec perl pe best simple find and replace regex echo 0 0 0 0 443 443 tcp perl pe s 0 0 0 0 d 1 gm 443 sed truncate strings with ellipsis example truncate if longer than 15 characters echo short string sed s 15 1 short string echo some long string sed s 15 1 some long st bonus get terminal width in columns terminal_width tput cols use strace to catch syscall failures strace e trace clone e fault clone error eagain https medium com manav503 using strace to perform fault injection in system calls fcb859940895 about a collection of hand crafted bash scripts for various common tasks topics bash bash library bash scripting cloudflare dns dotfiles letsencrypt shell scripts tools unix resources readme mit license activity stars 317 stars watchers 4 watching forks 32 forks report repository releases packages contributors languages footer 2026 github inc footer navigation terms privacy security status community docs contact manage cookies do not share my personal information you can t perform that action at this time
|