Forum: Shell Scripting Oct 4th, 2009 |
| Replies: 2 Views: 775 password=boom
n=0
for n in 1 2 3
do
read -ep "Code: " code
[ "$code" = "$password" ] && break
done
if [ "$code" = "$password" ]
then |
Forum: Shell Scripting May 28th, 2009 |
| Replies: 2 Views: 1,397 case $1 in
-o) shift ;;
*) set -- /dev/stdin ;;
esac
while IFS= read -r
do
: do whatever with "$line"
done < "$1" |
Forum: Shell Scripting Jan 25th, 2009 |
| Replies: 9 Views: 1,209 Calling sed six times???? AARRGGHH!!!
If you know there are going to be six lines (or only need the first six):
{
read obyte1
read rbyte1
read snapt1
read obyte2 |