Archive

Posts Tagged ‘tip’

How to select odd (or even ) raws from a text file using the bash

January 27th, 2012 No comments

Yesterday I had to select some raws (1, 5, 9, ….) from a text file.

This has been a hard job because I was trying to solve the wrong problem……

Really, before coding you should analyze deeply your problem and then you should think which tool you need to use.

However, come on and see my experiments:

First of all we need a test file, I'll use the following:

How to remove all files generated by an extracted tar archive

December 24th, 2009 No comments

Often I use tar files downloaded from the internet, sometimes these files don't include a directory containing all other files and directories, so it's very tedious removing all files generated by the extraction, but I can use the following command to remove all the files generated:

Categories: Bash Tip & Tricks, linux Tags: , , ,
Statistical data collected by Statpress SEOlution (blogcraft).