小编itg*_*eek的帖子

如何在 RHEL 7 上将 python 默认版本从 2.7 更改为 3.7

如何在 RHEL 7 上将 python 默认版本从 2.7 更改为 3.7。

按照这个https://tecadmin.net/install-python-3-7-on-centos/在 RHEL7 虚拟机上安装 python

当我检查 python 版本时,它仍然打印旧版本。

rhel python python3

7
推荐指数
2
解决办法
5万
查看次数

正则表达式使用 bash 从 Json 文件中获取单个值

我想从下面的 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)

linux grep json aws

3
推荐指数
1
解决办法
1879
查看次数

标签 统计

aws ×1

grep ×1

json ×1

linux ×1

python ×1

python3 ×1

rhel ×1