First, your input (obviously a filemode mask) has more structure: the "r" can only appear in the 1nd, 4th or 7th place, the "w" can only appear in the 2rd, 5th or 8th place, etc.
Construct a regular expression for this and compare the input string against this regexp:
Hi Folks,
I'm using bash script. I would like to check whether input is a number or not.(Only positive numbers).. if space or non numeric is entered, it should say "invalid input". pls help..
thanks in adv.
Br///
Vijay. (1 Reply)
Dear All,
The sqlplus 'Accept' command is not waiting for user input when I include the command within a shell script.
Note: The 'Accept' command is working fine if I execute it in a SQLPLUS Prompt.
Please fins the below sample script which i tried.
SCRIPT:
--------
#!... (4 Replies)
Hello
I am trying to create a user input shell scipt. The objective is user should enter the circuit number and the input is saved in a log file. If the user does not enter anything then the question should prompt it until the circuit no. is entered.
Can any one please correct the code below.... (3 Replies)
HI all,
I want to script where all the server names will be in a text file like
server1
server2
server3 . and the script should take servernames from a text file and perform copy of files if the files are not present on those servers.after which it should take next servername till the end of... (0 Replies)
1. The problem statement, all variables and given/known data:
The script usage will be as follows:
library.third source_directory
- Your script will display an appropriate error message and exit with status 3 if no parameters are given
- Your script will display an appropriate error... (2 Replies)
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 want to create an array which can store the strings from the user input in shell script .
example :-
I want to store the 5 fruits name in a single array which the user provides . (1 Reply)
I want a shell script that accepts user input simultaneously when performing other tasks. Example: A shell script should echo some messages on the console and when the user presses some keys it should respond to that action.
say, when user presses the key
A - more information should be printed... (2 Replies)
I need a script that should print 'yes' if the argument is a valid shell variable name else 'No' if it is not a valid shell variable. A valid one begins with an alphabet or percentage (%) character and is followed by zero or more alphanumberic or percentage (%) characters.
For example:
$... (6 Replies)
Hello, I want to start out by saying that I am fairly new to scripting and am looking for someone that can point me in the right direction.
Basically what I need is a way to run a interactive script that will prompt users with questions weather that be yes/no or a specific answer.. I want to be... (3 Replies)
Discussion started by: shoutcast
3 Replies
LEARN ABOUT DEBIAN
libgii.conf
libgii.conf(5) GGI libgii.conf(5)NAME
libgii.conf - LibGII configuration file format
DESCRIPTION
/etc/ggi/libgii.conf is the configuration file that defines what input module are available and where libgii is supposed to find them. It
consists of lines defining target locations (mapping a target name a function name) and target aliases (fake targets that actually calls
other target with a specific set of parameters).
The format is common to all GGI libraries. It is defined by libgg. See ggLoadConfig(3) for additional information on file inclusions and
other generic options.
EXAMPLES
These examples show how to use the generic configuration mechanism proposed by LibGG with LibGII.
The first example defines three input modules (or targets) for which initialization function is found in three different dynamic libraries
(.so files), under the default LibGII input symbol: GIIdlinit:
input-stdin input/stdin.so
input-x input/x.so
input-xwin input/xwin.so
In the second example, the two inputs are implemented in a single dynamic library, but they each have their own initialization functions in
this library. Their name is separated from the path by a :.
input-x input/x.so:GIIdl_x input-xwin input/x.so:GIIdl_xwin
The third example defines only one real target input-x, located in shared object input/x.so under the symbol GIIdl_x. input-xwin is an
alias that will resolve to target input-x with the option string -be-xwin to be passed to the target function (GIIdl_x in input/x.so).
input-x input/x.so:GIIdl_x alias input-xwin input-x:-be-xwin
The last examples defines two inputs, with two possible location for their implementation. The first two lines are the same as in example
2. The other two states that these two inputs can also be found (if the previous fail) as a built-in modules. The /gii-builtins path points
to the LibGII built-in symbol namespace. In this case both input would be found in this namespace under the default symbol GIIdlinit. The
initialization function will be given the requested target name to know which implementation to use.
input-x input/x.so:GIIdl_x input-xwin input/x.so:GIIdl_xwin
input-x /gii-builtins input-xwin /gii-builtins
SEE ALSO ggLoadConfig(3)libgii-1.0.x 2006-12-30 libgii.conf(5)