Come up with a useful post-processing script? Share it here!
Chillout
Newbie
Posts: 5 Joined: April 18th, 2013, 11:22 am
Post
by Chillout » April 18th, 2013, 4:22 pm
Heyho.
I need a Script for sabnzbd which changes the filetyp (only renames) from .nfo to .whatever, because i'm scraping all movie informations which will be saved in a .nfo-file.
All in all i'm not a coder, just a user and designer.
My first idea was something like this
But as already said, i don't know how exactly
Would be great if someone just posts an simple script.
Cheers,
Chillout
sander
Release Testers
Posts: 9061 Joined: January 22nd, 2008, 2:22 pm
Post
by sander » April 18th, 2013, 11:38 pm
How about:
Works for me:
Code: Select all
sander@toverdoos:~/kul$ touch adfaadsf.nfo
sander@toverdoos:~/kul$ touch adfff.nfo
sander@toverdoos:~/kul$ touch djdjdj.nfo
sander@toverdoos:~/kul$ ll *nfo
-rw-rw-r-- 1 sander sander 0 2013-04-19 06:36 adfaadsf.nfo
-rw-rw-r-- 1 sander sander 0 2013-04-19 06:36 adfff.nfo
-rw-rw-r-- 1 sander sander 0 2013-04-19 06:36 djdjdj.nfo
sander@toverdoos:~/kul$
sander@toverdoos:~/kul$ rename 's/\.nfo$/.whatever/' *
sander@toverdoos:~/kul$
sander@toverdoos:~/kul$ ll *whatever
-rw-rw-r-- 1 sander sander 0 2013-04-19 06:36 adfaadsf.whatever
-rw-rw-r-- 1 sander sander 0 2013-04-19 06:36 adfff.whatever
-rw-rw-r-- 1 sander sander 0 2013-04-19 06:36 djdjdj.whatever
sander@toverdoos:~/kul$
Assuming Linux / Unix / OSX