Skip to main content

All Questions

0 votes
1 answer
722 views

How to delete a line based on a regex string in Powershell?

I want to validate if the line above a certain line is there, then ok. if else, then delete that line and remove the empty space ? Can this be done in powershell? please help If before all lines ...
coder234's user avatar
0 votes
1 answer
939 views

Move files to folder using matching filename

I have doc, docx and PDF files wherein the filenames consist of a unique 9 digit number followed by text. I want to move those files to their respective folders which also consist of at least the ...
James's user avatar
  • 1