You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The parenthesis causes the get-content command to finish before proceeding through the pipeline. Without the parenthesis, the file would be locked and we couldn't write back to it.
? is an abbreviation for "where-object". Essentially, an "if" statement
-ne is an operator that means "not equal to"
trim() is a method removes lines that contain spaces but nothing else which is what I needed in my case.