Bash String Tutorials
The following are the tutorials covering different concepts of strings with examples and detailed explanation.
Checks
Regular expressions
- Bash – Check if string starts with uppercase alphabet
- Bash – Check if string starts with lowercase alphabet
- Bash – Check if string contains only uppercase alphabets
- Bash – Check if string contains only lowercase alphabets
- Bash – Check if string contains only alphabets
- Bash – Check if string contains only alphanumeric
- Bash – Check if string contains only numeric
Character level programs
- Bash – Get character at specific index in string
- Bash – Get first character in string
- Bash – Get last character in string
- Bash – Iterate over characters in string
- Bash – Print unique characters in string
- Bash – Remove character at specific index in string
- Bash – Remove first character in string
- Bash – Remove last character in string
- Bash – Remove all occurrences of specific character in string
Conclusion
In this Bash Tutorial, we learned what strings are in Bash, and different checks and manipulations we can do on strings, with well detailed tutorials.