When i run 1.sh, ask me yes or no, and, if i asnwerd yes, there continue the procediment
. All without putting it into a single script, and who uses the confirm many more scripts.
I have two script.
============
1 with the following code confirm.sh
#################################
2º script 1.sh
#######
Last edited by ave-phoenix; 08-30-2010 at 11:29 AM..
You want a script that takes [yes|no] and if the answer is "yes", you want it to echo some text, right?
As a side note, you do not need to sudo for a simple echo. Every user with a shell can do this.
Thanks.. i change de code, but this is the problem
Quote:
Originally Posted by zaxxon
I did not understand.
You want a script that takes [yes|no] and if the answer is "yes", you want it to echo some text, right?
As a side note, you do not need to sudo for a simple echo. Every user with a shell can do this.
Last edited by ave-phoenix; 08-31-2010 at 03:24 AM..
I am trying to identify all messages or prompts from a number of COBOL programs and they can usually be identified by a pair of double quotes on one line. However, sometimes the literal will not be finished on the first line but after a dash in column 7 of the next line, the literal will be... (6 Replies)
Hi, I am a long time Windows user and recently try this Debian Wheezy OS. Burn Debian ISO in Windows environment and then select DVD ROM drive to boot first in BIOS.
The first installation of Debian (GNOME) was with multi-boot option that allows booting from hard disk and DVD drive. I then... (4 Replies)
Hi,
I am taking up the cue from where I was left in my earlier post ( link given below )
https://www.unix.com/shell-programming-scripting/231107-implement-parallel-processing.html
I actually wanted to know the significance of using the Unix "wait" , which returns
the control from background to... (3 Replies)
Perderabo *
Unix Daemon
*
Join Date: Aug 2001
Location: Ashburn, Virginia
Posts: 9,071
Using head and tail like that is terribly inefficient. I decided to try a rewrite. Sheesh...I spent all morning on this....
Code:
#! /usr/bin/ksh
#
# scroller --- display text, but sleep every... (0 Replies)