Pario TechnoBlob
About
Posts
Tag: sed
Apache web connections pr hour
This is a bash oneliner to show Apache web connections pr hour. It lists up the IPs that has accessed your webserver and the amount og accesses. # cat...
Strip the kernel to contain only needed modules
This is a great page with som nice bash scripts describing how to remove unwanted modules from your kernel.
nslookup-scan of IP-range/subnet
#!/bin/bash # nslookup-scan of IP-range # It's possible to add more networks separated with space NETS="192.168.0" IPRange="1 254" for NET in $NETS; do for...
Hints and Tips for general shell script programming
WARNING: this will fail if the user is playing with $0 For example using a symbolic or hard link with a unexpected name. # Simplest... # PROGNAME=
type $0 | awk '{print $3}'
#...
««
«
1
2
3
…
9
»
»»