NAME
fl - execute a command and display the first M and last N lines of output
SYNOPSIS
fl [options]
DESCRIPTION
fl executes a user-specified command and displays the first M
and last N lines of the command's output. By default, ten lines from
the beginning and end of the output will be printed, but these line counts
may be changed by the -count, -first, and -last options.
If the length of the output is less than the length of the first chunk
and the last chunk, all the output lines will be printed. Otherwise, the
first chunk and the last chunk will be printed, separated by an empty line.
OPTIONS
The following options are handled by fl:
- -count count
Show count lines from start and end of output. By default, 10 lines
will be printed from each.
This option may not be used with the -first or -last option.
- -first firstcount
Show firstcount lines from the start of output.
This option may not be used with the -count option.
- -last lastcount
Show lastcount lines from the end of output.
This option may not be used with the -count option.
- -number
Number the lines being displayed, starting from 1.
(This mimics the -n option of the cat command.)
- -Version
The command version will be printed and fl will exit.
- -help
Displays a usage message.
LICENSE
Copyright 2014 Wayne Morrison
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
AUTHOR
Wayne Morrison, wayne@waynemorrison.com