Mike Schilli's Friendly Neighborhood Perl Shop

Home
USArundbrief.com
Resume
CPAN Modules
Articles in English
Articles in German
Mike's Script Archive
English-Japanese Translation Trainer
Adventures with O'Reilly's Safari
10 Easy Steps to Become a California Driver
Unofficial perlmonks.com IRC Channel
My Collection of Outage Pages
Prisma (Computer Club Deutschland)
Mike's Monologues
Mike's Script Archive: slice

slice - Grab a slice from a file defined by a line range


NAME

    slice - Grab a slice from a file defined by a line range


DOWNLOAD

slice


SYNOPSIS

    slice from_line to_line [file]
 from_line:  Line number to start the slice with
 to_line:    Line number to end the slice with
 file:       File name


OPTIONS


DESCRIPTION

slice opens the given file or STDIN and prints the lines starting from from_line and ending at to_line.


EXAMPLES

  $ slice 1 3 /etc/passwd

... prints the first three lines of /etc/passwd.

  $ cat /etc/passwd | slice 5 10

... prints lines 5 to 10 of /etc/passwd.


LEGALESE

Copyright 2002 by Mike Schilli, all rights reserved. This program is free software, you can redistribute it and/or modify it under the same terms as Perl itself.


AUTHOR

2002, Mike Schilli <m@perlmeister.com>


Latest update: 20-Oct-2013