Tag: scripting
Browse all articles, tutorials, and guides about scripting
Guides
Posts
How to Loop Through File Content in Bash
Learn different methods to iterate through file content line by line in Bash scripts, including handling special characters and processing large files efficiently.
How to Execute Multiple Commands in Docker Compose
Learn different techniques for running multiple commands in Docker Compose services, from simple command chaining to advanced multi-stage initialization scripts.
How to Loop Through an Array of Strings in Bash
Learn various methods to iterate through string arrays in Bash, including indexed arrays, associative arrays, and advanced looping techniques with practical examples.
How to Pipe to and from Clipboard in Bash Scripts
Learn how to integrate clipboard functionality into your Bash scripts using xclip, xsel, pbcopy, and pbpaste for seamless data transfer between terminal and GUI applications.
How to Check if a Variable is Set in Bash
Learn multiple methods to check if variables are set, unset, empty, or have specific values in Bash scripts with practical examples and best practices.
How to Concatenate String Variables in Bash
Learn multiple ways to combine string variables in Bash scripts, from simple concatenation to complex string operations with practical examples.
How to Set a Variable to the Output of a Command in Bash
Learn multiple methods to capture command output in Bash variables using command substitution, including best practices and error handling techniques.
How to Parse Command Line Arguments in Bash
Learn various methods to parse command line arguments in Bash scripts, including positional parameters, getopts, and advanced argument handling techniques.
How to Extract Filename and Extension in Bash
Learn multiple methods to extract filenames, extensions, and directory paths from file paths in Bash using parameter expansion and basename commands.
How to Split a String on a Delimiter in Bash
Learn multiple methods to split strings using delimiters in Bash, including IFS, parameter expansion, and array techniques with practical examples.
How to Check if a Program Exists from a Bash Script
Learn multiple reliable methods to check if a command or program is available on your system from within Bash scripts, including using which, command, and type.
How to Iterate Over a Range of Numbers in Bash Using Variables
Learn different methods to loop through number ranges defined by variables in Bash, from simple for loops to advanced sequence generation techniques.
Looping Through File Content Line by Line in Bash
Learn multiple techniques to read and process file content line by line in Bash scripts, including handling special characters and preserving whitespace.