从 SED 中的标头中删除双引号
我只想从标题行中删除双引号。下面的数据位于带有制表符分隔符的 txt 文件中。谢谢!
"$sedol" "$cusip" "$rbss_id"
"2877365" "22122P101" "53301020"
"B0G72D1" " " "50102020"
所需的答案是:
$sedol $cusip $rbss_id
“2877365” “22122P101” “53301020”
“B0G72D1” “ “ “50102020”
i would like to remove double quotes from the header row only. The data below is in a txt file with tab-delimiter. Thanks!
"$sedol" "$cusip" "$rbss_id"
"2877365" "22122P101" "53301020"
"B0G72D1" " " "50102020"
The desired answer is:
$sedol $cusip $rbss_id
"2877365" "22122P101" "53301020"
"B0G72D1" " " "50102020"
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
试试这个 sed:
1s
将确保仅替换第 1 行的"
。Try this sed:
1s
will make sure to replace"
on line # 1 only.