hi guys...need some help here...
i am making a a script to automatically install netbackup client...so its gonna write a configuration file according to the host name.... the line would be something like this
CLIENT_NAME = odel_bkp.test.com
the thing is ...the host name in reallity is odel.test.com , if i do a echo "CLIENT_NAME = `/bin/hostname`" > bp.conf , i wont have the odel_bkp like i want , is there a way to make this string "_bkp" be added just after the hostname and before the domain name?
thanks