O'Reilly logo

Korn Shell: Unix and Linux Programming Manual, Third Edition, The by Anatole Olczak

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

THE read COMMAND

read [options] variablesread input into variables according to options
read name?promptdisplay prompt and read the response into name

read Options

–p read input line from a co-process
–r do not treat \ as line continuation character
–s save a copy of input line in command history file
–un read input line from file descriptor n. If file descriptor is greater than 2, it must first be opened with exec. If n is not specified, default file descriptor is 0.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required