<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
	<link rel="self" type="application/atom+xml" href="https://forum.eggheads.org/app.php/feed/topic/8176" />

	<title>egghelp/eggheads community</title>
	<subtitle>Discussion of eggdrop bots, shell accounts and tcl scripts.</subtitle>
	<link href="https://forum.eggheads.org/index.php" />
	<updated>2004-12-26T14:11:38-04:00</updated>

	<author><name><![CDATA[egghelp/eggheads community]]></name></author>
	<id>https://forum.eggheads.org/app.php/feed/topic/8176</id>

		<entry>
		<author><name><![CDATA[Ofloo]]></name></author>
		<updated>2004-12-26T14:11:38-04:00</updated>

		<published>2004-12-26T14:11:38-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=44533#p44533</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=44533#p44533"/>
		<title type="html"><![CDATA[auto rename file]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=44533#p44533"><![CDATA[
there is 2 ways to do this .. either its a private dir for only those files then you can use glob other wize you can make a list and use foreach..<br><div class="codebox"><p>Code: </p><pre><code>#setting the filename ur about to changeset filename "yourfile,file2,file3"#bind time &lt;flags&gt; &lt;mask&gt; &lt;proc&gt;bind time - "00 00 00 ?? *" file_rename#proc-name &lt;minute&gt; &lt;hour&gt; &lt;day&gt; &lt;month&gt; &lt;year&gt;proc file_rename {min hour day month year} {  global filename  foreach {x} [split $filename \x2C] {    file rename $x $x.[clock format [clock seconds] -format {%B}]; #tolower %B if u want short month name  }}</code></pre></div><div class="codebox"><p>Code: </p><pre><code>#setting the pathset path "/path/to/private/dir"#bind time &lt;flags&gt; &lt;mask&gt; &lt;proc&gt;bind time - "00 00 00 ?? *" file_rename#proc-name &lt;minute&gt; &lt;hour&gt; &lt;day&gt; &lt;month&gt; &lt;year&gt;proc file_rename {min hour day month year} {  global path  foreach {x} [glob -nocomplain -types f -directory $path *] {    file rename $x $x.[clock format [clock seconds] -format {%B}]; #tolower %B if u want short month name  }}</code></pre></div><br>first method will rename every file you provide in that list .. <br><br>second method will rename every file in that directory..<br><br>to move em to an other dir check out file rename as mentioned above by changing the target path..<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3151">Ofloo</a> — Sun Dec 26, 2004 2:11 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[demond]]></name></author>
		<updated>2004-12-24T13:05:18-04:00</updated>

		<published>2004-12-24T13:05:18-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=44472#p44472</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=44472#p44472"/>
		<title type="html"><![CDATA[auto rename file]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=44472#p44472"><![CDATA[
<blockquote class="uncited"><div>file rename ?-force? ?- -? source target<br><br>file rename ?-force? ?- -? source ?source ...? targetDir<br><br>        The first form takes the file or directory specified by pathname source and renames it to target, moving the file if the pathname target specifies a name in a different directory. If target is an existing directory, then the second form is used. The second form moves each source file or directory into the directory targetDir. Existing files will not be overwritten unless the -force option is specified. When operating inside a single filesystem, Tcl will rename symbolic links rather than the things that they point to. Trying to overwrite a non-empty directory, overwrite a directory with a file, or a file with a directory will all result in errors. Arguments are processed in the order specified, halting at the first error, if any. A - - marks the end of switches; the argument following the - - will be treated as a source even if it starts with a -. </div></blockquote><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5056">demond</a> — Fri Dec 24, 2004 1:05 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[TammeN]]></name></author>
		<updated>2004-12-24T12:40:59-04:00</updated>

		<published>2004-12-24T12:40:59-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=44471#p44471</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=44471#p44471"/>
		<title type="html"><![CDATA[auto rename file]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=44471#p44471"><![CDATA[
3 files!<br><br>to move to another directory is also OK!<br>the files are from a game, i don't want to reset them but rename or move to keep them for he site!<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5833">TammeN</a> — Fri Dec 24, 2004 12:40 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[demond]]></name></author>
		<updated>2004-12-24T11:39:22-04:00</updated>

		<published>2004-12-24T11:39:22-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=44468#p44468</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=44468#p44468"/>
		<title type="html"><![CDATA[auto rename file]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=44468#p44468"><![CDATA[
<blockquote class="uncited"><div>no, 1 rename command and it renames 3a4 files</div></blockquote>"3a4" files? 3 or 4 files?<br><br>the [file rename] command operates on multiple files only to move the whole pack to another directory<br><br>so, why wouldn't you want to use multiple rename commands, as many as needed?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5056">demond</a> — Fri Dec 24, 2004 11:39 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[TammeN]]></name></author>
		<updated>2004-12-24T04:36:26-04:00</updated>

		<published>2004-12-24T04:36:26-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=44466#p44466</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=44466#p44466"/>
		<title type="html"><![CDATA[auto rename file]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=44466#p44466"><![CDATA[
no, 1 rename command and it renames 3a4 files<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5833">TammeN</a> — Fri Dec 24, 2004 4:36 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[demond]]></name></author>
		<updated>2004-12-24T01:08:14-04:00</updated>

		<published>2004-12-24T01:08:14-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=44454#p44454</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=44454#p44454"/>
		<title type="html"><![CDATA[Re: How To rename more than one file at the same time]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=44454#p44454"><![CDATA[
<blockquote class="uncited"><div>Nice Script, but how to rename more than one file at the same time ?<br><br>Tnx</div></blockquote>by using the rename command more than once?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5056">demond</a> — Fri Dec 24, 2004 1:08 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[TammeN]]></name></author>
		<updated>2004-12-24T00:43:13-04:00</updated>

		<published>2004-12-24T00:43:13-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=44451#p44451</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=44451#p44451"/>
		<title type="html"><![CDATA[How To rename more than one file at the same time]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=44451#p44451"><![CDATA[
Nice Script, but how to rename more than one file at the same time ?<br><br>Tnx<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5833">TammeN</a> — Fri Dec 24, 2004 12:43 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Ofloo]]></name></author>
		<updated>2004-08-25T19:10:44-04:00</updated>

		<published>2004-08-25T19:10:44-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=40180#p40180</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=40180#p40180"/>
		<title type="html"><![CDATA[auto rename file]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=40180#p40180"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>#setting the filename ur about to changeset filename "yourfile"#bind time &lt;flags&gt; &lt;mask&gt; &lt;proc&gt;bind time - "00 00 00 ?? *" file_rename#proc-name &lt;minute&gt; &lt;hour&gt; &lt;day&gt; &lt;month&gt; &lt;year&gt;proc file_rename {min hour day month year} {  global filename  file rename $filename $filename.[clock format [clock seconds] -format {%B}]; #tolower %B if u want short month name}</code></pre></div>not tested reply if errors occure and include the errormsg<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3151">Ofloo</a> — Wed Aug 25, 2004 7:10 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ribbon]]></name></author>
		<updated>2004-08-25T16:18:37-04:00</updated>

		<published>2004-08-25T16:18:37-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=40174#p40174</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=40174#p40174"/>
		<title type="html"><![CDATA[auto rename file]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=40174#p40174"><![CDATA[
can i let rename the eggdrop a file name at the begin of a new mounth ?<br><div class="codebox"><p>Code: </p><pre><code>#qoutefileset qoutefile "/home/ribbon/quote/qoute.txt" #bindsbind time - "00 00 01 * *" qoute_ren</code></pre></div>now i have to save each time at the begin of the mounth the old file like<br>quote.jan, qoute.feb, ...<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5133">ribbon</a> — Wed Aug 25, 2004 4:18 pm</p><hr />
]]></content>
	</entry>
	</feed>
