![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Saving changes when using the sed command | rc1138 | UNIX for Dummies Questions & Answers | 3 | 11-11-2008 11:12 PM |
| saving a vi session | ajcannon | Shell Programming and Scripting | 0 | 09-20-2007 05:07 AM |
| saving macros for VIM | yngwie | UNIX for Dummies Questions & Answers | 3 | 05-14-2007 01:26 AM |
| saving from unix into pc | alikun | UNIX for Dummies Questions & Answers | 6 | 03-28-2007 03:03 AM |
| Saving to a floppy | umether | UNIX for Dummies Questions & Answers | 1 | 08-26-2005 06:59 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Saving value as default value
Hi everybody,
I have a prog who is filtering an image with a lot of parameters. The user has two choices : -Running the script with default values -Running the script manually (i.e choosing himself the parameters values) What I would like to do is that if he wants, the users can keep the values he chose as new default values. WIth stg like a question : "Do you want to keep those values as default? [Y/N]" And the problem is that I have no idea how to do that.... So if anyone could help me, i'll be very grateful! Thanks |
|
|||||
|
Quote:
To accept the user's option see one of these making a .sh wait for user input Getting user input If you are wondering how to save the parameters, then accept the params for the first time and then dump them onto a file with <key,value> pair like RUN_ALGO=YES TRANSFORM=NO et al. Later, in the next run, look for this file and read the entries. |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|