Script to capture a screenshot (with Chromium) (Command-line)

Introduction

I wanted to take screenshots of about 15 Websites, but didn’t want to install any plugins as I wouldn’t use them often. I saw a lot of how-to’s using import from Imagemagick but they capture the whole screen, not clearly what I was looking for.

Using chromium, xwininfo (from X) and import, I made this bash script which captures only the webpage. See below for the Source code.

Read the rest of this entry »

――

Differences between grep, fgrep, egrep…

Grep is a very useful tool in the Unix world. If you don’t know it already, it is very much like a search tool. It can search for a text or pattern in one or multiple input files or data coming from (unix) pipes.

Most of the Linux distributions out there offer three ways to use Grep from the command-line (aka terminal): grep, fgrep, and egrep.
Read the rest of this entry »

――