Technology

AWK: Sum of a Column

Imagine you have a file with multiple columns and you need to quickly get the total of a column in command line in UNIX. The easiest way is to use AWK in the command line. Let’s take the following file: datafile.txt 1 2 3 4 5 6 7 8 9 Read more…

Tutorials

PCL – Centring Variable-width Text

If you ever had to deal with PCL you would know that there is no command to centre the text. There are some printers that support HPGL command embedded in the PCL file, but not all. If we are printing a predefined text, we know the measurements and would set absolute positioning. But Read more…

%d bloggers like this: