09-25-2007
No Problem, I figured it out.
Thanks a lot for your help.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello,
I am hoping someone can provide some guidance on using context based search and replace to search for a pattern and then do a search and replace in the line that follows it. For example, I have a file that looks like this:
<bold>bold text
</italic>
somecontent
morecontent... (3 Replies)
Discussion started by: charissaf67
3 Replies
2. Shell Programming and Scripting
Hi All,
I have a file that I need to be able to find a pattern match on a line, search that line for a text pattern, and replace that text.
An example of 4 lines in my file is:
1. MatchText_randomNumberOfText moreData ReplaceMe moreData
2. MatchText_randomNumberOfText moreData moreData... (4 Replies)
Discussion started by: Crypto
4 Replies
3. Shell Programming and Scripting
hai
i am very new to unix.
i am having two files like this.
first.properties
cache.ZA.TL_CCY=SELECT trim(CCY_CODE)||trim(COUNTRY_CODE)||trim(CITY_CODE) AS... (4 Replies)
Discussion started by: kkraja
4 Replies
4. Shell Programming and Scripting
Hi All,
I have a requirement where I have to find a pattern in a file and comment the whole line containing the search pattern. Any ideas in shell is welcome.
Thanks in advance,
Regards,
Arun (3 Replies)
Discussion started by: arun_maffy
3 Replies
5. UNIX for Advanced & Expert Users
Hi,
I need help. I have XML file as below
<a n="infoLevel">
<v s="true"/>
</a>
<a n="localAddr">
<v s="server.host.com"/>
</a>
<a n="ListenPort">
<v s="21111"/>
</a>
I need to find variable "ListenPort" in line and then replace... (4 Replies)
Discussion started by: rdtrivedi
4 Replies
6. Shell Programming and Scripting
There appears to be several threads that touch on what I'm trying to do, but nothing quite generic enough.
What I need to do is search through many (poorly coded) HTML files and make changes. The catch is that my search string may be on one line or may be on several lines.
For example there... (5 Replies)
Discussion started by: bisbell
5 Replies
7. Shell Programming and Scripting
Dear All,
i want to search particular string and want to replance next line value.
following is the test file.
search string is
tmp,???
,10:1 "???" may contain any 3 character it should remain the same and next line replace with ,10:50
tmp,123 --- if match tmp,??? then... (3 Replies)
Discussion started by: arvindng
3 Replies
8. UNIX for Advanced & Expert Users
Hi All,
i can replace a perticular value in sentence using perl.
perl -pi -e 's/old/new/' sample.txt
but i am not able to replace whole string by perl.
file1 contains "jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=10.147.109.211)(PORT=1526))(CONNECT_DATA=(SID= MWDBD22)))". i... (3 Replies)
Discussion started by: arindam guha
3 Replies
9. Shell Programming and Scripting
I have a file which requires modification via a shell script.
Need to do the following: 0. take input from user for new text. 1. search for a keyword in the file. 2. replace the line next to this to this keyword with user supplied input.
for e.g., my file has the following text:
(some... (7 Replies)
Discussion started by: chingupt
7 Replies
10. Shell Programming and Scripting
All, I appreciate any help you can offer here as this is well beyond my grasp of awk/sed...
I have an input file similar to:
&LOG
&LOG Part: "@DB/TC10000021855/--F"
&LOG
&LOG
&LOG Part: "@DB/TC10000021852/--F"
&LOG Cloning_Action: RETAIN
&LOG Part: "@DB/TCCP000010713/--A"
&LOG
&LOG... (5 Replies)
Discussion started by: KarmaPoliceT2
5 Replies
LEARN ABOUT DEBIAN
hobbitcgi.cfg
HOBBITCGI.CFG(5) File Formats Manual HOBBITCGI.CFG(5)
NAME
hobbitcgi.cfg - Command-line parameters for the Xymon CGI tools
SYNOPSIS
$BBHOME/etc/hobbitcgi.cfg
DESCRIPTION
hobbitcgi.cfg(1) controls the commandline options passed to all of the Xymon CGI tools through their respective shell-script wrappers. Typ-
ically the options listed here are used for system-wide configuration of the CGI utilities, e.g. to define where they read configuration
files.
The exact set of commandline options available are described in the man-page for each of the CGI utilities.
The file is "sourced" into the shell script wrapper, so assignments to the CGI-specific variables must follow standard shell-script syntax.
SETTINGS
CGI_ACKINFO_OPTS
Options for the hobbit-ackinfo.cgi(1) utility.
CGI_ACK_OPTS
Options for the bb-ack.cgi(1) utility.
CGI_CSVINFO_OPTS
Options for the bb-csvinfo.cgi(1) utility.
CGI_DATEPAGE_OPTS
Options for the bb-datepage.cgi(1) utility.
CGI_ENADIS_OPTS
Options for the hobbit-enadis.cgi(8) utility.
CGI_EVENTLOG_OPTS
Options for the bb-eventlog.cgi(1) utility.
CGI_FINDHOST_OPTS
Options for the bb-findhost.cgi(1) utility.
CGI_HIST_OPTS
Options for the bb-hist.cgi(1) utility.
CGI_HOBBITCOLUMN_OPTS
Xymon-specific options for column documentation. This uses the bb-csvinfo.cgi(1) utility with the server/etc/columndoc.cfg configu-
ration file.
CGI_HOBBITCONFREPORT_OPTS
Options for the hobbit-confreport.cgi(1) utility.
CGI_HOBBITGRAPH_OPTS
Options for the hobbitgraph.cgi(1) utility.
CGI_HOSTGRAPHS_OPTS
Options for the hobbit-hostgraphs.cgi(1) utility.
CGI_NKEDIT_OPTS
Options for the hobbit-nkedit.cgi(1) utility.
CGI_NKVIEW_OPTS
Options for the hobbit-nkview.cgi(1) utility.
CGI_REPLOG_OPTS
Options for the bb-replog.cgi(1) utility.
CGI_REP_OPTS
Options for the bb-rep.cgi(1) utility.
CGI_SNAPSHOT_OPTS
Options for the bb-snapshot.cgi(1) utility.
CGI_SVCHIST_OPTS
Options for the hobbitsvc.cgi(1) utility when used to view historical logs. Note that the "--historical" option must be included in
this setting.
CGI_SVC_OPTS
Options for the hobbitsvc.cgi(1) utility.
SEE ALSO
xymon(7), the individual CGI utility man-pages.
Xymon Version 4.2.3: 4 Feb 2009 HOBBITCGI.CFG(5)