Search
Items tagged with: bash
especially as #bash does not merge its history from across different terminal sessions.
And probably it's something simple like last session to exit gets to write the history but it still feels like a black magic mystery to me after all these years...
Here's how to check if a file/directory exists in Bash.
https://itsfoss.com/bash-if-file-exists/
#bash
Bash Check if File or Directory Exists
Here are a few shell scripting examples to check if a file or directory exists in bash shell or not.Pratham Patel (It's FOSS)
Learn how to check for empty variables in Bash.
https://itsfoss.com/bash-check-variable-empty/
#bash
Check if a Variable is Empty or not in Bash
Here's a quick bash tip on checking whether or not a given variable is empty.Pratham Patel (It's FOSS)
Bash your way into handling string operations effectively.
https://itsfoss.com/bash-strings/
Bash Basics Series #6: Handling String Operations
In this chapter of the Bash Basics series, learn to perform various common string operations like extracting, replacing and deleting substrings.Abhishek Prakash (It's FOSS)
In this edition of our Bash Basics series, learn how to use arrays.
https://itsfoss.com/bash-arrays/
Bash Basics Series #5: Using Arrays in Bash
Time to use arrays in bash shell scripts in this chapter. Learn to add elements, delete them and get array length.Abhishek Prakash (It's FOSS)