# phpman > man > pgmslice(1)

> **TLDR:** This command has been superseded by `pamslice`.
>
- View documentation for the current command:
  `tldr pamslice`

*Source: tldr-pages*

---

[pgmslice(1)](https://www.chedong.com/phpMan.php/man/pgmslice/1/markdown)                            General Commands Manual                           [pgmslice(1)](https://www.chedong.com/phpMan.php/man/pgmslice/1/markdown)



## NAME
       pgmslice - extract one line of pixel values out of a portable graymap

## SYNOPSIS
       **pgmslice** **-row**|**-col** _line_ [_pgmfile_]

## DESCRIPTION
       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 ex‐
       ample, greyscale CCD images.

## OPTIONS
### -row

### -col

## SEE ALSO
       [pgm(5)](https://www.chedong.com/phpMan.php/man/pgm/5/markdown)

## AUTHOR
       pgmslice was written by Jos Dingjan <<jos@tuatha.org>> after being unable to  find  the  source
       code to Marco Beijersbergen's program with the same name.




                                             22 May 2000                                 [pgmslice(1)](https://www.chedong.com/phpMan.php/man/pgmslice/1/markdown)
