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
Hi everybody, I'm sorry If I ask a silly question. I have a simple code like this [CODE]#!/bin/bash verify() { // do something return $(grep -q 'VERIFICATION SUCCESSFUL' result.txt) } if [ verify 'a Condition' ]; then echo debug fi[/CODE] I have the following error: [QUOTE]line x: [: verify: unary … |
|
Hi everybody, I am new to shell script. Please help me with this problem. I have a file test.txt with the content like this: [QUOTE] ! ((x5 * -1/3000) = x6) ((x5 * -1/2000) = x6)[/QUOTE] I have a shell script test.sh like this [CODE]#!/bin/sh while read line do echo … |