GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  FELIS (1)

NAME

felis - File Contents Display (v1.0)

CONTENTS

Synopsis
Description
Usage
     Displaying Files
     Examples
History

SYNOPSIS

felis [inputfile ...]

DESCRIPTION

The felis utility sends the contents of text files to stdout. Unlike cat, felis combines any number of white space (including new lines) into a single blank, displaying the entire contents on a single line.
.Lp It strips any leading and trailing blanks, but inserts a blank space between files.
.Lp With some files the effect of felis could be emulated by something like
.Lp

    echo ‘cat inputfile ...‘


.Lp Alas, that does not always work. Hence the need for felis as a separate program.
.Lp The felis utility exits 0 on success. Otherwise, the exit value equals the number of files felis could not open.

USAGE

    Displaying Files

    felis inputfile ...


.Lp Inputfile is one or more text files.
.Lp If no inputfile is listed, felis reads its input from stdin.
.Lp The input contents can be in plain ASCII, in any of the ISO-8859 encodings, as well as in UTF-8.
.Lp

    Examples

    sendmail ‘felis customers friends‘ < message


.Lp This will send the contents of message to addresses listed in customers and friends.
.Lp Here is an example of a CGI shell script:
.Lp

    #!/bin/sh

    echo Content-type: text/html; charset=utf-8

    echo

    script.cgi | felis


.Lp This will combine the HTML output of script.cgi into a single line, which can save bandwidth.
.Lp Note that the HTTP header is sent out separately because it must end with two new lines, which felis would strip otherwise.
.Lp

HISTORY

Both felis and this manual page were written by G. Adam Stanislav <adam@whizkidtech.net>.
.Lp The word felis is Latin for cat.

Search for    or go to Top of page |  Section 1 |  Main Index


Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.