CGI - what is "cat"

Posted on 2009-07-15
Last Modified: 2013-12-25

I am using cgi web server. I am totaly new to this area.
I see that in scripts many times CAT word appears. What is it's meaning? Is it a variavle?

cat << EOM

Open in new window

Question by:margarit
LVL 54

Accepted Solution

b0lsc0tt earned 250 total points
ID: 24866851

The word cat is used as an abbrevaition for concatenate.  The result would be printed.  If there is more than one "input" then they are combined and that result is printed.

The line you have seems to start have  the start of a "here-doc" so it is hard to tell what the result would be.  If this doesn't seem to fit what you are getting or using then please provide more of a sample of the code and clarify what runs it (i.e. the language used).

Let me know if you have any questions or need more information.

LVL 84

Assisted Solution

ozo earned 250 total points
ID: 24866906
man cat

     cat -- concatenate and print files

     cat [-benstuv] [-] [file ...]

     The cat utility reads files sequentially, writing them to the standard
     output.  The file operands are processed in command line order.  A single
     dash represents the standard input.

     The options are as follows:

Author Closing Comment

ID: 31604126

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
How to use question mark (?) in filename with html 25 71
AWK: digits < 10 add a zero how? 11 24
Filktering Alphabetically 8 28
HTML Anchor Link Problem 3 35
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

790 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question