View previous topic :: View next topic |
Author |
Message |
Robert Site Admin
Joined: 25 May 2006 Posts: 1140
|
Posted: Wed Sep 26, 2007 1:59 pm Post subject: renaming yyy.asc, yyy.pgp, yyy.dat.asc to yyy.txt |
|
|
user question:
I need help with rename some files after I decrypt them. I understand I need two tasks to first decrypt the files and then second to rename them.
These are the names of the files I need to be renamed:
yyy.pgp
yyy.dat.asc
yyy.txt.asc
yyy.asc
I want these all to become text files so I want to take everything off after the first ( . ) and then put txt (For example remove.txt) Is this possible to do all in once task and how do I do it. |
|
Back to top |
|
|
Robert Site Admin
Joined: 25 May 2006 Posts: 1140
|
Posted: Wed Sep 26, 2007 2:01 pm Post subject: |
|
|
You can do this in the decrypt task itself.
For the filename field try:
REGEXF=\..*
for the rename field use:
.txt
the \. matches the first .
the next . matches any character
the * matches any number of occurances (of any character which is represented by the second .) |
|
Back to top |
|
|
|