[prabhucloudxlab@cxln4 ~]$ cat>echo5.sh
#! /bin/bash
#passing commands inside the variable
user=$(whoami)
whereami=$(pwd)
date=$(date)
echo " "
echo " "
echo "i'm $user and i'm from $whereami. Today date is $date."
[prabhucloudxlab@cxln4 ~]$ ./echo5.sh
i'm adimulamvenkat19851609 and i'm from /home/adimulamvenkat19851609. Today date is Fri Jul 8 06:30:18 UTC 2022.