1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
# Dividir un fichero en varios ficheros (cada línea en un fichero distinto) # https://www.jesusninoc.com/2018/02/03/dividir-un-fichero-en-varios-ficheros-cada-linea-en-un-fichero-distinto/ mkdir ficherosdivididos gc ..\ficheromaestro.txt $numfichero=1 gc ..\ficheromaestro.txt | % { $_ | Out-File "fichero$numfichero" $numfichero+=1 } # Realizar el Hash a los ficheros Get-FileHash ..\ficheromaestro.txt ls | % { Get-FileHash $_ } |