How to do the equivalent of Linux’ cut
on Windows using PowerShell?
This is how:
$filename = "sample.cfg"
Get-Content $filename | ForEach-Object {
$_.split(":")[1]
}
How to do the equivalent of Linux’ cut
on Windows using PowerShell?
This is how:
$filename = "sample.cfg"
Get-Content $filename | ForEach-Object {
$_.split(":")[1]
}