Search Results

Search: Posts Made By: richsark
2,026
Posted By Scrutinizer
In awk, try: awk -F, '{n=$4;...
In awk, try:
awk -F, '{n=$4; sub(/\.[0-9]*$/,x,n); print "conf zone", n ".0/24 del PTR", $4, $2}' file
2,026
Posted By pravin27
perl -ne 'if...
perl -ne 'if (/(.*?),(.*?),,(10)\.(1[0-4]|[89])\.([01]?\d\d|2[0-4]\d|25[0-5])\.([01]?\d\d|2[0-4]\d|25[0-5])/) {
print "conf zone ",$3,"\.",$4,"\.",$5,".0\/24 del PTR ",$3,"\.",$4,"\.",$5,"\.",$6,"...
1,857
Posted By Chubler_XL
It will stop at 10.14.255.255 (well actually...
It will stop at 10.14.255.255 (well actually 10.14.999999.999999 but you shouldn't have any ip addresses like that).
1,857
Posted By Chubler_XL
Sorry based criteria for the 2nd last digit of IP...
Sorry based criteria for the 2nd last digit of IP address on original string. If your happy with "x" in 10.8.x.x to be any string of numbers then try this:

perl -aF, -ne 'printf "conf zone...
2,256
Posted By durden_tyler
In that case, change the following line in your...
In that case, change the following line in your program:


/^option\s+domain-name-servers\s.*/ && s/([\w.]*\w)\.?/$ip{$1}||($donthave{$1}=$1)/eg;


to this -

...
3,080
Posted By dude2cool
Remove the echo in front of the "mv" command. ...
Remove the echo in front of the "mv" command.

echo mv temp "$line" should read as mv temp "$line"
3,080
Posted By ahamed101
The actual files are modified and are present at...
The actual files are modified and are present at the respective path!
Check this file on your system "/Users/richsark/test-US/dhcp/dhcp.in"

Don't remove the entire echo line... Use this...
...
Showing results 1 to 7 of 7

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