Replies: 2 comments 1 reply
-
As there's no section dealing with brace expansion, here's a useful example which can reduce typos and save keystrokes:
This, when executed, expands to:
|
Beta Was this translation helpful? Give feedback.
-
Frequently one wished to place nicely formatted headers into output, consisting of a line of specific chars, then a line of output, and another line of specific chars, those with the same length as the output line. That can be done like this:
"line" may of course be passed as argument, when writing the above code as function. Also, header can be customised, for example with leading/trailing "#" chars according personal taste and need. Idea here is merely to generate header bracketing lines with the same length as the header line itself, by replacing all of its characters against the desired header character. With leading "#" chars the line could look like this: |
Beta Was this translation helpful? Give feedback.
-
👋 Welcome!
We’re using Discussions as a place to connect with other members of our community. We hope that you:
build together 💪.
To get started, comment below with an introduction of yourself and tell us about what you do with this community.
Beta Was this translation helpful? Give feedback.
All reactions