I'd like to give a little preview of an existing conf file, but not showing comments or empty lines.
Sadly, either the output style is wrong, or not all values are printed.
My current issue is, that the first variable read (var) contains both, the first and the second (val) variable.
Content of: this.conf
But what i get is this:
Expected output:
In a previous i attempt, i had:
This had the output-stle as expected.
However, the last entry was not shown, and actualy i'm still trying to figure a 'for loop' for this.
Any ideas please?
EDIT:
Nevermind, should have used:
EDIT2:
Doh, and this would have beein bash'ism, or so...
Last edited by sea; 11-27-2015 at 12:59 PM..
Reason: /solved
Hi,
I've installed Solaris 11.3(live media) and configured DNS. Everytime I reboot the server, resolv.conf got deleted and it created a new nsswitch.conf.
I used below to configure both settings:
# svccfg -s dns/client
svc:/network/dns/client> setprop config/nameserver = (xx.xx.xx.aa... (1 Reply)
Hello all,
Newbie here.
I'm currently tasked with updating rsyslog.conf and auditd.conf on a large set of servers. I know the exact logging configurations that I want to enable. I have updated both files on on a server and hope to use the updated files as a template for the rest of the... (3 Replies)
After vpn connection,I am not able to resolve any machines in remote gateway.It looks like remote domain is added to domain field instead of adding it to the Search field in /etc/resolv.conf
I want the remote domain to add to search field along with local domain.Can anyone tell a bash or script... (2 Replies)
Hi all, i have a scenario below:
<========> <=========> Internet
With IP:
-Local: 10.0.0.2
-Squid: 2NICs (10.0.0.1 and 192.168.100.1)
-Internet: 192.168.100.2
* On Squid: hosting a website name www.sample.com
* On Local: hosting a website name www.abc.sample.com
* Complete DNS... (0 Replies)
i have this program running on my solaris and there are two identical config files, i am not sure which one is being used by this program but I am sure it uses one of them.
I run lsof -p {pid} but it does not show which config file has been read by this program, what i am doing wrong?
thanks (4 Replies)
HI,
I want a help for Configuring snmpd.conf and snmptrapd.conf (i.e Configuring SNMP)
for receiving
TRAPS in my networks. I am using RHEL4.0 OS.
Please tell me How I can configure above two files in a proper way and at an
advanced level.
Especially I am getting... (2 Replies)
Hi
I tried a lot bt could not configure snmptrapd.conf...
Can any one tell me the steps or give me the configured snmptrapd.conf file??
Its really important..Plz help me..
Thanx (0 Replies)
hi i am first time here for post tread but i alredy spend some time for look what u are doing here and i think that is great....
i am very interesting in bash scripting so i now wanna make one script that is able to set up a lilo.conf on every machine
.....where script is runned.
for exemple... (1 Reply)