Is there something similar or like âpassâ in python in bash/shell programming?
Clash Royale CLAN TAG#URR8PPP
up vote
0
down vote
favorite
I sometimes need a command like pass in python in my bash scripts.
Like:
if grep something
then
pass
else
code
fi
In python
you have:
>>> for element in a:
... if not element:
... pass
... print element
QUESTION:
I always use continue
but it gives an error that it should only be used in a for
, while
or until
loop.
What would you do in this circumstance?
linux bash shell python programming
add a comment |Â
up vote
0
down vote
favorite
I sometimes need a command like pass in python in my bash scripts.
Like:
if grep something
then
pass
else
code
fi
In python
you have:
>>> for element in a:
... if not element:
... pass
... print element
QUESTION:
I always use continue
but it gives an error that it should only be used in a for
, while
or until
loop.
What would you do in this circumstance?
linux bash shell python programming
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I sometimes need a command like pass in python in my bash scripts.
Like:
if grep something
then
pass
else
code
fi
In python
you have:
>>> for element in a:
... if not element:
... pass
... print element
QUESTION:
I always use continue
but it gives an error that it should only be used in a for
, while
or until
loop.
What would you do in this circumstance?
linux bash shell python programming
I sometimes need a command like pass in python in my bash scripts.
Like:
if grep something
then
pass
else
code
fi
In python
you have:
>>> for element in a:
... if not element:
... pass
... print element
QUESTION:
I always use continue
but it gives an error that it should only be used in a for
, while
or until
loop.
What would you do in this circumstance?
linux bash shell python programming
linux bash shell python programming
asked 2 mins ago
somethingSomething
1,60693055
1,60693055
add a comment |Â
add a comment |Â
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f476206%2fis-there-something-similar-or-like-pass-in-python-in-bash-shell-programming%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password