Last active
May 28, 2020 21:22
-
-
Save jack126guy/26a9f1bb8da7fce16ace to your computer and use it in GitHub Desktop.
Emulate the DOS/Windows PAUSE command on Unix-like systems
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
#You probably want to put this in /usr/local/bin | |
echo "Press Enter to continue... " | |
read REPLY |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.TH PAUSE 1 | |
.SH NAME | |
pause - pause execution pending further input | |
.SH SYNOPSIS | |
.B pause | |
.SH DESCRIPTION | |
Pause execution and prompt for input to continue. This is an | |
emulation of the DOS/Windows | |
.B PAUSE | |
command in a simple shell script. | |
.SH BUGS | |
Unlike the DOS command, this command does not accept any key to continue, | |
only the Enter key. | |
.SH AUTHOR | |
Jack126Guy <someanon126@gmail.com> | |
.SH COPYRIGHT | |
The program and this manual are released into the public domain under | |
Creative Commons CC0 1.0 Universal: | |
<http://creativecommons.org/publicdomain/zero/1.0/> | |
.SH SEE ALSO | |
.BR sleep (1), | |
.BR sh (1) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment