Advertisement
RulerOf

Create some tables

Mar 6th, 2017
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $filenames = Get-Content ~\Desktop\filenames.txt
  2. $template = Get-Content ~\Desktop\template.txt
  3.  
  4. ForEach ($name in $filenames) { $template -replace ("%%%", $name) | Out-File -Append ~\Desktop\output.txt }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement