tdelamater
Programmer
I want to search for a string in a file, and if found append a variable to that string.
Here is what I have.
Where $servername is a variable read in from the user from ksh.
I am not fluent in perl, but have inherited this script.
Any help would be much appreciated.
Here is what I have.
Code:
$servername | perl -p -i.bak -e 's/^server\-name \=\.*$/server-name = $F[0]/i' $FILE_LOC
Where $servername is a variable read in from the user from ksh.
I am not fluent in perl, but have inherited this script.
Any help would be much appreciated.