Page 2 of 2
Posted: 07 Sep 2006 08:27
by admin
guster wrote:"... say we have a bunch of files:
File10.txt, File11.txt, File12.txt, File13.txt, File14.txt "
The following is based on zacky's examples:
you do: File(<[0-9]+)\.txt>Files$1<+>.txt
you get: File11.txt, File12.txt, File13.txt, File14.txt, File15.txt
I have t1 through t16 in a bunch of directories. For some directories I need to ratchet t#-end forward or backward. Other trials in the series, and the rest of the directory (some other series' and individual files) should remain as is. This will require regexp, right?
Yes, unless they are in a tight row (no holes): then you would simply start with a new offset e.g. File<#11>.txt
Posted: 07 Sep 2006 21:29
by jacky
admin wrote:So, jacky, what do you think of your regexp counters now? Are you still missing it a lot?

hehe... well my regexp counters were a bit more powerfull, as in they could use a number on the files and do maths operations on them
But honestly, no I don't miss them (that much) anymore.

Posted: 12 Sep 2006 06:03
by guster
admin wrote:guster wrote:"... say we have a bunch of files:
File10.txt, File11.txt, File12.txt, File13.txt, File14.txt "
The following is based on zacky's examples:
you do: File(<[0-9]+)\.txt>Files$1<+>.txt
you get: File11.txt, File12.txt, File13.txt, File14.txt, File15.txt
I have t1 through t16 in a bunch of directories. For some directories I need to ratchet t#-end forward or backward. Other trials in the series, and the rest of the directory (some other series' and individual files) should remain as is. This will require regexp, right?
Yes, unless they are in a tight row (no holes): then you would simply start with a new offset e.g. File<#11>.txt
I renamed t3 to tp3 manually. Then, in batch rename, I tried:
t<#4-#17>.asc = t3.asc
with t4.asc through t17.asc highlighted. The output form: t00004.asc = t3.asc
Will you please show me the syntax to get t3.asc --- t16.asc. Thank you.
moving to tips & tricks; sorry
Posted: 12 Sep 2006 06:22
by guster
I appologize. I reposted to tips and tricks because my technical question is more appropriate there. Thanks for your understanding and for considering my technical syntax query.
Posted: 12 Sep 2006 08:33
by admin
guster wrote:admin wrote:guster wrote:"... say we have a bunch of files:
File10.txt, File11.txt, File12.txt, File13.txt, File14.txt "
The following is based on zacky's examples:
you do: File(<[0-9]+)\.txt>Files$1<+>.txt
you get: File11.txt, File12.txt, File13.txt, File14.txt, File15.txt
I have t1 through t16 in a bunch of directories. For some directories I need to ratchet t#-end forward or backward. Other trials in the series, and the rest of the directory (some other series' and individual files) should remain as is. This will require regexp, right?
Yes, unless they are in a tight row (no holes): then you would simply start with a new offset e.g. File<#11>.txt
I renamed t3 to tp3 manually. Then, in batch rename, I tried:
t<#4-#17>.asc = t3.asc
with t4.asc through t17.asc highlighted. The output form: t00004.asc = t3.asc
Will you please show me the syntax to get t3.asc --- t16.asc. Thank you.
Answer:
http://www.xyplorer.com/xyfc/viewtopic.php?p=7561#7561