shell script issue
#!/bin/bash
function DEBUG() { [ "$_DEBUG" == "on" ] && $@ || : } for i in {1..10} do DEBUG echo $i done What does $_DEBUG mean? And what's its grammar ? Thanks. |
Code:
_DEBUG |
_DEBUG is some variable in your script. But it doesn't seem a complete script, but just a snippet of it. So let's know what exactly you want to do?
In the meantime, following should work: Code:
#!/bin/bash |
You should post the complete code to undestand if the _DEBUG is into the script ;)
Have you used the code form here?: http://manoftoday.wikidot.com/bash :D |
All times are GMT -5. The time now is 11:20 PM. |