Joined
Last Seen
0 Reputation Points
Unknown Quality Score
No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
0 Endorsements
Ranked #44.2K
[code] #!/bin/bash if [ [ $a == $b + $c ] || [ $b == $a + $c ] || [ $c == $a + $b ] ]; then [/code] result: too many arguments What is the proper syntax? Thanks! | |
How do I test whether the first character in an array is a particular character? [CODE] i=0 while [ $i -lt $# ]; do strng=${args[i]}; if [ $strng[0] == '-' ] echo ${array[i]} let i=i+1 done [/CODE] Better yet - can I test the first character in an array of … |