Search Results

Search: Posts Made By: creativedynamo
4,857
Posted By creativedynamo
I solved my problem by going another route. ...
I solved my problem by going another route.

I piped the servername output to a separate file rather than an in-script variable, then used the 'paste' command to combine the servername file with...
4,857
Posted By creativedynamo
Thanks for the tip on shortening the command. ...
Thanks for the tip on shortening the command.

It seems that the variable declaration evaluates all data on the first time through. I was only looking for a single iteration so I could nicely...
4,857
Posted By creativedynamo
Just to clarify, if I set SERVERNAME like this,...
Just to clarify, if I set SERVERNAME like this, everything works. If I set it as shown in the previous post, it errors out.

servername=1234

Still looking for a hand with this if anyone has...
4,857
Posted By creativedynamo
the loop bit of the script
Here's the loop bit of the script: (The missed quotation mark was a typo..I wasn't able to cut/paste.. had to manually type the example in)



for x in warn crit

do
echo "- - - - - - - - - -...
4,857
Posted By creativedynamo
bash variable (set via awk+sed) not working as expected
Hi!

Been working on a script and I've been having a problem. I've finally narrowed it down to this variable I'm setting:

servername=$(awk -v FS=\/ '{ print $7 } blah.txt | sed 's\/./-/g' | awk...
Showing results 1 to 5 of 5

 
All times are GMT -4. The time now is 05:23 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy