Topics

Bash

About this topic: Articles tagged __TAG__

Showing 218 articles

Topics

Articles

Showing 218 articles

How-tos How to Use sed to Find and Replace in Bash This article shows how to find and replace texts in Bash using sed. Learn simple and advanced methods for text manipulation, including case-insensitive searches and regular … How-tos How to Copy Files in Bash In this guide, learn how to copy files in Bash effectively. Explore various methods for copying single files, multiple files, and directories with practical examples. Discover … How-tos Ternary Operator in Bash Script Learn how to implement the ternary operator in Bash scripts with this quick guide. Discover various methods including command substitution, arithmetic evaluation, and custom … How-tos Bash Profile in macOS This tutorial provides a comprehensive guide on managing your Bash profile in macOS. Learn how to create, edit, and delete your Bash profile effectively. Whether you're a beginner … How-tos How to Search for Files With a Filename Beginning With a Specified String in Bash This tutorial provides a comprehensive guide on how to search for files with a filename beginning with a specified string in Bash. Discover effective methods using the `find` … How-tos How to Modify a Global Variable Within a Function in Bash Learn how to modify a global variable within a function in Bash with this comprehensive tutorial. Explore different methods including direct assignment, using the declare command, … How-tos How to Multiply Variables in Bash This tutorial teaches you how to multiply variables in Bash using various methods including expr, arithmetic expansion, and bc for floating-point numbers. Learn step-by-step … How-tos How to Add the WSL Bash Shell to Windows Learn how to add a Bash shell to Windows through WSL. How-tos How to Solve R Command Not Found on Bash (Or Cygwin) This tutorial demonstrates how to solve the r command not found in Bash or Cygwin. How-tos The History Command in Linux This tutorial shows using the history command to display the Bash history, to search in history, to remove commands in history and to clear the whole history. How-tos The timeout Command in Bash This article discusses how to use timeout functionality in Bash. How-tos How to Recursively Find Files in Bash This is a brief programming guide about the find command in Bash. How-tos How to Kill Process in Bash This article explains killing a Linux process using Bash. How-tos How to Get Length of String in Bash This article will explain finding string length using Bash. How-tos Bash Double Pipe This article will explain the purposes of single and double pipe symbols in Bash. How-tos How to Get Current Date and Time in Bash This is a trivial guide to getting the current date and time using Bash. How-tos Floating Point Arithmetic in Bash This is a brief programming tutorial on how to perform floating point arithmetic in Bash. How-tos How to Execute Commands in a Variable in Bash Script This is a programming tutorial about executing a command stored in a variable in a Bash Script. How-tos How to Copy All Files From a Remote Directory A quick demonstration of copying all the files from a remote directory. How-tos How to Sort Array in Bash This tutorial will discuss sorting array in Bash. How-tos How to Append Text to a File Using Bash We can append text to a file using the Redirection (>>) operator, and the tee command. How-tos How to Compare Strings in Bash We compare the strings using comparison operators and check whether the string contains substring or not using regular expressions. How-tos How to Use if...else Statement in Bash We can use if...else statement in Bash to run the statements if particular condition is satisfied or not. How-tos How to Use Functions in Bash The same code that is to be used repeatedly is written as function definition and the portion where we need the code to be used, we simply call the function.

← All topics