下面的shell脚本在Linux中有效,但在Solaris上无效,
#!/usr/bin/bash
while getopts ":s:" opt; do
case $opt in
s)
# Check IP against regex
if [[ "$OPTARG" =~ "\b(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(
我只需要离开几个港口开放(例如80和443)。我读过关于ASGs的文章,用规则创建了json文件。但是当我试图通过终端创建ASG时,它说的是Server error, status code: 403, error code: 10003, message: You are not authorized to perform the requested action。当我试图找到一个解决方案-一些消息人士说,我需要在网络控制台做-但我没有这样的菜单项。问题是
我怎么能管理助理秘书长?
ASGs允许完全控制进出流量吗?
我需要在shell脚本中使用echo和grep。我能用吗?
我试过了,但不正确:
echo Linux: grep "Linux" ~/workspace/ep-exercicios/m1/e2/intro-linux.html | wc -w
我需要显示消息:
Linux: (number of Linux word on the document).
示例:
Linux: 945