通过bash脚本替换HTML ASCII代码? [英] Replacing HTML ascii codes via a bash script?

查看:57
本文介绍了通过bash脚本替换HTML ASCII代码?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要一种方法来用bash中的正确字符替换HTML HTML ASCII代码(例如!).

I need a way to replace HTML ASCII codes like ! with their correct character in bash.

有没有可以运行我的输出来执行此操作的工具,或者类似的方法?

Is there a utility I could run my output through to do this, or something along those lines?

推荐答案


$ echo '!' | recode html/..
!
$ echo '<∞>' | recode html/..
<∞>

这篇关于通过bash脚本替换HTML ASCII代码?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