Search Results

Search: Posts Made By: nemesis911
1,301
Posted By nemesis911
Extract range from config file matching pattern
I have config file like this:


server_name xx opt1 opt2 opt3
suboptions1
#suboptions - disabled
suboptions2 pattern
suboptions3
server_name yy opt1 opt2 opt3
suboptions1...
1,843
Posted By nemesis911
Here is bash script to move those files and...
Here is bash script to move those files and rename them

for i in $(ls); do mv $i ${i/${i:0:7}/server2}; done

It replaces the string between the 0th and the 7th character with "server2".
1,981
Posted By nemesis911
I tried with echo 1, but there is no output for...
I tried with echo 1, but there is no output for arrays Common IPs, In APACHE only, In IFCONFIG only :(
1,981
Posted By nemesis911
hmmm...it doesn't work, this is awk science...
hmmm...it doesn't work, this is awk science fiction for me. Reading trough man to try figure out

#!/bin/bash

NETSTAT=$(netstat -ntp | awk '{ print $4 }' | grep -v "127.0.0.1" | cut -d ":" -f1...
1,981
Posted By nemesis911
Script to find available IP address
Hi,

I am trying to write a script that will check all used IP on the server and then print me an addressees that are not in use. Problem is in comparing two variables

#!/bin/bash
...
Showing results 1 to 5 of 5

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