System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

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
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!   
baong
Frequent Advisor

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

what i just did is
# ll -i * -->> ll -i MIGCDR_DB-Create*

# 9 -rw-r--r-- 1 root sys 5392 Aug 3 11:02 MIGCDR_DB-Create database.txt.XML

# find . -inum 9 -exec mv {} MIGCDR_DB-Create_database.txt \;

So everything working out really well. I want to thanks everyone to help me here..

Thanks All,