hiteksoftware.com Forum Index hiteksoftware.com
User discussion forum
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

renaming yyy.asc, yyy.pgp, yyy.dat.asc to yyy.txt

 
Post new topic   Reply to topic    hiteksoftware.com Forum Index -> Variables and Regular Expressions
View previous topic :: View next topic  
Author Message
Robert
Site Admin


Joined: 25 May 2006
Posts: 1140

PostPosted: Wed Sep 26, 2007 1:59 pm    Post subject: renaming yyy.asc, yyy.pgp, yyy.dat.asc to yyy.txt Reply with quote

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
View user's profile Send private message
Robert
Site Admin


Joined: 25 May 2006
Posts: 1140

PostPosted: Wed Sep 26, 2007 2:01 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    hiteksoftware.com Forum Index -> Variables and Regular Expressions All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group