如何在 RHEL 7 上将 python 默认版本从 2.7 更改为 3.7。
按照这个https://tecadmin.net/install-python-3-7-on-centos/在 RHEL7 虚拟机上安装 python
当我检查 python 版本时,它仍然打印旧版本。
我想从下面的 JSON 文件内容中检索值“tenki-deploy-topic”。我使用了这个正则表达式grep -o 'topic[^"]*' output.log
,然后它获取了所有主题的文件,相反,我想使用其他一些键,例如“tenki”或“dense”。
{ "Topics": [ { "Name": "arn:aws:sns:us-west-2:123456789012:topic-freezing-deploy" }, { "Name": "arn:aws:sns:us-west-2:123456789012:topic-dense-deploy" }, { "Name": "arn:aws:sns:us-west-2:123456789012:topic-tenki-deploy" } ] }
Run Code Online (Sandbox Code Playgroud)