Re: Need script to loop fdisk



On 2012-05-16, NoHtmlMailsPlease wrote:
According to my logs, in Oct 2005 I used a method that was publicised on
these
groups, and it worked for me, and now I'm trying to remember how it worked.
It went something like this:-

A script which repeatedly calls `fdisk` while increasing the size of the
new-partition, and thus incrementally moving the partition "boundry" of
the new/next partition, and testing for
<yes that's where the previously lost boundry WAS>.

That sounds like something I wrote several years ago.

I can't find the script right now, but IIRC it looped with a new
call to fdisk (with changed parameters in a here document) in each
iteration.

I'll see if I can find it.


--
Chris F.A. Johnson, <http://cfajohnson.com>
Author:
Pro Bash Programming: Scripting the GNU/Linux Shell (2009, Apress)
Shell Scripting Recipes: A Problem-Solution Approach (2005, Apress)
.



Relevant Pages

  • Re: Which copy of the script is called?
    ... This leads to the time-wasting-trap of 'knowing' where ... the script is, working on it, only to find that your modifications ... Shell Scripting Recipes: A Problem-Solution Approach (2005, Apress) ...
    (comp.os.linux.misc)
  • Re: shell script problem
    ... On Tue, 24 May 2005 at 14:31 GMT, Sybren Stuvel wrote: ... >> I have to make a script that will find files in current dir that ... Shell Scripting Recipes: A Problem-Solution Approach, 2005, Apress ...
    (alt.os.linux)
  • Re: Problem with bash read
    ... instead, on the script, there's something unpredictable that sets key to ... Shell Scripting Recipes: A Problem-Solution Approach (2005, Apress) ...
    (comp.unix.shell)
  • Re: Simple way to script thumbnails
    ... but it will break your script if any ... *".$i" would not add them in temporal order. ... Shell Scripting Recipes: A Problem-Solution Approach (2005, Apress) ...
    (comp.os.linux.misc)
  • Re: printf question
    ... Each script begins ... list of the files needing to be backed up in a cold backup. ... other sessions? ... A Problem-Solution Approach (2005, Apress) ...
    (comp.unix.shell)