latest pushes

This commit is contained in:
2024-09-24 18:39:42 -04:00
parent dcbc55c338
commit 19d1f16b82
6 changed files with 125 additions and 0 deletions

View File

@ -0,0 +1,23 @@
#!/usr/bin/env bellos
# File: string_manipulation.bellos
# Demonstrating string manipulation
string="Hello, Bellos!"
# String length
echo "Length of string: ${#string}"
# Substring
echo "First 5 characters: ${string:0:5}"
# String replacement
new_string=${string/Bellos/World}
echo "Replaced string: $new_string"
# Converting to uppercase
echo "Uppercase: ${string^^}"
# Converting to lowercase
echo "Lowercase: ${string,,}"