Linux Commands Examples

A great documentation place for Linux commands


extract one line of pixel values out of a portable graymap


pgmslice -row|-col line [pgmfile]

add an example, a script, a trick and tips

: email address (won't be displayed)
: name

Step 2

Thanks for this example ! - It will be moderated and published shortly.

Feel free to post other examples
Oops ! There is a tiny cockup. A damn 404 cockup. Please contact the loosy team who maintains and develops this wonderful site by clicking in the mighty feedback button on the side of the page. Say what happened. Thanks!


no example yet ...

... Feel free to add your own example above to help other Linux-lovers !


Extracts one line of pixel values out of a portable graymap and outputs it in a two column ascii format, with the first value being the pixel’s position in the line and the second value the pixel’s greyscale value. This is useful for making cross sections through, for example, greyscale CCD images.



Extract a row of pixels


Extract a column of pixels

see also



pgmslice was written by Jos Dingjan <jos[:at:]tuatha[:dot:]org> after being unable to find the source code to Marco Beijersbergen’s program with the same name.

How can this site be more helpful to YOU ?

give  feedback