$numero_linea = [Console]::In.ReadLine(); #Input $numero_linea-=1;$line = (Get-Content file.txt)[$numero_linea]echo $line
f5c04f4412b2b9d41954241f793438249
@echo off set/a n_line=%1-1if %n_line% LSS 0 (exit /b -1)if %n_line% EQU 0 (call:show) else (call:show " skip=%n_line%")exit /b 0 :showfor /f "tokens=*%~1" %%%% in (file.txt) do ( echo.%%~%% goto:eof)
C:\Users\Pablo\Desktop> script 2una pruebaC:\Users\Pablo\Desktop>
@echo offset /p "to_rename=File>> "call :rename "%to_rename%"exit :renamesetlocalset "file=%~1"set "file_new=%file:~10%"if exist "%file%" ( ren "%file%" "%file_new%" call :rename "%file%")endlocalgoto:eof
@echo offset "archivo=1234567890koh-radamanthys"echo.Original: %archivo%echo.Nuevo: %archivo:~10%>nul pauseexit