run shell script to yaml file code example

Example 1: shell script to convert yaml

ps -aef|grep ClientProvision.exe
cd /opt/Logs/dmApp
date=date '+%d-%m-%y_%H_'
cat ClientProv_30xcf_$date *.log |grep "Loading InRoamer Details.."

Example 2: shell script to convert yaml

date=date '+%d_%m_%Y_05_'
#echo $date
cd /opt/Logs/dmApp
logfile=ClientProv_30xcf_$date*.log
#echo $logfile
cat $logfile |grep "Loading InRoamer Details.."

Example 3: run shell script to yaml file

ssh -i "poc-key-pair.pem" ubuntu@ -o "proxycommand ssh -W %h:%p -i "poc-key-pair.pem" [email protected]"