Bash Scripting - String Operations
What is wrong with this code snippet?
file="data.txt"
newfile=${file/data/txt}
echo $newfilefile="data.txt"
newfile=${file/data/txt}
echo $newfile15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions