cat - concatenate files and print on the standard output
> -----Original Message----- > From: Camilo Gonzalez [mailto:[EMAIL PROTECTED]] > Sent: Monday, June 03, 2002 9:55 AM > To: '[EMAIL PROTECTED]' > Subject: What is cat? > > > I see the word 'cat' being used an awful lot lately here and have > encountered it in other readings. What is cat and what is it used for? > > #!/usr/local/bin/perl > print <<' EOF' > Camilo Gonzalez > Web Developer > Taylor Johnson Associates > [EMAIL PROTECTED] > <mailto:[EMAIL PROTECTED]> > www.taylorjohnson.com <http://www.taylorjohnson.com/> > EOF cat is a UNIX utility to catenate (string together) several files and print the results on standard output. For example, if you wanted to make a single file out of foo, bar, and baz, you could use: cat foo bar baz >zub A Perl equivalent of that would be: perl -pe 1 foo bar baz >zub Modern versions of cat have several options to control the output. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]