I am trying to create a shell (ksh) which has two "read" commands, one which reads a line from a file and another which is inside a loop that reads user input from a keyboard. However, the "read" command inside the loop uses the input from the file and it does not get the user input from keyboard.... (3 Replies)
Hello all,
How can i have a user input that reads like this:
echo -n "Please enter a & b:" 10 20
read a
read b
echo $a
echo $b
10
20
right now i have divided it into two echos, like
echo -n "a: "
echo -n "b: " (1 Reply)
I'm trying to set up a script that takes user input and validates that the user input was entered correctly.
So far I have this:
while :
do
echo "Please enter your name."
read NAME
if
then
echo "You have not entered a name."
echo... (13 Replies)
If I want all user input to start with " : " if not display error
or what I asking is how to do if statement that control a first letter of string that we want to start with. and not worry about the rest
Thank (1 Reply)
Hi,
echo "Enter file name of input file list along with absolute path : "
read inputFileList
if
then
for string in `cat inputFileList`
do
echo $string
done
else
echo " file does not exist"
fi
From the above code, if the user enters a invalid file... (1 Reply)
i have a script which takes input from user, if user gives either Y/y then it should continue, else it should quit by displaying user cancelled.
#!/bin/sh
echo " Enter your choice to continue y/Y OR n/N to quit "
read A
if
then
echo " user requested to continue "
##some commands... (7 Replies)
$Input_filename=$ARGV;
if (!-d $Input_filename && ! -e $Input_filename)
{
print "USAGE: Please enter '$ABCD/def/dsed.txt' as an arguement \n";
exit;
}
1. Input Is suppose to be something like "$ABCD/def/dsed.txt".
if the input is wrong the script should throw an ERROR message.... (2 Replies)
Why does removing "rhgb quiet" from the kernel boot parameters control whether or not the commands I enter are displayed in single user mode ?
For instance, if I do not remove "rhgb quiet", when I am in single user mode, whatever command I type will not be displayed on the screen.
The... (0 Replies)
I am trying to allow a user to enter in text and then store that text in a variable $gene to run in an awk command in which those values are used to run some calculations. I am getting syntax errors however, when I try. Thank you :).
The awk runs great if it is a pre-defined file that is used,... (7 Replies)
Discussion started by: cmccabe
7 Replies
LEARN ABOUT DEBIAN
ubuntu-dev-tools
ubuntu-dev-tools(5) File Formats Manual ubuntu-dev-tools(5)NAME
ubuntu-dev-tools - Configuration for the ubuntu-dev-tools package.
DESCRIPTION
The ubuntu-dev-tools package is similar in scope to the devscripts(1) package, providing a collection of scripts which may be of use to
Ubuntu and Debian developers or others wishing to build Debian packages.
Some of these scripts have options which may be configured on a system-wide and per-user basis. These options are configured in
devscripts.conf(5).
All variables are described in the script's manpages. Package-wide variables begin with "UBUNTUTOOLS" and are listed below.
Every script which reads the configuration files can be forced to ignore them by using the --no-conf command-line option.
ENVIRONMENT
All ubuntu-dev-tools configuration variables can be set (and overridden) by setting them in the environment (unlike devscripts).
In addition, several scripts use the following environment variables:
UBUMAIL
Overrides DEBEMAIL and DEBFULLNAME when the target is clearly Ubuntu. Can either contain an e-mail address or Full Name
<email@example.org>.
DEBEMAIL, DEBFULLNAME
As in devscripts(1).
PACKAGE-WIDE VARIABLES
The currently recognised package-wide variables are:
UBUNTUTOOLS_BUILDER
This specifies the preferred test-builder, one of pbuilder (default), sbuild, pbuilder-dist.
UBUNTUTOOLS_DEBIAN_MIRROR
The preferred Debian archive mirror. Should be of the form http://ftp.debian.org/debian (no trailing slash). If not specified, the
master will be used.
UBUNTUTOOLS_DEBSEC_MIRROR
The preferred Debian security archive mirror. Should be of the form http://security.debian.org (no trailing slash). If not speci-
fied, the master will be used.
UBUNTUTOOLS_UBUNTU_MIRROR
The preferred Ubuntu archive mirror. Should be of the form http://archive.ubuntu.com/ubuntu (no trailing slash). If not specified,
the master will be used.
UBUNTUTOOLS_UBUNTU_PORTS_MIRROR
The preferred Ubuntu archive mirror. Should be of the form http://ports.ubuntu.com (no trailing slash). If not specified, the mas-
ter will be used.
UBUNTUTOOLS_LPINSTANCE
The launchpad instance to communicate with. e.g. production (default) or staging.
UBUNTUTOOLS_MIRROR_FALLBACK
Whether or not to fall-back to the master archive mirror. This is usually the desired behaviour, as mirrors can lag the masters.
If on a private network with only a local mirror, you may want to set this to no. One of yes (default) or no.
UBUNTUTOOLS_UPDATE_BUILDER
Whether or not to update the test-builder before each test build. One of yes or no (default).
UBUNTUTOOLS_WORKDIR
The directory to use for preparing source packages etc. When unset, defaults to a directory in /tmp/ named after the script.
SEE ALSO devscripts(1), devscripts.conf(5)AUTHORS
This manpage was written by Stefano Rivera <stefanor@ubuntu.com>.
ubuntu-dev-tools December 19 2010 ubuntu-dev-tools(5)