Search Results

Search: Posts Made By: accolito
960
Posted By accolito
Opinion on an easy shell script (mv)
:wall:I've this simple code:

STF=/opt/aaa
cat $STF | nice sort -u > $STF.new && mv $STF.new $STF

Which works until today. What happened is that this script has been corrupted the FS, so I've...
1,228
Posted By accolito
Thanks CarloM. That worked perfectly :b: ;)
Thanks CarloM. That worked perfectly :b: ;)
1,228
Posted By accolito
Help with shell script - filter txt file full of ips
Hello again gentlemen.
I would like to make a shell script to 'optimize' a plain text full of IPs.
Let's suppose to have this text file:


1.192.63.253-1.192.63.253
1.0.234.46/32
1.1.128.0/17...
11,894
Posted By accolito
wget 1.12 and curl 7.24.0...
wget 1.12

and

curl 7.24.0 (mipsel-unknown-linux-gnu) libcurl/7.24.0 OpenSSL/0.9.7m zlib/1.2.5
Protocols: file ftp ftps http https imap imaps pop3 pop3s rtsp smtp smtps tftp
Features: IPv6...
11,894
Posted By accolito
My wget version won't work. Unluckly I can't...
My wget version won't work. Unluckly I can't update it. Can you please tell me which parameters you use with wget?

$ wget http://blocklist.sigmaprojects.org/api.cfc?method=getlist&lists=spyware
...
11,894
Posted By accolito
Curl/wget shell script to follow redirect.
Hello eveyone.
I would like to create a simple batch with curl (or wget) to download a URL but the URL I can only download from the browser and not from shell because curl and wget won't follow the...
1,198
Posted By accolito
iptables ruleset to allow destination port http/s
Hello gentlemen.
I want to solve a little problem with iptables.

Let's suppose that i've a valid ruleset called MYBLOCK with all ips i want to block.

$ iptables --list

Chain FORWARD...
1,180
Posted By accolito
You are right, those lines are infact intact. I'm...
You are right, those lines are infact intact. I'm still in the process of checking what happened... it's not easy to check a 15mb text file... :(
Edit: it works, my fault. Thanks so much for help.
1,180
Posted By accolito
Found a couple of lines that has been removed: ...
Found a couple of lines that has been removed:

38.101.48.170 TEXT HERE:38.101.48.0-38.101.48.255
Erie Eoege e Eeeel:146.20.0.0-146.20.255.255
1,180
Posted By accolito
Apparently works but it removes a lot of valid...
Apparently works but it removes a lot of valid 'entries': I've removed manually all the entries by myself and the final list is around 14mb. With your grep command the output file is arount 7.8mb...
1,180
Posted By accolito
Help with shell script filtering IPs
Hello gentlemen.
I would like to create a shell script (no perl or python please) to generate a list with those rules.

Let's suppose I've this text file:

a@A:soss(z)1.1.1.1
Opt!o:2.1.9.55...
Showing results 1 to 11 of 11

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