Convert .m4a files to mp3 (AAC to MP3)
I have been buying some music on itunes, it comes in AAC (.m4a) format, which is great to use in itunes (I have it on a Windows 7 running over VirtualBox), or to use it in my iPod Touch or iPod shuffle, but if I want to use it in my cell phone (an old one which does not support AAC format) I have to convert it to mp3, I have to also convert it if I plan to use mpg123 which I use a lot.
Well lets go to learn how to convert from AAC to MP3
for - Control flow statement in shell scripts
One real important part of programming is to control the flow of the program, you need to be able to repeat some part of the code, jump to another part, etc, depending on the estate of some variables, there are a lot of commands to achieve that, and one of them is for
It can be used directly at the command line like this example using basename
for i in *.jpg; do echo $i $(basename $i .jpg); done
Simple shell script
Maybe most of the readers of this blog do already know about shell scripts, and maybe they know even more than me (which is not difficult), but for those who does not know about it, I will write a little about shell scripts.
A shell script is a sequence of commands -For those coming from DOS is like a .bat file- this command will execute in the sequence they are entered, unless loops, if, do, for, or any other commands like those are used.
Writing the script
Lets go with the classic example, of "Hello World"
Shell Script Automatic Install (create) Apache2 Virtual Servers
When ever you may need to create Virtual Servers for Apache2, you can use this script.
It will create the directory, the config file, and the symbolic link to the /etc/apache2/sites-available in the /etc/apache2/sites-enabled, so will do the job for you.
shell script to backup files using ncftp or scp
With this shell script you can choose at your discretion to use ftp (ncftpput) or ssh (scp) to move your backup files to another server, you can get this script run on a cron job for automatic backup, it also uses tar command to compress your files, before copying them.
If this was useful for you, please consider making a donation, any amount is welcome, please proceed by clicking on the yellow donate button, thank you in advance.







Recent comments
2 days 21 hours ago
2 days 21 hours ago
5 days 22 hours ago
1 week 12 hours ago
1 week 15 hours ago
1 week 5 days ago
2 weeks 3 days ago
3 weeks 4 hours ago
3 weeks 1 day ago
3 weeks 3 days ago