Find Jobs
Hire Freelancers

Perl script for renaming files in a directory based on a list.

$30-250 USD

Completed
Posted over 11 years ago

$30-250 USD

Paid on delivery
I need a simple Perl script that can tackle the following problem. 1. I have a directory, SomeDirectory, with files in it. The files are names either by a person's name, "Smith,John.jpg" or by an ID number, "800031245.jpg". 2. I have a csv file with 3 columns: Last Name, First Name, and ID number. 3. I need the perl script to get the filename of each file and find out if it matches any row in the list, either by first and last name, or by ID number. If it finds a match, the file should be renamed "LastName, FirstName - ID.jpg". For example, if it finds a file named "Doe, Jane.jpg", and there is a Jane Doe on the list who has a user ID 800023452, it should rename the file to "Doe, Jane - 800023452.jpg". If it finds a file named "80002345.jpg", and there is a 80002345 user ID on the list for "John Doe", it should rename the file "Doe, John - 80002345.jpg" 4. When the script is done, all files that it finds a match to should be renamed to the "Lastname, Firstname - ID.jpg". First letter capitalized on first and last name, no matter what the original capitalization is. 5. One snag - there may be duplicates. If a duplicate is found, the script should ignore/delete the duplicate.
Project ID: 2428878

About the project

12 proposals
Remote project
Active 12 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
Awarded to:
User Avatar
I can successfully do this simple and straightforward script.
$40 USD in 1 day
4.9 (3 reviews)
2.6
2.6
12 freelancers are bidding on average $55 USD for this job
User Avatar
I can do this for you. See PM for details.
$30 USD in 0 day
5.0 (180 reviews)
6.2
6.2
User Avatar
I have 8 years of Perl experience and I'm data processing expert. Please check PM.
$55 USD in 1 day
4.9 (53 reviews)
5.9
5.9
User Avatar
Hi, I have checked example and I am confident to handle this project perfectly.
$75 USD in 2 days
4.9 (37 reviews)
5.6
5.6
User Avatar
Perl developer with closely related experience. Your brief is detailed so I will have no problems providing a robust script and a turnaround.
$100 USD in 2 days
5.0 (21 reviews)
5.4
5.4
User Avatar
i can write a perl script for you to rename the files.
$80 USD in 3 days
5.0 (21 reviews)
5.0
5.0
User Avatar
Hi I have worked on similar problems earlier. Used CPAN modules like Spreadsheet::WriteExcel. Rest renaming of file and other stuff can also be taken care about. Regards Ishita
$30 USD in 2 days
5.0 (2 reviews)
3.2
3.2
User Avatar
Hi, This is a 2 hr job. Please see PM
$45 USD in 1 day
4.9 (4 reviews)
2.2
2.2
User Avatar
Hi, i have done lots of file manipulations in perl,
$30 USD in 1 day
5.0 (1 review)
1.6
1.6
User Avatar
Greetings, I have made some file manipulation scripts before using Perl or Linux shell scripting, I have seen your example files and I'm confident I can complete your job with no problems. Please let me know if you're interested. Thanks
$50 USD in 3 days
0.0 (0 reviews)
0.0
0.0
User Avatar
I often need to do implement this kind of alog at my work place. I can easily do it. Please see PM.
$40 USD in 2 days
0.0 (0 reviews)
0.0
0.0
User Avatar
I have written some perl scripts based on text processing. I can do it for you.
$40 USD in 2 days
0.0 (0 reviews)
0.0
0.0

About the client

Flag of UNITED STATES
Notre Dame, United States
5.0
1
Payment method verified
Member since Aug 24, 2012

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.