09-12-2006
Hi blowtorch,
Thanks for the input,
how can i prevent the dynamic linking of /sbin/sh ?
Thanks and regards,
amit
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
hai everybody,
i am new to scripting,i have to replace a value with another value ina script...both the values i have got in two seperate variables...can anyone give me the syntax how to do this in a shell script...
ie.
e1=$5,e2=$6
v2=$1,v3=$7
now i want to... (2 Replies)
Discussion started by: Babu
2 Replies
2. UNIX for Advanced & Expert Users
I need a shell which makes a search of an UNIX script and them modifies. :confused:
vi $(grep -l 5 $(find . -name 'vellon.bcf' -print)) (1 Reply)
Discussion started by: jvellon
1 Replies
3. Shell Programming and Scripting
Hello all,
I try to create a bash script but till now without any positiv results.
The script should replace different variables in a text file with the right xml values
Look at the following xml file:
file.xml
===================================
<?xml version="1.0"... (14 Replies)
Discussion started by: research3
14 Replies
4. Shell Programming and Scripting
I need a little help with a shell script. I want to be able to specify parameters so that the script searches multiple files (specified as parameters) and only modifies the file if it finds the string of text. For the files it doesn't find the string of text within, it should leave it alone.
... (4 Replies)
Discussion started by: joebaber
4 Replies
5. Shell Programming and Scripting
for example
the last command i run is:
tail -f 2010123114_mta2.wmwm.com_postfix-MDAD.log | grep XXXX
and i want to raplace '2010123114' with '2010123115', and i don't want to go back to the position and delete 4 and add 5
is there a way to replace a string? like
!!//123114/123115
or... (1 Reply)
Discussion started by: wljackhero
1 Replies
6. Shell Programming and Scripting
Hello ,
I am trying to replace a pattern in shell script , basically there is a file with the list of tables like
A.DAT
B.DAT
C.DAT ..
I will need to replace a prefix for the list
TESTA.DAT
TESTB.DAT
TESTC.DAT
Do I need to use <tr> or sed , I am not sure whether I need to... (4 Replies)
Discussion started by: Shanks
4 Replies
7. Shell Programming and Scripting
Friends,
I have more than 1000 lines in text file which needs to be converted as UPPERCASE by adding _
com.sun.url=www.sun.com
com.ssl.port=808
com.ui.path=/apps/ssi
Expected output
com.sun.url=_COM.SUN.URL_
com.ssl.port=_COM.SSL.PORT_
com.ui.path=_COM.UI.PATH_
Thanks in... (4 Replies)
Discussion started by: baluchen
4 Replies
8. Shell Programming and Scripting
I have a server.xml in about 50 instances of JBOSS servers which has
the following line
<Engine defaultHost="localhost" name="jboss.web">
I need to append something into this line based on the hostname . For example hostname
abcdprod40j.corp.abc.net
<Engine defaultHost="localhost"... (1 Reply)
Discussion started by: gubbu
1 Replies
9. Shell Programming and Scripting
Hi,
Probably this is a out of scope of the thread. I have a requirement as below
I have a file with below content
CMD //DS > testfile
I have to replace //DS with a value which is assigned to a variable outside using awk gsub.
For example var=TEST
I expect an output as
CMD TEST... (1 Reply)
Discussion started by: Ratheesh Nair
1 Replies
10. Shell Programming and Scripting
Hi,
I need to replace the space " " with underscore "_" using shell scripting. The data are inside the text file. Is there are any simple code to that.? (3 Replies)
Discussion started by: gopishrine
3 Replies
LEARN ABOUT SUNOS
parse_dynamic_clustertoc
parse_dynamic_clustertoc(1M) System Administration Commands parse_dynamic_clustertoc(1M)
NAME
parse_dynamic_clustertoc - parse clustertoc file based on dynamic entries
SYNOPSIS
cdrom/export/exec/sparc.Solaris_2.x/sbin/install.d/parse_dynamic_clustertoc
cdrom/export/exec/i386.Solaris_2.x/sbin/install.d/parse_dynamic_clustertoc
DESCRIPTION
This script parses the clustertoc file before the suninstall(1M) process is run. parse_dynamic_clustertoc is called by a modified syscon-
fig script on the install CD. When parse_dynamic_clustertoc runs, it reads the clustertoc and when it encounters SUNW_CSRMBRIFF lines, it
either checks the platform using the script's builtin function, or calls an external script. The script exits with a 0 if the cluster
entry is included, otherwise it will be ignored. If the cluster entry is to be included, the SUNW_CSRMBRIFF =(test test_arg)cluster line
is converted to SUNW_CSRMEMBER =cluster.
EXAMPLES
Example 1: Checking For an SX Framebuffer
The following is an example of a simple external test to check for an SX Framebuffer. The entry in the clustertoc file is shown and fol-
lowing that is the script that must be placed in the install.d/dynamic_test directory.
SUNW_CSRMBRIFF=(smcc.dctoc sx)SUNWCsx
#! /bin/sh
#
# Likewise, this file is expected to live under $(TESTDIR).
#
case "$1"
in
sx) prtconf -p | grep 'SUNW,sx' 1> /dev/null;;
esac
FILES
cdrom/Solaris_2.x/locale/C/.clustertoc.dynamic
Dynamic version of the clustertoc file
cdrom/export/exec/sparc.Solaris_2.x/sbin/install.d/dynamic_test
Directory that contains any additional tests
cdrom/export/exec/i386.Solaris_2.x/sbin/install.d/dynamic_test
Directory that contains any additional tests
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SHWPcdrom (Solaris CD) |
+-----------------------------+-----------------------------+
SEE ALSO
suninstall(1M), clustertoc(4), attributes(5)
SunOS 5.10 6 Sep 1995 parse_dynamic_clustertoc(1M)