AWK cheat sheet
AWK cheat sheet with essential commands, syntax, variables, and examples for text processing and data extraction. Quick reference guide for using AWK.
Collection of publications tagged with scripting.
AWK cheat sheet with essential commands, syntax, variables, and examples for text processing and data extraction. Quick reference guide for using AWK.
GNU find command cheat sheet: Search files by name, type, size, time, permissions, and more. Includes examples for deletion, batch actions, and output formatting.
Learn how to add single-line, multi-line, and inline comments in Bash scripts, including the role of the shebang (#!) and how it is not considered a comment.
Learn how to create HTTP POST requests with cURL using flags like --data, --form, and --request. Includes examples for JSON, XML, CSV, stdin, and multipart uploads.
Learn how to make cURL output only the numerical HTTP status code using two command-line methods, with detailed explanations of all options and dependencies.
Learn how to rename files in bulk on Linux using simple shell commands with Bash's parameter expansion. Includes examples and detailed command breakdowns.
Introdution to arrays in JavaScript, covering their basic syntax, accessing elements, modifying elements, getting the length, and various array methods.
Learn about JavaScript booleans, how they work, coercion rules, and how different values behave in boolean contexts. Many examples and explanations included.
JavaScript RegExp examples to validate URI paths, also known as URL slugs. Code examples to match lowercase characters, hyphens and numbers.
Introdution to variables in JavaScript using let and const and the differences between them and var. Naming conventions, best practices, data types.
Recipes and command examples for jq, a lightweight and flexible command-line JSON processor. Learn to delete and keep specific arrays and objects.
List of standard and custom Linux exit status codes. Numeric values returned by commands or scripts, indicating success, failure, or specific error conditions.
Simple rsync backup shell script template to back up the user home directory to mountpoint, e.g. a hard drive, thumb drive, sd card, etc. Verifies mountpoint exists, writes log to mountpoint.
Learn how to convert TrueType Font (TTF) and OpenType Font (OTF) files to Web Open Font Format 2 (WOFF2) using a simple shell script. Create your own web fonts.
GNU sed cheat sheet covering everything from basic syntax to advanced addressing techniques. Learn how to use sed efficiently to manipulate text with examples.
Recipes and command examples for GNU sed (stream editor), the non-interactive command-line text editor.
Learn how to use ShellCheck to analyze and improve your shell scripts by identifying syntax, semantic, and portability issues before they cause runtime errors.
Learn how to validate IPv4 and IPv6 addresses using regular expressions (regexp). Includes patterns, examples for valid and invalid formats, and combined matching rules.
“Learning from conventions will make your site better.”