Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

read input from multiple lines in BASH

user@host:~$ read -d '' x <<EOF
> mic
> check
> one
> two
> EOF
Source by serverfault.com #
 
PREVIOUS NEXT
Tagged: #read #input #multiple #lines #BASH
ADD COMMENT
Topic
Name
5+7 =