Search Results

Showing results 1 to 3 of 3
Search took 0.00 seconds.
Search: Posts Made By: cfajohnson ; Forum: Shell Scripting and child forums
Forum: Shell Scripting Oct 4th, 2009
Replies: 2
Views: 775
Posted By cfajohnson
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
Posted By cfajohnson
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
Posted By cfajohnson
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
Showing results 1 to 3 of 3

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC