Topics
Bash
About this topic: Articles tagged __TAG__
Showing 219 articlesRelated tags
Topics
Articles
Showing 219 articles
How-tos
How to Sum a List of Numbers in a Text File Using Bash
This article is a short tutorial on how to sum a list of numbers in a text file using Bash scripting. Learn effective methods such as using awk, paste with bc, and loops to …
↗
How-tos
How to Pass All Arguments in Bash
This tutorial explores how to pass all arguments in Bash, providing practical examples and methods to enhance your scripting skills. Learn about special variables like $@ and $*, …
↗
How-tos
How to Find the Current Folder Name in Bash
This tutorial provides a comprehensive guide on how to find the current folder name in Bash. Learn various methods, including using the pwd command, command substitution, and …
↗
How-tos
How to Concatenate Multiple Files in Bash
This tutorial will discuss how to concatenate multiple files in Bash. Learn various methods, including using the cat command, find command, and paste command. Discover practical …
↗
How-tos
How to Remove Line From File in Bash
This tutorial will guide you through the process of removing lines from a file in Bash. You'll learn how to use powerful commands like sed, awk, and grep for efficient line …
↗
How-tos
How to Use Double and Single Pipes in Bash
This tutorial explores how to use single and double pipes in Bash, providing clear examples and explanations. Learn the differences between these two powerful features and how to …
↗
How-tos
How to Take Optional Input Arguments in Bash
This tutorial provides a comprehensive guide on how to take optional input arguments in Bash scripts. Learn how to create flexible and user-friendly scripts that can handle various …
↗
How-tos
How to Continue on the Next Line in Bash
Learn how to effectively continue commands on the next line in Bash, especially when working with Git. This article covers various methods including backslashes, parentheses, and …
↗
How-tos
Fork in Bash
This article explores the use of the fork call in Bash scripting. Learn how to create and manage concurrent processes efficiently using simple examples and advanced techniques. …
↗
How-tos
How to Handle Errors in Bash
This tutorial educates you on error handling and exit codes in Bash, focusing on practical solutions for Git commands. Learn how to check exit codes, use conditional statements, …
↗
How-tos
How to Get Timestamp in Bash
This article covers how to get timestamps in Bash scripts, focusing on methods to create timestamp variables using the date command and Git commands. Learn how to format timestamps …
↗
How-tos
How to Change Directory in Bash
This tutorial on how to change directories in Bash provides essential commands for navigating your file system, particularly in a Git context. Learn to use the `cd` command …
↗
How-tos
How to Add New Users in Linux in Bash Script
Learn how to add new users in Linux using a Bash script in this comprehensive tutorial. Discover step-by-step instructions for creating a simple script that automates user …
↗
How-tos
How to Send Messages to a Logged-In User in Bash
Learn how to send messages to a logged-in user in Bash effectively. This guide covers essential commands like write and wall, as well as using Git commit messages for …
↗
How-tos
How to Wait for Background Process in Bash
This tutorial demonstrates how to wait for background processes in Bash, focusing on effective methods to manage Git commands. Learn how to use the wait command, job IDs, and exit …
↗
How-tos
How to Find All Files With an Extension in Bash
This tutorial demonstrates how to find all files with an extension in Bash. Learn effective methods using commands like find, ls, and Git to quickly locate files in your projects. …
↗
How-tos
shebang in Bash Script
This tutorial provides an in-depth look at the shebang in Bash scripts, explaining its definition, usage, and variations. Learn how to effectively implement the shebang in your …
↗
How-tos
How to Pass Parameter in a Bash Function
This tutorial demonstrates how to pass parameters in a Bash function. Learn the essential techniques for defining functions, handling multiple parameters, and setting default …
↗
How-tos
The -ne Operator in Bash
Discover the power of the -ne operator in Bash scripting. This article explains its use in conditional statements and loops, providing practical examples to enhance your coding …
↗
How-tos
How to Use Z Flag in Linux Bash
This article demonstrates how to use the test command and the -z flag for comparison in Linux Bash scripting. Learn practical applications, including user input validation and …
↗
How-tos
How to Solve cd: Too Many Arguments Error in Bash
This article explains how to solve the "cd: too many arguments" error in Linux Bash. Learn effective methods to navigate directories, including using quotes, escape characters, and …
↗
How-tos
How to Run Shell Script on macOS
This tutorial provides a comprehensive guide on how to run shell scripts on macOS. Learn to create, execute, and debug shell scripts effectively. Enhance your productivity with …
↗
How-tos
How to Echo New Line in Bash
Learn how to echo a new line in Bash with various methods, including using the -e option and the $ variable. This comprehensive guide provides clear code examples and detailed …
↗
How-tos
How to Compare Numbers in Bash
Learn how to compare numbers in Bash effectively using square braces and double parentheses. This comprehensive guide provides clear examples and explanations to help you master …
↗
No articles found
Try clearing the filters.