<html><head><base href="x-msg://34/"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">I typically use this 6-liner shell script to add an offset to my fld files.<div><br></div><div><div>for i in `ls $1.f*`</div><div>do</div><div> basename=`echo $i | awk 'BEGIN { FS = ".f" } ; { print $1 }'`</div><div> oldid=`echo $i | awk 'BEGIN { FS = ".f" } ; { print $2 }'`;</div><div> mv $i `expr $oldid + $2 | xargs printf "$basename.f%04d\n"`</div><div>done</div><div><br></div><div>If you save the script as 'mvfld' and your fld files are {foo0.f0001, ...} just run 'mvfld foo 50'</div><div>to add an offset of 50 to your fld files.</div><div><br></div><div>hth,</div><div>Stefan</div><div><br></div><div><br></div><div><div>On Aug 5, 2010, at 7:38 PM, <<a href="mailto:nek5000-users@lists.mcs.anl.gov">nek5000-users@lists.mcs.anl.gov</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div><div style="font-family: 'Times New Roman'; font-size: 12pt; color: rgb(0, 0, 0); ">Hello,<br><br>Is there a way to restart without having Nek save new blah.f files over existing ones, perhaps tell it the number to start with?<br><br>Say I have run a simulation and have 50 fld files. I would like to restart from 50, but the next fld ideally should read 51, not 1. This makes it difficult to get into visit I have found when doing restarts (unless there is alternative trick to get around this?)<br><br>Thanks for any help with this ,<br><br>Michael<br></div>_______________________________________________<br>Nek5000-users mailing list<br><a href="mailto:Nek5000-users@lists.mcs.anl.gov">Nek5000-users@lists.mcs.anl.gov</a><br><a href="https://lists.mcs.anl.gov/mailman/listinfo/nek5000-users">https://lists.mcs.anl.gov/mailman/listinfo/nek5000-users</a><br></div></blockquote></div><br></div></body></html>