1 2 3 4 5 6 7 8 9 |
$fichero = gc .\libros.txt do { $procesar = $fichero[0] $procesar (gc .\libros.txt) | ? {$_.trim() -ne $procesar } | set-content .\libros.txt Start-Sleep -Seconds 5 $fichero = gc .\libros.txt }while($fichero.Length -gt 0) |