Search Results

Search: Posts Made By: ghpradeep
1,764
Posted By RudiC
How about awk '{$0=$0} ; $0 !~ del && NF...
How about
awk '{$0=$0} ; $0 !~ del && NF {print $0 RS}' RS="}" del="hostgroup_members *\n" file
2,661
Posted By RudiC
Try also { read X; while read SD US HN WM CM...
Try also

{ read X; while read SD US HN WM CM CC X
do cat <<EOF
define service{
service_description $SD
use $US
host name $HN
check_command ...
2,661
Posted By Chubler_XL
How about this: while read desc use server...
How about this:

while read desc use server warn crit mount
do
if [ "$desc" != "service-description" ]
then
printf "define service{\n"
printf "\t%s\t%s\n"...
Showing results 1 to 3 of 3

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