Find Jobs
Hire Freelancers

Script power shell to edit all filer from a folder

€8-30 EUR

Completed
Posted almost 2 years ago

€8-30 EUR

Paid on delivery
Hello, I need a powershell script that can edit and replace all .json files from a folder. Bellow, an example of a single .json file. The script must catch the value just after the first « trait_type » . So the value to catch in that example is « Bird ». Then that value need to be add in the name value witch is currently « #1 » It need do be add just before and with a blank space. So at the end the value of name become « Bird #1 » The original .json file. { "name": "#1", "description": "my description", "external_url": "", "animation_url": "[login to view URL]", "attributes": [ { "trait_type": "Specie", "value": "Bird" }, { "trait_type": "Frame", "value": "Green Frame" } ], "properties": { "files": [ { "uri": "[login to view URL]", "type": "video/mp4" } ], "creators": [] }, "compiler": "birdframe" } What should be the final .json file: { "name": "#1", "description": "my description", "external_url": "", "animation_url": "[login to view URL]", "attributes": [ { "trait_type": "Specie", "value": "Bird" }, { "trait_type": "Frame", "value": "Green Frame" } ], "properties": { "files": [ { "uri": "[login to view URL]", "type": "video/mp4" } ], "creators": [] }, "compiler": "birdframe" } Off course theses 2 value change in each .json file of my folder that why I need a script to catch the good value and add it etc..
Project ID: 34320511

About the project

1 proposal
Remote project
Active 2 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
€0 EUR in 1 day
5.0 (97 reviews)
5.2
5.2

About the client

Flag of FRANCE
Gradignan, France
5.0
2
Payment method verified
Member since Nov 10, 2018

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.