I'm having a hard time to trying to auto-fill the
Read-Host input in PowerShell
I have a script that reads files, extracts lines and store them in a CSV file for fruther changes.
I'd like to be able to change each line on demand from the Powershell window without having to re-type the entire line.
- Read the file
- Find the next available line
- Make the line the
- User would then use the arrow keys to move the cursor and make changes to the line
- Press Enter to save the line to a new file
"_" in the below example of the desired state of
Read-Host is the cursor blinking ready to makechanges*
#> Line to change : server=servername.loc.corporation_