[Ilugc] Bug in passwd !

  • From: metallica_tony@xxxxxxxxx (K.Sriram)
  • Date: Sat, 3 Apr 2004 07:18:19 -0800 (PST)

This is a calculator based on stack concept ( Last in
First out , LIFO ) i.e pushing and popping.also it
employs a parenthesis free logic invented by a polish
mathematician before second world war. 
Here are some examples ...

echo '65p'| dc  --> pushes the value 65 to a stack and
then as it encounters 'p' it pops out the value as an
integer.

echo '65P'| dc  --> pushes 65 and pops out as a
character.
as the character corresponding to 65 is A it is
printed.

echo '+' | dc  ---> says stack is empty. coz when it
encounters + it pops out last two values from stack,
calculates the sum and it pushes the result to stack.
same applies for *,/ etc.

echo '5 5+p' | dc ---> prints 10.
so 
echo '65P80P82P73P76P32P70P79P79P76P10P' | dc
is enough for printing APRIL FOOL. the other things
are redundant just for confusing.

Looks Pretty good :-)



echo '82 43/25 65P80P82P73P76P32P70P79P79P76P10P'|

dc
--- Ram Prakash <RamP@xxxxxxxxxx> wrote:
I have already tried it out.
That's why I want to know what happens.
I want to know what the command does.
Regards,
Ram
--

_______________________________________________
To unsubscribe, email ilugc-request@xxxxxxxxxxxxx
with 
"unsubscribe <password> address"
in the subject or body of the message.  
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc


=====
##################################################
 
Personal email : metallica_tony@xxxxxxxxx 
Official email : sriram@xxxxxxxxxx
                [ Senior Developer @ Linare Tech ] 
        
             What I felt , 
          What I have known , 
  Never shined in thru what I have shown 
                   ---- Metallica.
                                                                                
                                        
Registered GNU/Linux User  #346087 
Free(dom) Software - For the people, by the people, to the people. 
 
##################################################

__________________________________
Do you Yahoo!?
Yahoo! Small Business $15K Web Design Giveaway 
http://promotions.yahoo.com/design_giveaway/

Other related posts: