Monthly Archives: January 2012

Using piped examples with tee and xargs .

The | operator makes bash redirect all data that the command left of it returns to the stdout Let’s try a more complex example. If you want to see the data and write to the file passed on between programs in a pipe, you can insert the tee command.

The data shown by ps… Read More »

Python – simple language scripting.

The official site says: Python is a dynamic object-oriented programming language that can be used for many kinds of software development. It offers strong support for integration with other languages and tools, comes with extensive standard libraries, and can be learned in a few days. Many Python programmers report substantial productivity gains and feel… Read More »

Parsing files and rename …

Sometimes you have to rename files. This can be tiring when we do it manually. Command sed may be helpful in this case. I’ll take a simple example. I will create a working directory called work. We have to create files with the command:

The result should be :

Try these commands to… Read More »

Useful commands for Windows XP

These are commands that can be used in the command line in Windows XP.

Create ls command on Windows XP.

When using the command line on Windows have a big problem. This happens because I use Linux on my computer. Command alias of Linux gave me the idea. I put these lines of code in the Autoexec.bat file:

Now, using the REGEDIT command to startup Autoexec.bat. If you try to use ls -l this… Read More »