Computing.Net > Forums > Programming > cat command

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Click here to start participating now! Also, check out the New User Guide.

cat command

Reply to Message Icon

Name: reyas055
Date: April 3, 2009 at 11:07:32 Pacific
OS: Windows Vista
Subcategory: Batch
Comment:

$ 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
echo”-----------------------------------------------------------
-------------------------------------“>> $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




Sponsored Link
Ads by Google

Response Number 1
Name: borelli35
Date: April 5, 2009 at 14:48:16 Pacific
Reply:

read is for input and cat is output (redirected by >>)

John W. Borelli
IT Specialist
OmniIT
borelli35


0
Reply to Message Icon

Related Posts

See More


batch file help VB 6.0 Coding



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: cat command

How to recursively traverse dirs www.computing.net/answers/programming/how-to-recursively-traverse-dirs-/16217.html

Java command help www.computing.net/answers/programming/java-command-help/14947.html

Unix commands in Command prompt? www.computing.net/answers/programming/unix-commands-in-command-prompt/15282.html