Find Jobs
Hire Freelancers

XML Processing: xmlstarlet expression to find entries in one file and copy it to another

$10-30 AUD

Fullført
Lagt ut over 5 år siden

$10-30 AUD

Betalt ved levering
I need a shell script to do some XML processing, using xmlstarlet. I have 2 xml files. I need to copy some elements from one file to the other. Both files are the same kind. I want to find the following in [login to view URL]: Under <glyf>, find this entire element: <TTGlyph name="{0}" [... other attributes] > [... content] </TTGlyph> Where {0} would be a list of strings to iterate a search for each string. And then copy and replace in [login to view URL] where the same element occurs. Then repeat the same operation under <gvar>: <glyphVariations glyph="{0}"> [… content] </glyphVariations>
Prosjekt-ID: 18119070

Om prosjektet

1 forslag
Eksternt prosjekt
Aktiv 5 år siden

Ønsker du å tjene penger?

Fordeler med budgivning på Freelancer

Angi budsjettet og tidsrammen
Få betalt for arbeidet ditt
Skisser forslaget ditt
Det er gratis å registrere seg og by på jobber
Tildelt til:
Brukeravatar
Hi. As I understand, you would like a bash shell script that will replace some of the TTGlyph and glyphVariations in [login to view URL] with the versions in [login to view URL] with the same name, and xmlstarlet (xml) is an acceptable command to use. To make this replacement, I can deliver a bash shell script using an xsl transform. The script would take three parameters: the [login to view URL], the [login to view URL], and (optionally) a string containing a subset of the glyph names separated by commas with no spaces. (If the glyph names are not specified, then all glyphs that are in both [login to view URL] and [login to view URL] will be replaced.) The output will write to "[login to view URL]" if the first parameter is "[login to view URL]". Have I understood correctly? Does this sound acceptable? Please let me know if you need changes.
$35 AUD om 1 dag
5,0 (15 omtaler)
4,8
4,8

Om klienten

AUSTRALIAs flagg
Waterways, Australia
5,0
1
Betalingsmetode bekreftet
Medlem siden nov. 8, 2018

Klientbekreftelse

Takk! Vi har sendt deg en lenke for at du skal kunne kreve din gratis kreditt.
Noe gikk galt. Vær så snill, prøv på nytt.
Registrerte brukere Publiserte jobber
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Forhåndsvisning innlasting
Tillatelse gitt for geolokalisering.
Påloggingsøkten din er utløpt og du har blitt logget ut. Logg på igjen.