03-08-2010
do u mean want to append the lines in a file based on the user inputs ?
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I want to add lines in my script dynamically.
My script:
...
echo addscript
end addscript
...
Lines to add: (can be put in a file and can be added)
cp /opt/script1.sh opt/script1_org.sh
sed 's/testusr/'${FUNCTID}'/g' /opt/script1.sh > ./tmpfile
mv ./tmpfile /opt/script1.sh... (1 Reply)
Discussion started by: chiru_h
1 Replies
2. Homework & Coursework Questions
first off let me introduce myself. My name is Eric and I am new to linux, I am taking an advanced linux administration class and we are tasked with creating a script to add new users that anyone can run, has to check for the existence of a directory. if the directory does not exist then it has... (12 Replies)
Discussion started by: pbhound
12 Replies
3. Programming
Please pardon my ignorance, but I need to create a web-based form which can be used to request access to the unix servers in our environment. It just needs to have input fields for basic info (name, dept., etc.), and perhaps a drop-down box with the names of the servers. The form will be submitted... (2 Replies)
Discussion started by: wjssj
2 Replies
4. Shell Programming and Scripting
Hello. My latest project has me with the need for the following script. Basically, any directory that includes a .jpg file needs to also have a ".picture" file created (if it doesn't exist). Here's an example of what I need.
/mnt/user/Pictures/2011/Hawaii - 2011/.picture... (11 Replies)
Discussion started by: Davinator
11 Replies
5. Shell Programming and Scripting
Hi folks! I'm new to the unix-side of the world! ;) and I'm trying to learn as much as possible the good stuff that's in it!
So.. here comes the point.. as you can see in the title, I need to copy a file but truncating it so that last 1-2 lines are not copied... any suggests from the... (6 Replies)
Discussion started by: WideMind
6 Replies
6. Shell Programming and Scripting
In the below bash a file is downloaded when the program is opened and then that file is searched based on user input and the result is written to a new file.
For example, the bash is opened and the download.txt is downloaded, the user then enters the id (NA04520). The id is used to search... (5 Replies)
Discussion started by: cmccabe
5 Replies
7. UNIX for Dummies Questions & Answers
Hi All,
I am a newbie,
I am looking for a script that can capture logs based on a request id and store it in tmp folder
Log files looks like this"
- 2015-07-08 10:59:17,100 INFO RequestId -> 923559008 Inside test method
- 2015-07-08 10:59:17,100 INFO RequestId -> 923559008 End of... (2 Replies)
Discussion started by: tsingh
2 Replies
8. Shell Programming and Scripting
Hi Friends,
I have a menu based tool which requires input/option to proceed further. How to make a shell script ?
eg: menu looks like
Get_data.sh
to continue (y/n) :
Here I need to key in "y" to proceed.
I want to prepare a script which should consider option y. (5 Replies)
Discussion started by: suresh3566
5 Replies
9. Shell Programming and Scripting
I am trying to create a bash script that will create new function by using the user input. The below will create the necessary files in the correct format, however when it comes to the # create function I am at a loss.
If the name entered was NEWNAME and the genes were GENE1,GENE2 then two files... (0 Replies)
Discussion started by: cmccabe
0 Replies
10. Shell Programming and Scripting
I am trying to use awk to create (in this example) 3 seperate text file from the unique id in $1 in file, if it starts with the pattern aa. The contents of each row is used to populate each text file except for $1 which is not needed. It seems I am close but not quite get there. Thank you :).
... (3 Replies)
Discussion started by: cmccabe
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)