Powershell developer needed

Completed Posted 4 years ago Paid on delivery
Completed Paid on delivery

Powershell programmer wanted!

We need a tiny reprogramming of a PowerShell script.

Currently we read the following lines from a text file into the variable VmList:

LineA

LineB

LineC

LineD

These are handed over as follows:

$Lines = Get-Content $IniValue

Afterwards they are again in lines.

Now we want to remove the lines from the variable $Lines depending on the weekday.

For this purpose we changed the lines as follows:

LineA,1,1,1,1,1,1,1

LineB,1,0,1,1,1,1,1

LineC,1,1,1,1,1,1,1

LineD,1,0,1,1,0,1,1

The ,1,1,1,1,1,1,1 stands for one weekday each. So the first number 1 stands for Monday, the second for Tuesday.

In line A, Tuesday is therefore set to 1

So in line B the Tuesday is set to 0

So in line C the Tuesday is set to 1

So in line D the Tuesday is set to 0

So on Monday, Wednesday, Thursday, Saturday, Sunday the lines A,B,C,D in the variable $Lines should be kept.

Thus, for execution on Tuesday, lineB and lineD should be deleted from the variable $Lines.

Thus, for execution on Friday, only lineD is to be deleted from the variable $Lines.

After the rows have been cleaned up, the appended chains ,1,1,1,1,1,1,1,1 are to be deleted from all rows,

For this we need a little script.

Translated with [login to view URL] (free version)

Powershell Shell Script

Project ID: #23258426

About the project

6 proposals Remote project Active 4 years ago

Awarded to:

japais

Hi! I think I can help you with this project. I've been a Windows Sysadmin for +10 years and been using PowerShell since its beginnings. It seems to be a simple algorithm, I can have it working in a couple of days, inc More

$20 USD in 2 days
(1 Review)
0.8

6 freelancers are bidding on average $38 for this job

goodwork20k

i am good in powershell along with automation and development, please let me know if you are good to award this project to me

$50 USD in 2 days
(33 Reviews)
5.3
pilica

Hi, I have over five years experience in automating tasks with powershell, I can do this job. I read the requirements and it is clear for me what needs to be done. Please see my work history for relevant feedback.

$50 USD in 2 days
(21 Reviews)
4.7
AdrianCJ

The description seems pretty clear. I have an idea about transforming each line of text into an object and from there it would be much easier to handle. Powershell is something that I use on a daily basis so please hi More

$25 USD in 7 days
(5 Reviews)
2.3
finecodervw

Hi, I am well versed with PowerShell scripting and have written PowerShell scripts involving looping, arrays, variables, hashtables, regex etc. I will be happy to answer any queries that you may have. Looking forwar More

$55 USD in 3 days
(2 Reviews)
1.9
SreenivasuluR

Hi I carry around 3 years of experience in windows powershell Automation. At my regular job i usually get same requirements as you posted. I would Like to finish your work asap and in a best way with all necessary More

$30 USD in 2 days
(0 Reviews)
0.0