tmp
Friday, February 1, 2013
shellでの条件分岐
shellでのor表現
if [$hoge = "aaa" -o $fuga = "bbb"]; then # or fi
shellでのand表現
if [$hoge = "aaa" -a $fuga = "bbb"]; then # and fi
参考
http://blog.clouder.jp/archives/001127.html
http://linux.just4fun.biz/%E9%80%86%E5%BC%95%E3%81%8D%E3%82%B7%E3%82%A7%E3%83%AB%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%97%E3%83%88/if%E6%96%87%E3%81%AE%E6%9D%A1%E4%BB%B6%E5%BC%8F%E3%81%A7and,%20or,%20not%E3%82%92%E4%BD%BF%E3%81%86%E6%96%B9%E6%B3%95.html
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment