无法通过 Zsh 在两列中回显 az
为了说明目的,我需要在两列中打印以下序列
a-z
,其中包含从 a 到 z 的字母,以便它们位于 13 个字符的列中。
如何将从 a 到 z 的字符回显到两列中?
I need to print the following sequence for illustration purposes in two columns
a-z
which has alphabets from a to z such that they are in 13-character columns.
How can you echo the characters from a to z into two columns?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
非常好的 Stephan,
避免使用循环输入 a 到 z 怎么样?
Very nice Stephan,
How about avoiding to type a through z with a loop?
我确信存在更好的解决方案,但我会尝试一下:
Better solutions exist, I'm sure, but I'll give it a shot:
您的问题没有指定如何分配两列中的字符,因此这里有一个替代答案:
Your question did not specify how to distribute the characters in the two coloumns, so here is an alternative answer: