I need to edit a config file using shell script. i.e., Search with the 'key' string and edit the 'value'.
For eg: below is what I have in the config file "configfile.cfg".
Key1=OldValue1
Key2=OldValue2
I want to search for "Key1" and change "OldValue1" to "NewValue1"
Thanks for your... (7 Replies)
I'm writing a shell script. I want to put the variables in a separate config files and use those inside my script.
e.g. the config file (temp.conf)will have the values like
mapping=123
file_name=xyz.txt
I want to access these variables in temp.conf(i.e. mapping and file_name) from inside the... (7 Replies)
Hi there, am trying to parse an Apache 'server' config file. A snippet of the config file is shown below:
.....
ProxyPassReverse /foo http://foo.example.com/bar
.....
.....
RewriteRule ^/(.*) http://www.example.com/$1
RewriteRule /redirect https://www.example1.com/$1
........ (7 Replies)
Hi,
I have a config file that has blank, commented lines. I need to escape commented lines, blank lines, parse the remaining lines and store them in variables or array.
the config file contains the following lines.
# config file
# Define Oracle User
ORA_USER=abcde
ORA_PASS=xyzabc... (8 Replies)
I have a script with few pre defined variables.
Also have a config file. Something like this.
# config file
# Define Oracle User
MOD1_TAG=abcde
MOD2_TAG=xyzabc
MOD3_TAG=def
I need to parse the config file and have each of the value copied to different variables.
Please suggest what... (1 Reply)
Hi I am new to shell scripting. There is a requirement to write a shell script to meet follwing needs.Prompt reply shall be highly appreciated.
script that will compare two config files and produce 2 outputs - actual config file and a report indicating changes made.
OS :Susi linux ver 10.3.
... (4 Replies)
Hi, I have a script that interacts with a config file in the format:
file1.txt
file2.txt
file3.txt
file4.txt
file5.txt
file6.txt
I would like to return the Category, when given the file name. (11 Replies)
Dear Unix gurus,
We have a config shell script file which has 30 variables which needs to be passed to master unix shell script that invokes oracle database sessions. So those 30 variables need to go through the database sessions (They are inputs) via a shell script. one of the variable name... (1 Reply)
Dear Unix gurus,
We have a config shell script file which has 30 variables which needs to be passed to master unix shell script that invokes oracle database sessions. So those 30 variables need to go through the database sessions (They are inputs) via a shell script. one of the variable name... (1 Reply)
Discussion started by: dba1981
1 Replies
LEARN ABOUT SUSE
mconfig
Mono(mconfig) Mono(mconfig)
NAME
mconfig, - Utility for modifying .NET configuration files
SYNOPSIS
mconfig [options] command [command_parameters]
DESCRIPTION
mconfig can be used to edit .NET configuration files, by adding "features" (that is sets of xml statements) defined in one of the config
files read by mconfig. The config file can also define layouts of default configuration files, which may be useful for bootstrapping your
.NET projects.
To see the list of recognized commands, default configuration files and features, run mconfig without passing any parameters.
OPTIONS -c <config_file>, --config=<config_file>
Read the specified config file after reading the other, preconfigured, config files for the utility. Settings in the specified file
override those found in the other configuration locations.
-t {any | web | application}, --target={any | web | application}
Features and default configuration files defined in the mconfig config file(s) can be assigned to one of the three targets - web
(for ASP.NET features/config files), application - for .NET applications, any - applicable in both of the previous targets. Defaults
to any.
-?, -h, --help
Show a summary usage screen.
-v, --version
Show the mconfig version
COMMANDS
{addfeature, af} <feature_name> [config_file_path]
Adds the feature named <feature_name> to the specified config file. If [config_file_path] is omitted, the name of the output config-
uration file will be chosen based on the selected target (see the -t option). The web target outputs configuration to file named
Web.config, and the application target outputs to file named application.exe.config. The any target does not have a default output
file.
If the specified config file exists, the feature will be injected into it at the locations specified by mconfig configuration. If
the target config file does not exist, it will be created and will contain only the specified feature and all its dependencies.
{defaultconfig, dc} [config_name [target_directory]]
Generates a default config file using the configuration entry named [config_name] and outputs the resulting configuration file to
the directory given by the [target_directory] option. If [config_name] is omitted, it defaults to Web.config for the web target and
application target. The any target does not specify any default output configuration name. If the [target_directory] parameter is
omitted, it defaults to the current directory.
Name of the output config file created in [target_directory] is given in the config file layout definition.
FILES
Config files are read in the order given below. Each subsequent file may override settings found in the files read before it.
$prefix/etc/mono/mconfig/config.xml
The default configuration file, distributed with mconfig. $prefix is the mconfig installation prefix specified on the compilation
time.
$config_dir/mconfig/config.xml
$config_dir is the directory specified in the XDG_CONFIG_HOME environment variable or,
if it is empty, in the .config directory located in the user's home directory. This file is not distributed with Mono.
./mconfig.xml
Local configuration file which can contain per-application settings.
SEE ALSO
mconfig.config (5)
AUTHOR
Written by Marek Habersack
COPYRIGHT
Copyright (C) 2007 Novell, Inc (http://www.novell.com)
MAILING LISTS
Visit http://lists.ximian.com/mailman/listinfo/mono-devel-list for details.
WEB SITE
Visit: http://www.mono-project.com for details
Mono(mconfig)