cat command

April 3, 2009 at 11:07:32
Specs: Windows Vista
$ cat journal
# journal: add journalentries to the file
# $HOME/journal-file

file=”$name” n >> $file
date >> $file
echo “Enter name of person or group: \c”
read name
echo “$name” >> $file
echo >> $file
cat >> $file
-------------------------------------“>> $file
echo >> $file

I did not understand in this cript why does they
use the read built-in the first time it accepts
input from the terminal and the cat
utility the second time please help me to figer
this out

See More: cat command

Report •

April 5, 2009 at 14:48:16
read is for input and cat is output (redirected by >>)

John W. Borelli
IT Specialist

Report •
Related Solutions

Ask Question