Here are two more ways:
Please keep in mind that space is very important in bashBash. So, if you want your command to run, use as is without introducing any more spaces.
The following assigns harshil
harshilto LLand then prints itL=$"harshil" echo "$L"The following assigns the output of the command
trto L2.tris being operated on another variable, L1.L2=$(echo "$L1" | tr [:upper:] [:lower:])