gpt4 book ai didi

linux - 如何在 shell 脚本中添加双引号?

转载 作者:太空宇宙 更新时间:2023-11-04 03:35:31 26 4
gpt4 key购买 nike

我有一个文件,其中包含大约 100 个电子邮件 ID(一行)。我只想为每个电子邮件 ID 添加双引号。我最好寻找一个 shell 脚本。

有人可以帮我得到这个吗?

最佳答案

尝试 awk

awk '{print "\x22"$0"\x22"}' inputfilename

在 sed

sed 's/.*/"&"/g' inputfilename

关于linux - 如何在 shell 脚本中添加双引号?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31722176/

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