Return
Styles:
Pseud0ch
,
Terminal
,
Valhalla
,
NES
,
Geocities
,
Blue Moon
.
Entire thread
BASH Scripting question
1
Name:
Ain
2012-11-15 19:28
Hey guys, can you help me write a BASH script that takes the side of a cube as a command line argument and displays the volume of the cube? Thanks in advance.
7
Name:
Anonymous
2012-11-15 20:22
#!/usr/local/bin/bash
let result=$1*$1*$1
echo $result
8
Name:
Anonymous
2012-11-15 20:24
or
let result=$1**3
Newer Posts
Don't change these.
Name:
Email:
Entire Thread
Thread List