Results 1 to 2 of 2
Code:
#!/bin/bash
echo 'obase=2;10'|bc
current_version=$1
echo $current_version
echo 'obase=2; $current_version'|bc > BinVer.txt
What is the problem? The terminal tells me the $ sign is illegal. Help?...
- 04-21-2011 #1Just Joined!
- Join Date
- Apr 2011
- Posts
- 5
Creating bash file that changes decimal to binary using obase
What is the problem? The terminal tells me the $ sign is illegal. Help?Code:#!/bin/bash echo 'obase=2;10'|bc current_version=$1 echo $current_version echo 'obase=2; $current_version'|bc > BinVer.txt
- 04-25-2011 #2Just Joined!
- Join Date
- Mar 2007
- Location
- Bogotá, Colombia
- Posts
- 39


Reply With Quote
