Hi,
I have a rdf zip file. This zip file consists of several *.rdf files.
I need to replace the date (this is different for each rdf) inside the node "Date_de_Publication_Periodique" of these rdf files.
e.g.,
I need to replace this date: 2013-10-30 with my desired date.
With the shell script, I want to unzip the file, take out the strings (from the rdfs) for the mentioned node containing the date and replace it with my desired date (fixed date) for all the rdf files and then zip it back.
Following are my failed attempts:
Thank you subbeh and chubler_xl and carlom.
I figured out the working solution:
I forgot to add another requirement that I need to pick only the node with
"Date_de_Publication_Periodique" and "XMLSchema#date" and then replace the date inside with the desired date
While
The sed command will return every line in file, with the desired one modified. If your want only that one line, make it sed -n '/.../p' file
But - didn't you want to zip back the files after modification?