Find Jobs
Hire Freelancers

Bash script to create symlink

$2-7 USD

Cancelled
Posted about 15 years ago

$2-7 USD

Paid on delivery
Need a script to automatically create/update a symlink to the most recent directory. I want to make a shell script which will create or update a symlink (named "current") so that it automatically points to the subdirectory with the most recent date. For example, given these subdirectories: 2009.03.21_00.50.02 2009.03.21_11.31.42 2009.03.22_07.55.47 2009.03.22_10.59.20 2009.04.03_23.21.38 2009.04.15_11.06.08 2009.04.16_00.50.02 2009.04.18_20.35.26 I want the script to create or update a symlink like this: current -> 2009.04.18_20.35.26/ the symlink will reside at the same level as the directories 2009.04.18_20.35.26, etc. When the bash script is run next, if there is a new directory named e.g., 2009.04.20_16.15.06, (and this is the most recent) the symlink should be updated to: current -> 2009.04.20_16.15.06/
Project ID: 3821371

About the project

1 proposal
Remote project
Active 15 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
1 freelancer is bidding on average $6 USD for this job
User Avatar
See private message.
$5.95 USD in 1 day
0.0 (0 reviews)
0.0
0.0

About the client

Flag of UNITED STATES
Austin, United States
5.0
12
Payment method verified
Member since Feb 4, 2009

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.