we don't have GNU utility installed and we cannot install the same in our live environment
and we are using KSH (SunOS 5.10 Generic_147440-07 sun4v sparc sun4v)
this is starting my config file
---------------------------------------------------
---------------------------------------------
after execution it shd be as below config.txt
--------------------------------------
--------------------------------------
the above is how are expecting
Last edited by Franklin52; 03-04-2014 at 06:44 AM..
Reason: Please use code tags for data and code samples
How do i use a config.txt to recursively pass a set of variables to a shell script
eg my config.txt looks like this :
path=c://dataset/set1
v1= a.bin
v2= b.bin
path=c://dataset/set2
v1= xy.bin
v2= abc.bin
..................
and so on .
and my testscript : (2 Replies)
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)
Hi,
I have a file with 6 columns. First 3 columns together make unique record. I have a variable ($v) which hold a value that is obtained by a caliculaion. I have to replace value in 5th columnn with the value of the variable ($v). The value $v is caliculated from col4 and col6 values.
... (2 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 To All Genius out there,
We are running autosys application on solaris 10. In autosys we have a configuration file that contains an Autosys instance configuration data and is located on a NFS filer on which we have a read-only access.
Our Autosys environment is on a dual server... (0 Replies)
Hi To All Genius out there,
We are running autosys application on solaris 10. In autosys we have a configuration file that contains an Autosys instance configuration data and is located on a NFS filer on which we have a read-only access.
Our Autosys environment is on a dual server mode(Active... (0 Replies)
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 all,
Say I have a shell script called update_password.sh - in this script I want to perform a task to update a specified entry of another file (e.g. users.passpords)
update_password.sh
#!/bin/bash -e
PW_FILE_DIR="${A_DIR}/.../..."
PW_FILE="users.passwords"
I want to update the... (2 Replies)
Hi All,
I am newbie here and request your assistance.
I have a service running on public ip, but since I have a dynamic IP it keeps on changing and every time I need to manually get the new ip and add to the config file and restart the service. This has become bit time consuming.
Hence, I... (4 Replies)
I want to make a config file which contain all the paths.
i want to read the config file line by line and pass as an argument on my below function.
Replace all the path with reading config path line by line and pass in respective functions.
how can i achieve that?
Kindly guide.
... (6 Replies)
Discussion started by: sadique.manzar
6 Replies
LEARN ABOUT DEBIAN
make-jpkg
MAKE-JPKG(1) General Commands Manual MAKE-JPKG(1)NAME
make-jpkg - builds Debian packages from Java binary distributions
SYNOPSIS
make-jpkg [OPTION]... [FILE]
DESCRIPTION
make-jpkg builds a Debian package from the given Java distribution FILE.
Supported java binary distributions currently include:
* Oracle (http://www.oracle.com/technetwork/java/javase/downloads) :
- The J2SE Development Kit (JDK), version 6 (update >= 10), 7
- The J2SE Runtime Environment (JRE), version 6 (update >= 10), 7
- The J2SE API Javadoc, version 6 (update >= 10), 7
(Choose tar.gz archives or self-extracting archives, do _not_ choose the RPM!)
The following options are recognized:
--full-name NAME
full name used in the maintainer field of the package
--email EMAIL
email address used in the maintainer field of the package
--changes
create a .changes file
--revision
add debian revision
--help display help text and exit
--version
output version information and exit
Download a supported Java RE or SDK or API tar.gz or self-extracting archive from http://www.oracle.com/technetwork/java/javase/downloads
and execute make-jpkg file with the downloaded file. The program asks the user for additional information and builds a Debian binary pack-
age in the current directory.
The program requires about 200 MB free disk space in a temporary directory. The temporary directory defaults to /tmp but you can specify an
alternate directory by setting the environment variable TMPDIR.
EXAMPLE
To install Oracle(TM) 7 Standard Edition JDK, download a release - 64 bits version of update 2 from http://www.oracle.com/technet-
work/java/javase/downloads/jdk-7u2-download-1377129.html in this example - and invoke make-jpkg:
make-jpkg <path_to_download_directory>/jdk-7u2-linux-x64.tar.gz
This generate a Debian package in the current directory, that can be installed using dpkg:
dpkg -i oracle-j2sdk1.7_1.7.0+update2_amd64.deb
When you're done, you can delete initial download as well as generated package:
rm <path_to_download_directory>/jdk-7u2-linux-x64.tar.gz oracle-j2sdk1.7_1.7.0+update2_amd64.deb
ENVIRONMENT
TMPDIR base directory used for temporary files (defaults to /tmp)
J2SE_PACKAGE_FULL_NAME
full name used in the maintainer field of the package; if none is supplied then the default of "Debian Java Maintainers" is used.
J2SE_PACKAGE_EMAIL
email address used in the maintainer field of the package; if none is supplied the default of "pkg-java-maintain-
ers@lists.alioth.debian.org" is used.
SEE ALSO update-java-alternatives(1)AUTHOR
This manual page was written by Hubert Schmid <j2se-package@z42.de>.
It is now maintained by the Debian Java Maintainers <pkg-java-maintainers@lists.alioth.debian.org>.
January 22, 2012 MAKE-JPKG(1)