title: Powershell String Manipulation Examples tags: powershell string # Example: batch ffmpeg conversion ```ps ls *.wav | foreach { $a = $_.name; $b = $a.replace(".wav",".mp3"); ffmpeg -i $a -b:a 160k $b; } ```