Total Powershell noobはここにあります。助けてください!Powershell CSVファイルに列を追加したり、行を削除したり、テキストを塗りつぶしたりします
私はこのようになりますCSVファイルがあります:私はそれがこのように見えるようにするPowerShellの方法を持っている必要があります
Office,First Name,Last Name,email
Pancacke Group,Lidia,Gheno,[email protected]
Miller Tracy Carmel Valley,Paulina,Mastros,[email protected]
を:
ニーズをまとめる,,,Pancacke Group,Test,Lidia,Gheno,[email protected]
,,,Miller Tracy Carmel Valley,Test,Paulina,Mastros,[email protected]
:
-
を
- 最初の列の前に3列を追加すると、Office
- アノトえー単語
Test
- でOfficeと姓の間に列を記入
- Officeと姓の間の列は、ヘッダーと最初の行をあなたの助けを事前に
感謝を削除します!
'(GC in.csv)-replace '^、(*。?)'、 ',,, $ 1、テスト、' |選択 - スキップ1 | sc out.csv' – TessellatingHeckler