Home Forums Programming Powershell Concat hard value to each row of Hash Table RE: Concat hard value to each row of Hash Table

  • Would something like this work or do you need the hashtable?

    $bound = '------=_12253dsfae4654'

    Foreach ($line In Get-Content SampleData.txt) {

    $test += "{0}{1}{2}`n" -F $bound, $line, $bound

    }

    $test