Hi all,
I'm trying to do a very simple script, as you can see as follow:
#!/bin/bash
#Valorizzazione Token presenti nel file di properties
var_path_weblogic="`cat weblogic.properties | grep "dir_wl" | /usr/xpg4/bin/awk '{print $3}'`"
var_ip_address="`cat weblogic.properties | grep -i "ip_address" | /usr/xpg4/bin/awk '{print $3}'`"
var_port="`cat weblogic.properties | grep -i port | /usr/xpg4/bin/awk '{print $3}'`"
var_username="`cat weblogic.properties | grep -i username | /usr/xpg4/bin/awk '{print $3}'`"
var_password="`cat weblogic.properties | grep -i password | /usr/xpg4/bin/awk '{print $3}'`"
var_name="`cat weblogic.properties | grep -i "name" |grep -v username| /usr/xpg4/bin/awk '{print $3}'`"
var_war_path="`cat weblogic.properties | grep -i "war_path" | /usr/xpg4/bin/awk '{print $3}'`"
result = "`echo $var_path_weblogic`"
echo $result
....but when I execute the script, result variable is empty (I'm using only a variable to see if the script works).
I'd like to concatenate all variables, but first I'd want to understand because result is empty.