Sponsored Content
Top Forums Shell Programming and Scripting Failed to substitute string with "<>" Post 79927 by nir_s on Tuesday 2nd of August 2005 06:33:38 AM
Old 08-02-2005
Hey vino!

Nice to meet you again here.

Your command with the "echo" works perfect,I agreed.

But I'm running the following:
Code:
platform:/tmp> sed -e 's/<schema_name>/IAS10G/g' application.properties
   application.filePath.core = /core-IAS10G/Html/
   application.filePath.xbip = /xbip-IAS10G/Html/
   translator.rootContext = /translator_<schame_name>/

As you can see ,the string wasn't substituted.

Thanks in advance,

Nir
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Failed to replace string with "sed"

Hi folks, I have the following configuration file: tofu:/tmp # cat bitbandConfig.properties maestroIp=10.10.10.10 maestroPort=2020 adminPlayPath=<Streaming Agent IP>:2021/streamingGateway/GetPlayList ###This part should not be changed### adminPlayVODProtocol=http username=iptv... (7 Replies)
Discussion started by: nir_s
7 Replies

2. Shell Programming and Scripting

How to substitute "\" by "\/" using SED?

Input: a/b/c Output required: a\/b\/c This does not work: sed s/'\/'/'\//'/g (6 Replies)
Discussion started by: indianjassi
6 Replies

3. Shell Programming and Scripting

input string="3MMTQSZ348GGMZRQWMJM4SD6M";output string="3MMTQ-SZ348-GGMZR-QWMJM-4SD6

input string="3MMTQSZ348GGMZRQWMJM4SD6M" output string="3MMTQ-SZ348-GGMZR-QWMJM-4SD6M" using linux shell script (4 Replies)
Discussion started by: pankajd
4 Replies

4. Shell Programming and Scripting

awk command to replace ";" with "|" and ""|" at diferent places in line of file

Hi, I have line in input file as below: 3G_CENTRAL;INDONESIA_(M)_TELKOMSEL;SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL My expected output for line in the file must be : "1-Radon1-cMOC_deg"|"LDIndex"|"3G_CENTRAL|INDONESIA_(M)_TELKOMSEL"|LAST|"SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL" Can someone... (7 Replies)
Discussion started by: shis100
7 Replies

5. Shell Programming and Scripting

Using sed to find text between a "string " and character ","

Hello everyone Sorry I have to add another sed question. I am searching a log file and need only the first 2 occurances of text which comes after (note the space) "string " and before a ",". I have tried sed -n 's/.*string \(*\),.*/\1/p' filewith some, but limited success. This gives out all... (10 Replies)
Discussion started by: haggismn
10 Replies

6. Shell Programming and Scripting

how to use "cut" or "awk" or "sed" to remove a string

logs: "/home/abc/public_html/index.php" "/home/abc/public_html/index.php" "/home/xyz/public_html/index.php" "/home/xyz/public_html/index.php" "/home/xyz/public_html/index.php" how to use "cut" or "awk" or "sed" to get the following result: abc abc xyz xyz xyz (8 Replies)
Discussion started by: timmywong
8 Replies

7. Shell Programming and Scripting

tcsh - understanding difference between "echo string" and "echo string > /dev/stdout"

I came across and unexpected behavior with redirections in tcsh. I know, csh is not best for redirections, but I'd like to understand what is happening here. I have following script (called out_to_streams.csh): #!/bin/tcsh -f echo Redirected to STDOUT > /dev/stdout echo Redirected to... (2 Replies)
Discussion started by: marcink
2 Replies

8. Shell Programming and Scripting

grep with "[" and "]" and "dot" within the search string

Hello. Following recommendations for one of my threads, this is working perfectly : #!/bin/bash CNT=$( grep -c -e "some text 1" -e "some text 2" -e "some text 3" "/tmp/log_file.txt" ) Now I need a grep success for some thing like : #!/bin/bash CNT=$( grep -c -e "some text_1... (4 Replies)
Discussion started by: jcdole
4 Replies

9. Shell Programming and Scripting

In Vi "sed" substitute word on a specific line

i need to substitute word on a specific line. I was able to do it on command line like below but it is not working in vi. command line like below: sed -e '8s/table_name/schema.table_name/' file_name. in vi table_name and schema are my positional parameters that i pass into the script. ... (5 Replies)
Discussion started by: pimmit22043
5 Replies

10. Shell Programming and Scripting

Delete all log files older than 10 day and whose first string of the first line is "MSH" or "<?xml"

