Operating System - HP-UX
1752808 Members
5822 Online
108789 Solutions
New Discussion юеВ

Re: how to convert from file extension XML to DMP file extension

 
baong
Frequent Advisor

how to convert from file extension XML to DMP file extension

Hello All,
I have a question to see if anyone can help me out here. I got external seagate drive, which contain xml file extension which i plug into window xp. I want convert to dmp file extension before i can move my dump file to HP machine. example: data1.dmp.xml
Anyone help from you guys i would appreciate.
Thanks All
10 REPLIES 10
James R. Ferguson
Acclaimed Contributor

Re: how to convert from file extension XML to DMP file extension

Hi:

You could move the file to your HP server then rename it there:

# FILE=data1.dmp.xml
# mv ${NAME} ${NAME%%.xml}

...this drops the ending '.xml' suffix.

Regards!

...JRF...
baong
Frequent Advisor

Re: how to convert from file extension XML to DMP file extension

Thanks James, i will do that
baong
Frequent Advisor

Re: how to convert from file extension XML to DMP file extension

James,
i got an error message # FILE= MIGCDR_DB.dmp.XML
FILE=: Command not found.

James R. Ferguson
Acclaimed Contributor

Re: how to convert from file extension XML to DMP file extension

Hi (again):

> i got an error message # FILE= MIGCDR_DB.dmp.XML

No whitespace is allowed after or before the assignment operator ('=').

Beyond that, I meant to write (consistently):

# FILE=data1.dmp.xml
# mv ${FILE} ${FILE%%.xml}

I erroneously named the variable holding the filename "NAME" but then manipulated another variable named "FILE".

Regards!

...JRF...
baong
Frequent Advisor

Re: how to convert from file extension XML to DMP file extension

James,
what am i type wrong here
# FILE=MIGCDR_DB.dmp.XML
# mv ${MIGCDR_DB.dmp.XML} ${MIGCDR_DB.dmp%%.XML}
sh: ${MIGCDR_DB.dmp.XML}: The specified substitution is not valid for this comma
nd.
Torsten.
Acclaimed Contributor

Re: how to convert from file extension XML to DMP file extension

Try exactly what JRF suggests. You need to use the FILE variable.

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Patrick Wallek
Honored Contributor

Re: how to convert from file extension XML to DMP file extension

You actually do need to do this:

mv ${FILE} ${FILE%%.xml}

baong
Frequent Advisor

Re: how to convert from file extension XML to DMP file extension

OK Thanks All, my bad...i will try again..

oh what about the file has space between like:

sps-Com_db Createdata.dmp.xml
How do I handle this file ....
Torsten.
Acclaimed Contributor

Re: how to convert from file extension XML to DMP file extension

Try with quotes:
"sps-Com_db Createdata.dmp.xml"

But why not renaming in windows, then transfer?

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!