09-26-2018
If above does what it is supposed to do, fine. If you are happy with it, OK.
But, be aware that it is very inefficient compared to the solutions proposed before in this thread. It creates (6 + 4 * n) processes to run this number of commands (n being the number of lines in the file divided by 736) as opposed to one in Don Cragun's proposal and zero in MadeInGermany's as it's only using bash builtins.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello all
i have big test file that has allot of structure text something like this :
<foo1 *.html>
<blah action>
somthing 1
somthing 2
</blah>
</foo1 >
now i will like to insert 2 more lines of text below the <blah action>
so it will be like :
<foo1... (1 Reply)
Discussion started by: umen
1 Replies
2. Shell Programming and Scripting
Hi,
I need to append string "Hi" to the beginning of the lines containing some specific string. How can I achieve that?
Please help.
Malay (1 Reply)
Discussion started by: malaymaru
1 Replies
3. Shell Programming and Scripting
Hi Guys,
I am trying to write a perl script to search a string "Name" in the file "FILE" and also want to create a new file and push the searched string Name line along with 10 lines following the same.
can anyone of you please let me know how to go about it ? (8 Replies)
Discussion started by: sukrish
8 Replies
4. UNIX for Dummies Questions & Answers
I searched and found "echo -n" and "printf" are solution for this, but they are not
here:
$ echo "hello" >> test
$ cat test
hello
$ echo -n "world" >> test
$ cat test
hello
world
$ echo -n " seriously?" >> test
$ cat test
hello
world seriously?
This is not successful... (15 Replies)
Discussion started by: stunn3r
15 Replies
5. Shell Programming and Scripting
I am having a text file which is having more than 200 lines.
EX:
001010122 12000 BIB 12000 11200 1200003
001010122 2000 AND 12000 11200 1200003
001010122 12000 KVB 12000 11200 1200003
In the above file i want to search for string KVB and add/replace... (1 Reply)
Discussion started by: suryanarayana
1 Replies
6. Shell Programming and Scripting
Dear All
I am having a text file which is having more than 200 lines.
EX:
001010122 12000 BIB 12000 11200 1200003
001010122 2000 AND 12000 11200 1200003
001010122 12000 KVB 12000 11200 1200003
In the above file i want to search for string KVB... (5 Replies)
Discussion started by: suryanarayana
5 Replies
7. Shell Programming and Scripting
Hi,
Need your help for this scripting issue I have. I am not really good at this, so seeking your help.
I have a file looking similar to this:
Hello, i am human and name=ABCD.
How are you?
Hello, i am human and name=PQRS.
I am good.
Hello, i am human and name=ABCD.
Good bye.
Hello, i... (12 Replies)
Discussion started by: royzlife
12 Replies
8. UNIX for Dummies Questions & Answers
Hi Everyone,
I have a requirement in ksh where i have a set of files in a directory. I need to search each and every file if a particular string is present in the file, delete that line and replace that line with another string expression in the same file.
I am very new to unix. Kindly help... (10 Replies)
Discussion started by: Pradhikshan
10 Replies
9. UNIX for Beginners Questions & Answers
I want to search a small string in a large string and find the locations of the string. For this I used grep "string" -ob <file name where the large string is stored>. Now this gives me the locations of that string. Now how do I store these locations in a text file.
Please use CODE tags as... (7 Replies)
Discussion started by: ANKIT ROY
7 Replies
10. UNIX for Beginners Questions & Answers
I have the below string which i need to compare with a file and replace this string in the file which matches closely. Can anyone help me on this.
string(Scenario 1)- user::r--,user::ourfrd:r--
String(Scenario 2)- user::r--
File
****
# file: /local/Desktop/myfile
# owner: me
# group:... (6 Replies)
Discussion started by: sarathy_a35
6 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)