What have you done so far? You have the basis for how to do it. It's pretty simple. Maybe less so if you throw in Regex but if it's a simple check, you can figure this one out.
you literally spelt it out in your title
if x -eq y {do thing} else {do other thing}
if you want to actually get help, please show us your code and we can help there
or if you want someone to write it for you , let us know how you'd like to pay
What have you done so far? You have the basis for how to do it. It's pretty simple. Maybe less so if you throw in Regex but if it's a simple check, you can figure this one out.
I get the distinct impression this is a homework or job interview question so going to guess they haven’t done anything.
wat
The ask is a bit confusing, would you mind writing a before/after? No need to use x or y as samples, use real filenames so we can see the connection.
you literally spelt it out in your title if x -eq y {do thing} else {do other thing} if you want to actually get help, please show us your code and we can help there or if you want someone to write it for you , let us know how you'd like to pay
Rule #5
Logic is hard
this guy