Timeline for group ip address to different subnet with shell
Current License: CC BY-SA 4.0
13 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Oct 13, 2024 at 14:40 | comment | added | peng xiao | Hi Stephane,could you pleaset take further look regargding this,I have posted another question.unix.stackexchange.com/questions/785014/… | |
| Oct 9, 2024 at 12:45 | history | edited | Stéphane Chazelas | CC BY-SA 4.0 | added 179 characters in body |
| Oct 9, 2024 at 12:21 | vote | accept | peng xiao | ||
| Oct 9, 2024 at 7:26 | history | edited | Stéphane Chazelas | CC BY-SA 4.0 | edited body |
| Oct 9, 2024 at 7:15 | comment | added | peng xiao | I will use the perl code in a bash script,as I just need those paired ips to create redis cluster | |
| Oct 9, 2024 at 6:10 | history | edited | Stéphane Chazelas | CC BY-SA 4.0 | added 342 characters in body |
| Oct 9, 2024 at 6:02 | history | edited | Stéphane Chazelas | CC BY-SA 4.0 | added 342 characters in body |
| Oct 9, 2024 at 5:45 | comment | added | peng xiao | Thanks Stéphane for your patience and professionalism,this really solved my problem. | |
| Oct 9, 2024 at 5:45 | history | edited | Stéphane Chazelas | CC BY-SA 4.0 | added 34 characters in body |
| Oct 9, 2024 at 5:39 | comment | added | Stéphane Chazelas | @pengxiao, see edit. | |
| Oct 9, 2024 at 5:38 | history | edited | Stéphane Chazelas | CC BY-SA 4.0 | added 1140 characters in body |
| Oct 9, 2024 at 5:34 | comment | added | peng xiao | This did work!I'm not familiar with perl,could you please explain further? push @{$s{s/\.\d+$//r}} this means remove the last . and the following digits and then push ips into hash?And I don't understand this part for ($n = @ARGV; $n; $n -= 2) { @l = sort {@$b <=> @$a} @l; thanks | |
| Oct 8, 2024 at 21:36 | history | answered | Stéphane Chazelas | CC BY-SA 4.0 |