Software

25 articles

Insert text from a file recursively using sed

To add some context, my goal here was to insert a copyright statement at the start of each PHP file present in my working directory. I knew how to replace the content of a file with the sed utility, so I first started to look for a way to read input from a file. It appears that the GNU version of…

Linux: display images type and size in command line

Front-end developers probably often need to verify the properties of some images like their type or their dimensions. To avoid firing Gimp or similar software just for a quick look, GNU/Linux distributions1 offer as usual handy tools like identify, coming from the ImageMagick suite. You can of…

The Pitivi team still needs our help for bringing their simple to use open source video editor to a professional level. The campaign has past half of its goal and counting...

Delete lines containing a specific string with sed

The following command makes sed delete every lines containing the matching pattern from the file named foo. If this file is important, we make sure to back it up first! $ sed -i '/pattern/d' /path/to/foo The -i flag (GNU version only) edit the file in-place. For non-GNU version, we can redirect the…

Less than 20 days to help fund the Gooseberry project from the Blender Foundation

Update: having more than 3000 supporters, the team has decided to extend the campaign until May 8th. It is not too late to join in! Less than 20 days to help fund the Gooseberry project from the Blender Foundation. Blender is a free (as in freedom and free beer) 3D modelling software. After several…