Sorry, I can't help much with that. It works in my system:
I can guess a miss of a ';' just before or after last '}', but it's a shot in the dark. Try it. Else you will have zaxxon's awk solution.
Regards,
Birei.
Hi All,
I have this(.xml) file as:
<!-- define your instance here -->
<instance name='ins_C2Londondev' user='' group='' fullname='B2%20-%20London%20(dev)' >
<property>
</property>
</instance>
I want output as:
<!-- define your instance here -->
<instance... (3 Replies)
Hi All,
I have a log file like this
E Mon Oct 06 00:17:08 2008 xxx2 cm:10614 fm_pi2_svc_iptv_purchase.c:149 1:pin_deferred_act:10601:11:169:1223245028:16
pi2_op_svc_iptv_purchase error
<location=PIN_ERRLOC_FM:5 class=PIN_ERRCLASS_SYSTEM_DETERMINATE:1... (10 Replies)
GNU sed version 4.1.4 on Windows XP SP3 from GnuWin32
I think that I've come across a seemingly simple text file change problem on a INI formatted file that I can't do with SED without side effects edge cases biting me. I've tried to think of various ways of doing this elegantly and quickly... (5 Replies)
Yes, there is a great doc out there that discusses parsing csv files with sed, and this topic has been covered before but not enough to answer my question (unix.com forums).
I'm trying to parse a CSV file that has optional quotes like the following:
"Apple","Apples, are fun",3.60,4.4,"I... (3 Replies)
I don't necessary have a problem, as I have a solution. It is just that there may be a better solution.
GOAL: Part one: Parse data from a file using the "\" as a delimiter and extracting only the last delimiter. Part two: Parse same file and extract everything but the last delimited item.
... (8 Replies)
I have a large xml file as shown below:
<input>
<blah>
<blah>
<atr="blah blah value = "">
<blah>
<blah>
</input>
..2nd chunk...
..3rd chunk...
...4th chunk...
All lines between <input> and </input> is one 'order' and this 'order' is repeated... (14 Replies)
Hello fellows,
Sure you can help this poor guy that is struggling against sed command, being unable to tame it
I have a lot of files like this:
From this one, I need to obtain values highlighted in bold/red
To do so, I am executing this piece of code inside a loop:
... (10 Replies)
Hello.
I am trying to modify a config file which is in windows *.ini type file.
I have found a piece of code here :linux - Edit file in unix using SED - Stack Overflow
As I can't make it doing the job , I am trying to find a solution step by step.
here a modified sample file : my_sample.ini... (1 Reply)
I have a text file with records of the form:
A X1 Y1 X2 Y2 X3 Y3
where A is character length 10, Xi is character length 4 and Yi is numeric length 10.
I want to parse the line, and output records like:
A X1 Y1
A X2 Y2
A X3 Y3
etc
Can anyone please give me an idea of how to do this. ... (4 Replies)
Discussion started by: wvdeijk
4 Replies
LEARN ABOUT CENTOS
odbcinst
odbcinst(1) unixODBC manual pages odbcinst(1)NAME
odbcinst - An unixODBC tool for manipulating configuration files
SYNOPSIS
odbcinst ACTION OBJECT OPTIONS
DESCRIPTION
odbcinst is a command line tool which has been created for allowing people who are developing the install scripts/RPMs for Drivers to be
able to easily create/remove entries in odbc.ini and odbcinst.ini. This command line tool is a complement to the shared library of the same
name (libodbcinst.so). This tool is a part of the odbcinst component of unixODBC.
OPTIONS
ACTIONS
-i Install (add section to config file) new OBJECT.
-u Uninstall (remove section from config file) existing OBJECT.
-q Query the config files and print the options for specified OBJECT.
-j Prints current configuration of unixODBC, listing (among others) the paths to the configuration files.
-c Calls SQLCreateDataSource
-m Calls SQLManageDataSources
--version
Prints program version and exits.
OBJECTS
-d The ACTION affect drivers (and thus the odbcinst.ini configuration file).
-s The ACTION affect data sources (and thus the user or system odbc.ini configuration file).
OPTIONS
-f FILE
The FILE is template file, describing the configuration of installed OBJECT (only valid for the -i ACTION).
-r Same as the -f OPTION, only take the standard input as the template file.
-n NAME
Specifies the NAME of the OBJECT.
-v Turn off verbose mode. This turns off all information, warning and error messages.
-l The specified data source is system-wide. Has any effect only with the -s OBJECT.
-h The specified data source is user-specific. Has any effect only with the -s OBJECT.
RETURN VALUES
This command returns zero on success and non-zero value on failure.
FILES
/etc/odbinst.ini
Configuration file containing all the database drivers specifications. See odbcinst.ini(5) for more details.
/etc/odbc.ini
System-wide data sources specifications. See odbc.ini(5) for more details.
$HOME/.odbc.ini
User-specific data sources specifications. See odbc.ini(5) for more details.
SEE ALSO odbcinst.ini(5), odbc.ini(5)AUTHORS
The authors of unixODBC are Peter Harvey <pharvey@codebydesign.com> and Nick Gorham <nick@easysoft.com>. For the full list of contributors
see the AUTHORS file.
COPYRIGHT
unixODBC is licensed under the GNU Lesser General Public License. For details about the license, see the COPYING file.
version 2.3.1 Wed 26 Jun 2013 odbcinst(1)