03-06-2006
Help to change value from a file.
How can I change the value of "INI_TEST" from "YES" to "NO" in the setup.ini file by command?
[galaxy@test01 test]$ cat setup.ini
INI_START YES
INI_END YES
INI_TEST YES
Thank u in advance!
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi there,
I hope someone can help me with this problem :
I have a directory (/var/www/file/imgprofil) which contains about 10000 JPG files. They have a naming convention thus :
prefix-date-key-suffix.jpg
they all have the prefix p-20050608-
then AAAA is a 4 letter code
the suffix is... (7 Replies)
Discussion started by: steve7
7 Replies
2. UNIX for Dummies Questions & Answers
Hi
I am accessing a file on nfs mounted device, after completing using of the file, i am tring to restore the access time and modification times of the file.
So i got the previous modified time of the file using stat() function and trying to set the date and time for the file, To set these... (6 Replies)
Discussion started by: deepthi.s
6 Replies
3. Shell Programming and Scripting
Hello,
say suppose i am processing an file emp.dat the field of which are
deptno empno empname etc
now say suppose i want to change the file to emp.lst then how can i do it? Here i what i attempted but in vain
BEGIN{
system("sort emp.dat > emp.lst")
FILENAME="emp.lst"
}
{
print... (2 Replies)
Discussion started by: salman4u
2 Replies
4. Shell Programming and Scripting
Hi, I am creating a ksh script to search for a string of text inside files within a directory tree. Some of these file are going to be read/execute only. I know to use chmod to change the permissions of the file, but I want to preserve the original permissions after writing to the file. How can I... (3 Replies)
Discussion started by: right_coaster
3 Replies
5. Shell Programming and Scripting
Hi All,
Please help i have written an ksh script, where i am actually take count of lines in one file and want to update this count to 2nd field of a new file and apend the this into an existing file.
Note the below script is in for loop
-------- I am apending few records in a file... (7 Replies)
Discussion started by: iamnoone
7 Replies
6. Shell Programming and Scripting
HI
I have 100 files in below folder:-
/home/lkj/TEST
File name like below
undo_ARL01003_120907-155022.mos
undo_ARL01006_120908-155042.mos
i want replace one first line of each file to pt all
i want change file name as below.
ARL01003.mos
ARL01006.mos
Thanks (2 Replies)
Discussion started by: asavaliya
2 Replies
7. Shell Programming and Scripting
Hi,
I have a files in a directory as below :-
ls -1
mqdepth-S1STC02
proc-mq-S1STC01
proc-mq-S1STC02
proc-mq-S1STC03
Whereever i have S1STC i need to copy them into new file with file name S2STC.
expected output :-
ls -1
mqdepth-S2STC02
proc-mq-S2STC01
proc-mq-S2STC02... (3 Replies)
Discussion started by: satishmallidi
3 Replies
8. Shell Programming and Scripting
I have a bunch of file numbers in the file 'test':
I'm trying the above command to change all the instances of "H" to "Na+" in the file testsds.pdb at the line numbers indicated in the file 'test'. I've tried the following and various similar alternatives but nothing is working:
cat test |... (3 Replies)
Discussion started by: crunchgargoyle
3 Replies
9. Shell Programming and Scripting
Hi,
I have a file which has wrong time format and we want to correct it before we load it.
WRONG FORMAT : 93:0:00
CORRECT FORMAT :09:30:00
If you notice the 0 at the front is missing. Its the case always. (6 Replies)
Discussion started by: varun22486
6 Replies
10. UNIX for Beginners Questions & Answers
I have a log file, which i have divided into 14 files using csplit, the file looks like below
test-000000
test-000001 #and so on until 14
now I want all the 14 files generated to be renamed as the some part of test in first line of the file how can i eliminate the unwanted text?
sample... (5 Replies)
Discussion started by: Sekhar419
5 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)