터미널 호출기에 관하여

터미널 호출기에 관하여
more < doc.txt 

doc.txt위 명령은 화면을 가득 채울 때까지 파일 내용을 표시한다는 것을 이해합니다 . 그런 다음 화살표 키를 사용하여 한 번에 한 줄씩 아래로 이동하거나 페이지별로 계속 이동할 수 있습니다. 파일 내용을 한 번에 한 줄씩 표시하는 방법을 찾고 있습니다.

이런 것이 존재합니까?

답변1

Cmd에 대해 답변하겠습니다.

C:\blah>for /f "delims==" %f in (a.txt) do @echo %f&&pause<ENTER>
a sdf
Press any key to continue . . .
b sdf
Press any key to continue . . .
c sdf
Press any key to continue . . .

Bat 파일을 작성할 수 있습니다

C:\blah>type wolly.bat
@for /f "delims==" %%f in (%1) do @echo %%f&&pause
C:\blah>

그런 다음 다음을 입력합니다.

C:\blah>wolly a.txt
a sdf
Press any key to continue . . .
b sdf
Press any key to continue . . .
c sdf
Press any key to continue . . .

C:\blah>

관련 정보