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
Post a Comment