CGI - what is "cat"

Posted on 2009-07-15
Medium Priority
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
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
LVL 54

Accepted Solution

b0lsc0tt earned 1000 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 1000 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: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone 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

When it comes to write a Context Sensitive Help (an online help that is obtained from a specific point in state of software to provide help with that state) ,  first we need to make the file that contains all topics, which are given exclusive IDs. …
Is your Office 365 signature not working the way you want it to? Are signature updates taking up too much of your time? Let's run through the most common problems that an IT administrator can encounter when dealing with Office 365 email signatures.
In this tutorial viewers will learn how to embed videos in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <video> tag to insert a video. Define the src as the URL of your video; this is similar to …
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.
Suggested Courses

770 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