我正在 Red Hat Linux 上编写一个需要标头的脚本(我忘记了版本),但是 banner
命令不可供我使用,并且我无法安装它。我通过谷歌了解到它很可能已被弃用。
那么是否有一个新版本的命令可以产生类似的结果,或者我可以复制该命令,甚至只是暂时更改脚本输出以使字符具有不同的大小?
我尝试查看 stty 但我们不通过 xterm 访问,我们直接通过 putty 登录。
I am writing a script on Red Hat Linux (I forget the version) that needs a header, but the banner
command is not there for me to use and I won't be able to get it installed. I read via Google that it may well have been deprecated.
So is there a new version of the command that produces similar results, or a way I can replicate the command, or even just temporarily change the script output so that characters are a different size?
I've tried looking at stty but we don't access via xterm, we log in directly via putty.
发布评论
评论(2)
在最简单的形式中,“横幅”不到几页代码(例如 这个)。也许您可以从您的主目录编译并运行它?
In its simplest form, 'banner' is less than a few pages of code (e.g. this one). Perhaps you could just compile and run it from your home directory?
使用某个网站,例如 http://patorjk.com/software/taag/。
如果您经常需要它,您可以创建一个脚本来废弃结果。
顺便说一句,
stty
与您的问题无关,我不知道您为什么提到它。Use some web site, for example http://patorjk.com/software/taag/.
If you need it frequently you can create a script to scrap the result.
BTW,
stty
has nothing to do with your problem, I don't know why you mentioned it.