Computing.Net > Forums > Unix > Ask questions, append answr to file

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Ask questions, append answr to file

Reply to Message Icon

Name: Big_Z
Date: February 11, 2004 at 10:25:36 Pacific
OS: AIX 5.1
CPU/Ram: 1024/GB
Comment:

First of all, I would like to thank the folks posting here.. I have learned a lot.
Now to my next issue -
I am trying to create a script that will prompt a user with 7 questions. The answer needs to be appended to a file called changelog.txt.

Question 1 is: How many jobs did you change?

Question 2 is: What is/are the jobname(s)?

Question 3 is: Date of change:

Question 4 is: What is the CR number?

Question 5 is: Was this an Add, Change, or Delete?

Question 6 is: Date of first run is:

Question 7 is: Give a brief description of the change:

If possible, I would like to append the answers in line format.. Answer 1 should be in field #1, Answer 2 should be in field #2, and so on.

Thanks again! BTW I am using ksh.

Big Z



Sponsored Link
Ads by Google

Response Number 1
Name: aigles
Date: February 11, 2004 at 10:35:35 Pacific
Reply:


read R1?"How many jobs did you change? "
read R2?"What is/are the jobname(s)? "
. . . .
read R7?"Give a brief description of the change: "

echo "$R1;$R2;$R3;$R4;$R5;$R6;R7" >> changelog.txt


Jean Pierre.


0

Response Number 2
Name: Big_Z
Date: February 11, 2004 at 10:53:17 Pacific
Reply:

Thanks! works like a charm!

Big_Z


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

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


Go to Unix Forum Home


Sponsored links

Ads by Google


Results for: Ask questions, append answr to file

Write to file www.computing.net/answers/unix/write-to-file/2878.html

capturing files sent to printer to files www.computing.net/answers/unix/capturing-files-sent-to-printer-to-files/2747.html

Append to last line of file www.computing.net/answers/unix/append-to-last-line-of-file/5212.html