take string as input to bash script as command line code example Example: how to take input in bash #!/bin/bash read -p "give input! " STOREDVAR echo $STOREDVAR