Trying to upload the program from anAtmega328p

All good thanks found it with this

# avrdude -p m328p -c usbtiny -U flash:r:"/flash.hex":r 

avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.01s

avrdude: Device signature = 0x1e950f
avrdude: reading flash memory:

Reading | ################################################## | 100% 62.34s

avrdude: 1 retries during read


avrdude: writing output file "/flash.hex"

avrdude: safemode: Fuses OK

avrdude done.  Thank you.

#

The file saved is a binary file and not a hex file so now I need to convert it or get it in the hex format.
How do I do that ? OK realised that the last "r" stood for raw and changed that to "i" for Intel Hex
avrdude -p m328p -c usbtiny -U flash:r:"/flash.hex":i