Skip to content

Instantly share code, notes, and snippets.

@betweenbrain
Created February 9, 2012 20:08
Show Gist options
  • Save betweenbrain/1782739 to your computer and use it in GitHub Desktop.
Save betweenbrain/1782739 to your computer and use it in GitHub Desktop.
Bash readline example that includes default answer from http://stackoverflow.com/a/4480034/901680
#!/bin/bash
read -p "Enter IP address: " -e -i 192.168.0.4 IP
echo $IP
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment