Powershell ,Read from a txt file and Format Data( remove lines, remove blank spaces in between)

Question:

I am really very new to powershell. I want to use powershell to read a txt file and change it to another format.

  1. Read from a txt file.
  2. Format Data( remove lines, remove blank spaces in between)
  3. Count of records ( “T 000000002” 9 chars)

and then write the output to a new file.

I just started powershell two days ago so I don’t know how to do this yet.

Answer:

Source:

Powershell ,Read from a txt file and Format Data( remove lines, remove blank spaces in between) by licensed under CC BY-SA | With most appropriate answer!

Leave a Reply