Every now and then I need to send by email some file to a friend or coworker or even myself. I have found that the easiest way to do this is just having a shell script that do the hard work for you.
After some research I found a set of scripts that actually do what [...]
Here is a tiny script that can be usefull to terminate (kill -9) all the programs which contain a certain string (i.e.: kill all the running copies of ping).
#!/bin/bash
for foo in `ps aux | grep $1 | awk ‘{print $2}’`; do kill -9 $foo; done
Just run: matar <program name> and that’s it. They are [...]
Just a quick tip!
You have to use the bash function ${foo//string1/string2}. Check the Advanced Bash-Scripting Guide for a complete list of string manipulating functions.
for foo in *; do mv "$foo" ${foo// /_}; done
Much in the way we did with xfce here is the way to implement de auto change feature in KDE.
This is an easy one. Although you can perform background auto change from KDE control center, it may be usefull to have a script to do the task. You can use this script to create a [...]