Quote Originally Posted by brodbd View Post
I'd like to change the text at the persistent image creation prompt, because some of the users of my live CD find it confusing. (It gives sizes with a suffix, e.g. "400MB", but if you type the size with a suffix, image creation fails silently. I want to change the prompt to make it clear that you have to type in a pure number.)
Why don't you change it to accept both 400 ***AND*** 400MB ?

You can consider using sed to accomplish the job :-

Code:
               $ echo 400MB | sed "s/[^0-9]//g"
                400
Code:
                $ echo 400MB | sed "s/[0-9]//g"
                MB
By using sed, you can extract the number portion of the user input. If the user input something else other than 400MB and 400, you might want to prompt for error.