In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-29 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces how to use the Linux command line character shape tool boxes. It is very detailed and has a certain reference value. Friends who are interested must read it!
On my Fedora machine, the boxes program is not installed by default, but it is available in my regular warehouse, so you can install it with the following command:
$sudo dnf install boxes-y
If you are using other Linux distributions, you can usually find boxes in the default repository.
Boxes is the utility I really want to use in my high school and college computer courses, because my well-intentioned teacher asked me to add some appearance-specific notes at the beginning of each source file, function, block of code, and so on.
/ * / * Hello World * / / * /
It turns out that once you need to add a few lines of text to the box and format them in a uniform style, it becomes tedious. Boxes is a simple utility that uses ASCII art-style character shape boxes to surround the text. The default style of its character shape is the source code comment style, but it also provides some other options.
It's really easy to use. Using pipes, a short greeting can be stuffed into a character-shaped box.
$cat greeting.txt | boxes-d diamonds-a c
The output of the above command is as follows:
/ /\\ /\ I'm wishing you all a / /\ /\ joyous holiday season /\ / / and a Happy Gnu Year!\ /\ / \ / /
Or play something more interesting, such as:
Echo "I am a dog" | boxes-d dog-a c
Don't be surprised, it will output as follows:
_,-- = "=--, _ _ /\. /. /\ /, / _:: _\ / `\\` | / o\: / o\ |\ _ / `-'|: =" ~` _ `~ "=: |\` (_) `/. -" -. \ | /.-".-{}-| /,. -'-,\ |-- {}--. ) (_)\ _ / `~-= =-~`\ _ / (I am a dog) ('- -'
The boxes program provides a number of options for populating, locating, and even manipulating regular expressions. You can learn more about boxes on its project home page, or go to GitHub to download the source code or contribute your own box shape. Speaking of which, if you want to find a good idea for your submission, I already have an idea: why can't it be a holiday gift box?
_ _ / _\ / _ _\ _ / _ _ | /\\ | | / /\ | "Happy pull | | request!" | | _ | above is the "Linux command line character shape" How to use the shape tool boxes all the contents of this article Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.