Sponsored Content
Full Discussion: Sed functionality
Top Forums Shell Programming and Scripting Sed functionality Post 100270 by collern2 on Saturday 25th of February 2006 05:17:34 PM
Old 02-25-2006
Sed functionality

I have a few xml files and I want to input say 5 parameters within each file. is it possible to do so with sed?



<parameter>A</parameter>

<parameter>B</parameter>

....
....

And so on.

These parameters are meant to go in just inside:
<?xml version="1.0" encoding="utf-8"?>
<config xmlns:xsi="http://www.w3.org/2000/10/XMLSchema-instance">

of each file? Any ideas?
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Date functionality

Hi, Could someone help me to get yesterday's date in MMDDYY format. echo `date '+%m%d%y'` is giving me today's date in the above format. Thanks in advance for your help.. Suresh. (1 Reply)
Discussion started by: svannala1
1 Replies

2. Shell Programming and Scripting

Restartibility Functionality....

Hello, I am trying to write a script that has a option of restarting the script from where it failed. I have to write a script called Batch.sh. This script has to run quite a few sql files as shown below: logcmd.sh -f test1.sql logcmd.sh -f test2.sql logcmd.sh -f test3.sql logcmd.sh -f... (4 Replies)
Discussion started by: rkumar28
4 Replies

3. UNIX for Dummies Questions & Answers

using functionality in another ksh

i have a function defined in one ksh i want to use the same functionality in another ksh i am using . ../<ksh name> but it is not picking that functionality what i have to do for the same (2 Replies)
Discussion started by: trichyselva
2 Replies

4. Shell Programming and Scripting

functionality diff. between SED versions

does anyone know of a matrix that would show the functionality differences between different versions of SED? like some versions you can't use '<anything>+' for one to many occurences of anything. I thank you in advance for you time and help. :) (2 Replies)
Discussion started by: danmauer
2 Replies

5. Shell Programming and Scripting

Vlookup functionality in Bash

Hi please help in the below request Input File 1: a,1 b,2 c,3 d,4 e,5 f,6 Input File 2: 2 5 3 1 Output Required: b 2 e 5 c 3 (3 Replies)
Discussion started by: ravin
3 Replies

6. Shell Programming and Scripting

Pipe Functionality

Hi, I am trying to emulate the '|' functionality through pipe function call. I am passing the o/p of exec in parent as input to the exec in child. The buf is readin the o/p but the exec in child is not working. Can somebody checkout the code and point where am i going wrong or missing something.... (3 Replies)
Discussion started by: amejoish
3 Replies

7. Shell Programming and Scripting

using arrays and also help with array.contains functionality

here is what i have... i=1 while read line do if grep -i-q "create procedure"<<<$line then startline="$line" endline="blahblah" Get procedure name into a variable named procName procName="procedure name is stored" do some... (2 Replies)
Discussion started by: vivek d r
2 Replies

8. UNIX for Dummies Questions & Answers

Command Functionality

Hi everyone, today i need that someone help to understand this particular line of command. So you can explain to me step by step, it will be great. ---------- Post updated at 11:53 AM ---------- Previous update was at 11:51 AM ---------- (9 Replies)
Discussion started by: Newer
9 Replies

9. Shell Programming and Scripting

Wait functionality in Solaris

hi all , If pid is not an active process ID, the wait utility will return immediately and the return code will be 0. i just came across this which means that wait will returm 0 even though the script has failed :( so can anyone tell me what is the exact way to get the return status from wait... (3 Replies)
Discussion started by: Rahul619
3 Replies

10. UNIX for Dummies Questions & Answers

Zip -r Functionality

Hi , I've written the following code to zip the big file $dir_temp ="/home/etc/hst zip -r $dir_temp/file_nm.zip $dir_temp/file_nm The zip file has been created . When I try to UNZIP the file with the following command unzip file_nm.zip The file got unzipped but created in the... (3 Replies)
Discussion started by: smile689
3 Replies
GYOTOY(1)							   User Manuals 							 GYOTOY(1)

NAME
Gyotoy - visualize one geodesic in Kerr metric SYNOPSIS
gyotoy [input.xml] DESCRIPTION
Gyoto is a framework for computing geodesics in curved space-times. The gyotoy utility program uses this framework to compute and display a single geodesic (the trajectory of a massive or mass-less particle) in Kerr metric. gyotoy takes as optional argument a scenery description in XML format (input.xml). This scenery must contain a Astrobj section of kind Star. Alternatively, a default scenery is loaded. The user can then interactively select initial parameters and redraw the geodesic as many time as needed. the Projection parameters allow rotating the view and various menu entries are rather self-explanatory. Entries in the File menu allow saving the display as an image file, saving the parameters as an XML description, or saving the geodesic's coordinates in an ASCII file. gyotoy is only a small utility to visualise a single geodesic. It can also be invoked from the yorick(1) prompt for building more complex graphics and for scripting. Have a look at the gyoto.i and gyotoy.i files in yorick's Y_SITE directory. A companion program, gyoto(1), can be used to compute an entire Gyoto scenery using relativistic ray-tracing. ENVIRONMENT
GYOTO_PLUGINS The "Star" object in Gyoto is part of the standard plug-in. If the GYOTO_PLUGINS environment variable is set, it must contain at least "stdplug" for gyotoy to run properly. AUTHOR
Thibaut Paumard <thibaut.paumard@obspm.fr> wrote this manual. SEE ALSO
gyoto(1), yorick(1) Science AUGUST 2011 GYOTOY(1)
All times are GMT -4. The time now is 10:56 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy