Reputation
1,134
Top tag
Next privilege 2,000 Rep.
Edit questions and answers
Badges
1 8 13
Impact
~156k people reached

  • 0 posts edited
  • 0 helpful flags
  • 14 votes cast
Apr
16
awarded  Notable Question
Jan
15
awarded  Good Answer
Oct
3
awarded  Nice Answer
Sep
20
awarded  Yearling
May
26
awarded  Famous Question
Nov
19
awarded  Popular Question
Sep
20
awarded  Yearling
Jun
16
awarded  Caucus
Sep
20
awarded  Yearling
Jul
16
awarded  Notable Question
Jul
8
awarded  Enlightened
Jul
8
awarded  Nice Answer
Jan
2
awarded  Popular Question
Oct
21
answered Syntax errors in a bash script executed from tcsh
Oct
21
comment Syntax errors in a bash script executed from tcsh
So the problem is with single quotes you used to wrap your whole commands. It prevents back-quotes to be replaced with its result. Try this: bash -c "for i in 1 2; do if [ 146 = `echo $numbers | cut -f$i -d' ' ` ]; then echo 'NUM is OK '; fi done"
Oct
21
awarded  Commentator
Oct
21
comment Syntax errors in a bash script executed from tcsh
try "146" == instead of 146 =
Sep
20
awarded  Yearling
Sep
19
comment Why there are only two user defined signals?
@Random832 You're right, I know what you say. But the problem I was thinking about was that what if I ran out of my 31 choices of signals?
Sep
19
accepted Why there are only two user defined signals?