gpt4 book ai didi

linux - 评估变量 - 输出 json 文件内容

转载 作者:塔克拉玛干 更新时间:2023-11-03 00:34:29 31 4
gpt4 key购买 nike

<分区>

在 bash shell 中,我尝试读取 json 文件并加载到变量

eri@xyz:~/Documents/inbound>e1=$(eval echo $(cat ./deploy/request.json))

获取该变量的输出后,我看到 -bash - command not found 以及 .json 文件的实际内容

eri@xyz:~/Documents/inbound>"$e1"

-bash: { type:Pipeline, category:Software, risk:4, short_description:sample short description text, description:sample detailed description text, assignment_group: Services - Retail Services, cmdb_ci:Retail Service, u_version:1.0, start_date:2017-01-04 18:00:00, end_date:2017-01-04 19:00:00, backout_plan:see department for standard backout plan, implementation_plan:sample implementation plan, test_plan:sample text plan, production_system:false }: command not found

有没有办法抑制输出中的 -bash - command not found

31 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com