Post

getting user input in bash

1
2
3
4
5
6
7
8
$ cat parrot
#!/bin/bash
read HELLO
echo "user said \"$HELLO\""

$ ./parrot
hello there
user said "hello there"
This post is licensed under CC BY 4.0 by the author.