Quantcast
Channel: Pario TechnoBlob » grep
Browsing latest articles
Browse All 5 View Live

Backup mysql databases into separate files

This bach script makes separate backup files of all the databases in mysql and saves the result in the mysql_backup folder. #!/bin/bash -v USERNAME='yourusername' PASSWORD='yourpassword'...

View Article



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.

View Article

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 /var/log/apache2/access_log_pario.no | grep...

View Article

My 10 most used linux commands

This is a oneliner bash command to determine my 10 most used linux commands according to my history file history | awk '{CMD[$2]++;count++;}END { for (a in CMD)print CMD[a] " " CMD[a]/count*100 "% "...

View Article

Windows grep command alternative

grep is a linux console command to print lines matching a line, but Windows does not have the grep command. In Windows you have to use the findstr command in a console window. Example C:\>dir...

View Article

Browsing latest articles
Browse All 5 View Live




Latest Images