-
Senior Member
registered user

Originally Posted by
brodbd
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules

1969 EAI TR-20 Analog Computer Programming PACE Philbrick Electronic Associates
$36.00

Vintage George A Philbrick Researches Tube Analog Computer Module Serial 005503
$109.99

Refurbished Working 1960's Heathkit EC-1 Educational Electronic Analog Computer
$2999.99

Vintage Early Week 12 1984 Apple Macintosh 128K Computer M0001 w/Analog Board+
$209.99

Extron RGB-160XI Analog Computer Video 60-378-01
$127.06

Vintage Analog Computing Magazines For Atari Computer Owners No 11-20 Acceptable
$75.00

Vintage Goodyear Electronic GEDA Analog Computer Plug -- Extremely Rare
$179.00

Vintage 1970’s Analogic MP2110 10-Bit A/D Converter Computer Circuit Board
$24.99

vintage internal ISA Dial-Up Modem from the Accura 28.8 series. 5617us
$13.99

Packard Bell ISA Sound Card AD1845XP Analog Devices SoundPort DOS Win95 Untested
$25.46