Add text to every line in text file using PowerShell -


i'd add characters end of every line of text in .txt document.

#define variables $a = c:\foobar.txt $b = get-content $a  #define functions function append-text       {       foreach-object           {           add "*"           }       }    #process code $b | append-text 

something that. essentially, load given text file, add "*" the end of every single line of text in text file, save , close.

soemthing should work:

function append-text {    process{    foreach-object {$_ + "*"}     }    } 

Comments

Popular posts from this blog

python - Scipy curvefit RuntimeError:Optimal parameters not found: Number of calls to function has reached maxfev = 1000 -

c# - How to add a new treeview at the selected node? -

java - netbeans "Please wait - classpath scanning in progress..." -