Cat

From Hackepedia
Revision as of 15:39, 10 August 2007 by Franks (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

Cat is a command to concatenate or just print files.. here is an example

cat file | head

which would pipe the file "file" to the program head.

#!/bin/sh

while : ; do
 read i
 echo $i
done

The above script serves as a rudamentary cat, when it's missing in a system.