[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Vulcan based SSD Apple II/gs



On 06/08/2011 04:01 AM, mdj wrote:
On Jun 6, 11:27 pm, Steven Hirsch<snhir...@gmail.com>  wrote:

Another thought:  Since modern media is>>larger than typically needed for
8-bit computing environments, why not simply ignore the top 8 bits and accept
the loss of half the drive capacity?  The only downside I see is that it
prevents "sneaker net" portability between Mac and/or PC hosts and the Apple.
This too could be worked around with a custom utility of some sort, but would
be a hassle.

Not a big hassle on a Mac (or any other system with a Bourne
compatible shell):

while read -n 2 char ; do echo ${char:0:1} ; done<  old.img>  new.img

I do a fair amount of shell scripting, but was not aware of the substring operator ( ${var:x:y} ). Learn something new every day!