Topics
Bash
About this topic: Articles tagged __TAG__
Showing 219 articlesRelated tags
Topics
Articles
Showing 219 articles
How-tos
How to Break Out of a Loop in Bash
This tutorial discusses how to break out of a loop in Bash, covering various methods including the use of the break and exit commands. Learn about conditional statements and nested …
↗
How-tos
How to Concatenate Strings in Bash
Discover how to concatenate strings in Bash easily with our comprehensive guide. Learn various methods, including basic concatenation, using the += operator, and incorporating …
↗
How-tos
How to Parse Command Line Arguments in Bash
Learn how to parse command line arguments in Bash effectively. This guide covers positional parameters, flags, loop constructs, and the shift operator. Enhance your Bash scripts …
↗
How-tos
How to Cat EOF in Bash
Learn how to use cat EOF in Bash effectively. This comprehensive guide covers the basics of cat EOF, including file creation, appending text, and writing scripts directly from the …
↗
How-tos
How to Run GDB in Bash Script
This tutorial demonstrates how to run GDB in a Bash script with a binary file that takes command-line arguments. Learn to automate your debugging process, set breakpoints, and …
↗
How-tos
How to Replace Strings in Bash
This tutorial demonstrates how to replace one substring with another string in Bash. Learn effective methods using `sed`, `awk`, and Bash parameter expansion to enhance your string …
↗
How-tos
How to Format Date and Time in Bash
This comprehensive tutorial on how to format date and time in Bash covers various methods using the date command. Learn to create user-friendly scripts, generate timestamps for …
↗
How-tos
How to Emulate Do-While Loop in Bash
This tutorial demonstrates how to emulate a do-while loop in Bash, providing clear examples and methods to achieve this functionality. Learn to control your Bash scripts …
↗
How-tos
How to Change Output Color of Echo in Bash
This article demonstrates how to change the output color of echo in Bash, focusing on methods useful for Git users. Learn to use ANSI escape codes, define reusable functions, and …
↗
How-tos
How to Assign Default Value in Bash
This article explores various methods for assigning default values to variables in Bash. Learn how to use parameter expansion, if statements, and the :- operator effectively. …
↗
How-tos
How to Escape Characters in Bash
This tutorial explains escape characters in Bash and provides a detailed list of common escape characters. Learn how to effectively use escape characters in Git commands for …
↗
How-tos
How to Find the Line Count of a File in Linux Bash
This article explains how to find the line count of a file in Linux Bash by using different tools. Learn about the `wc` command, Git commands, and more to efficiently count lines …
↗
How-tos
How to Set -e in Bash Scripting
This tutorial demonstrates the use of set -e in Bash scripting, explaining its significance and providing practical examples. Learn how to enhance your scripts' reliability and …
↗
How-tos
How to Loop Over Files in Directory in Bash
Learn how to loop over files in a directory using Bash in this comprehensive tutorial. Discover various methods, including basic loops, find commands, and recursive globbing …
↗
How-tos
Hash Tables in Bash
This tutorial explores the creation and manipulation of hash tables in Bash, also known as associative arrays. Learn how to declare, modify, delete, and iterate through key-value …
↗
How-tos
How to Extract File Base Name in Bash
Learn how to extract the file base name in Bash with this comprehensive tutorial. Explore methods like substring parameter expansion and the basename command, and enhance your …
↗
How-tos
How to Check Number of Arguments in Linux Bash
This article explains how to check the number of arguments in Linux Bash. Learn various methods to handle script arguments effectively, including conditional statements and loops. …
↗
How-tos
How to Run find -exec Command in Bash
This article explores how to effectively use the find command with the -exec option in Bash. Learn to search for specific text in files and execute commands on found files. …
↗
How-tos
How to Assign One Variable to Another in Bash
This tutorial demonstrates how to assign one variable to another in Bash. Learn various methods including direct assignment, command substitution, and array handling to enhance …
↗
How-tos
How to Pause Program Execution in Linux Bash
This article explains how to pause program execution in Linux Bash, focusing on various methods such as the read and sleep commands. Discover how to effectively manage your …
↗
How-tos
The tr Command in Linux Bash
Discover the power of the tr command in Linux Bash. This article explores its functionalities, including character translation, deletion, and squeezing repeated characters. Learn …
↗
How-tos
Parameter Substitution in Bash
This article explains parameter substitution in Bash scripting, covering basic usage, default value assignment, string manipulation, conditional checks, and variable length. Learn …
↗
How-tos
How to Use the basename Command in Linux Bash
This article explains how to use the basename command to strip directory and suffix from a filename in Linux Bash. Discover practical examples and learn how to enhance your file …
↗
How-tos
How to Solve Couldn't Get a File Descriptor Referring to the Console Error in Ubuntu Bash
This article explains how to solve the couldn't get a file descriptor referring to the console error in Ubuntu Bash. Discover effective methods, including checking permissions, …
↗
No articles found
Try clearing the filters.