Dear Ladies & Gents, I have a requirement to delete all the log files in /var/log/test directory that are older than 10 days and their first line begin with "MSH" or "<?xml" or "FHS". I've put together the following BASH script, but it's erroring out: for filename in $(find /var/log/test... (2 Replies)
Discussion started by: Hiroshi
2 Replies
DwtSeparator(3Dwt)														DwtSeparator(3Dwt)

Name
       DwtSeparator, DwtSeparatorCreate - Creates a separator widget for the application to define a border between items in a display.

Syntax
       Widget DwtSeparator(parent_widget, name, x, y, orientation)
	    Widget parent_widget;
	    char *name;
	    Position x, y;
	    unsigned char orientation;

       Widget DwtSeparatorCreate (parent_widget, name,
				  override_arglist, override_argcount)
	    Widget parent_widget;
	    char *name;
	    ArgList override_arglist;
	    int override_argcount;

Arguments
       parent_widget
		 Specifies the parent widget ID.

       name	 Specifies the name of the created widget.

       x	 Specifies  the  placement, in pixels, of the left side of the widget window relative to the inner upper left corner of the parent
		 window.  This argument sets the DwtNx core widget attribute.

       y	 Specifies, in pixels, the placement of the upper left corner of the widget window relative to the inner upper left corner of  the
		 parent window.  This argument sets the DwtNy core widget attribute.

       orientation
		 Specifies  whether  the  separator is displayed vertically or horizontally.  You can pass DwtOrientationHorizontal or DwtOrienta-
		 tionVertical.	This argument sets the DwtNorientation attribute associated with DwtSeparatorCreate.

		 A separator widget draws a centered single pixel line between the appropriate margins.  For example, a horizontal separator draws
		 a horizontal line from the left margin to the right margin.  It is placed vertically in the middle of the widget.

       override_arglist
		 Specifies the application override argument list.

       override_argcount
		 Specifies the number of attributes in the application override argument list (override_arglist).

Description
       The  DwtSeparator  and  DwtSeparatorCreate  functions create an instance of the separator widget and return its associated widget ID.  When
       calling DwtSeparator, you set the widget attributes presented in the formal parameter list.  For DwtSeparatorCreate, however, you specify a
       list of attribute name/value pairs that represent all the possible separator widget attributes.

       The  separator  widget is a screen object that allows the application to draw a separator between items in a display.  The separator widget
       draws horizontal or vertical lines in inactive areas of a window (typically menus).  Because a separator widget does not support  children,
       it always refuses geometry requests.  The separator widget does nothing on a resize by its parents.

Inherited Attributes
       ------------------------------------------------------------------
       Attribute Name	       Data Type	Default
       ------------------------------------------------------------------
       Core Attributes

       DwtNx		       Position 	Determined by the geome-
						try manager
       DwtNy		       Position 	Determined by the geome-
						try manager

       DwtNwidth	       Dimension	3 pixels
       DwtNheight	       Dimension	3 pixels
       DwtNborderWidth	       int		zero
       DwtNborder	       Pixel		Default foreground color
       DwtNborderPixmap        Pixmap		NULL
       DwtNbackground	       Pixel		Default background color
       DwtNbackgroundPixmap    Pixmap		NULL
       DwtNcolormap	       Colormap 	Default color map
       DwtNsensitive	       Boolean		True
       DwtNancestorSensitive   Boolean		The  bitwise  AND of the
						parent widget's DwtNsen-
						sitive	 and  DwtNances-
						torSensitive attributes
       DwtNaccelerators        XtTranslations	NULL
       DwtNdepth	       int		Depth of the parent win-
						dow
       DwtNtranslations        NOT SUPPORTED
       DwtNmappedWhenManaged   Boolean		True
       DwtNscreen	       Screen * 	The parent screen
       DwtNdestroyCallback     DwtCallbackPtr	NULL

       Common Attributes

       DwtNforeground	       Pixel		Default foreground color
       DwtNhighlight	       Pixel		Default foreground color
       DwtNhighlightPixmap     Pixmap		NULL
       DwtNuserData	       Opaque * 	NULL
       DwtNdirectionRToL       unsigned char	DwtDirectionRightDown
       DwtNfont 	       NOT SUPPORTED
       DwtNhelpCallback        NOT SUPPORTED

       Label Attributes

       DwtNlabelType	       unsigned char	DwtCString
       DwtNlabel	       DwtCompString	Widget name
       DwtNmarginWidth	       Dimension	Two pixels for text
						Zero pixels for pixmap
       DwtNmarginHeight        Dimension	Two pixels for text
						Zero pixels for pixmap
       DwtNalignment	       unsigned char	DwtAlignmentCenter
       DwtNpixmap	       Pixmap		NULL
       DwtNmarginLeft	       Dimension	Zero
       DwtNmarginRight	       Dimension	Zero
       DwtNmarginTop	       Dimension	Zero
       DwtNmarginBottom        Dimension	Zero
       DwtNconformToText       Boolean		True,  if  the widget is
						created with a width and
						height of zero
						False,	if the widget is
						created with a	non-zero
						width and height
       ------------------------------------------------------------------

Widget-Specific Attributes
       ------------------------------------------------------------
       Attribute Name	 Data Type	 Default
       ------------------------------------------------------------
       DwtNorientation	 unsigned char	 DwtOrientationHorizontal
       ------------------------------------------------------------

       DwtNorientation
		      Specifies whether the separator is displayed vertically or horizontally.	You can pass DwtOrientationHorizontal or DwtOrien-
		      tationVertical.  A separator widget draws a centered single pixel line between the appropriate margins.  For example, a hor-
		      izontal  separator  draws a horizontal line from the left margin to the right margin.  It is placed vertically in the middle
		      of the widget.

Return Values
       These functions return the ID of the created widget.

See Also
       Guide to the XUI Toolkit: C Language Binding
       Guide to the XUI Toolkit Intrinsics: C Language Binding

																DwtSeparator(3Dwt)
All times are GMT -4. The time now is 11:54 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy