1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-06-05 13:26:01 +02:00

read: add example using 'while' (#5258)

Copied from `while`

As discussed in #5258, this replaces a less useful example to maintain
the limit of 8 examples per page.
This commit is contained in:
Orestis Floros 2021-02-13 21:03:16 +01:00 committed by GitHub
parent 79d8cb64b7
commit 0155fb60ba
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -10,10 +10,6 @@
`read -a {{array}}`
- Enable backspace and GNU readline hotkeys when entering input with read:
`read -e {{variable}}`
- Specify the number of maximum characters to be read:
`read -n {{character_count}} {{variable}}`
@ -33,3 +29,7 @@
- Do not echo typed characters (silent mode):
`read -s {{variable}}`
- Read stdin and perform an action on every line:
`while read line; do echo "$line"; done`