What are $(...) and $((...)) used for?


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting What are $(...) and $((...)) used for?
# 1  
Old 12-04-2010
What are $(...) and $((...)) used for?

I'm starting with shell programming, but I can't find what are $(...) and $((...)) used for...

Whats the difference between them???

Can someone help me??

Thanks!
# 2  
Old 12-04-2010
$(...)evaluate the command that is inside and pass the result as a variable (new fashion) ... the old fashion way is using back tick ``
$((...))is used when evaluating arithmetic operation
This User Gave Thanks to ctsgnb For This Post:
# 3  
Old 12-04-2010
Thank you!!
Login or Register to Ask a Question

Previous Thread | Next Thread
Login or Register to Ask a Question