Timeline for Shell function to center its first argument
Current License: CC BY-SA 4.0
10 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Dec 24, 2022 at 10:59 | vote | accept | CommunityBot | ||
| Dec 24, 2022 at 9:42 | comment | added | Kusalananda♦ |
Regarding your most recent edit: bash answers were suggested as this is the most common shell in use, and you did not specify a particular shell in the question. Note also that my own answer did already have a sh-only part to it, which I hope I have now pointed out a bit more explicitly.
|
|
| Dec 24, 2022 at 9:29 | history | edited | user550837 | CC BY-SA 4.0 |
added 97 characters in body
|
| Dec 24, 2022 at 9:07 | review | Close votes | |||
| Jan 9, 2023 at 3:05 | |||||
| Dec 24, 2022 at 8:43 | comment | added | Stéphane Chazelas | Does this answer your question? Center text with printf | |
| Dec 24, 2022 at 8:22 | comment | added | Stéphane Chazelas |
If switching to vim is an option, it's just :center there (based on the textwidth aka tw setting).
|
|
| Dec 24, 2022 at 7:05 | answer | added | user unknown | timeline score: -1 | |
| Dec 24, 2022 at 0:16 | history | edited | Kusalananda♦ |
edited tags
|
|
| Dec 24, 2022 at 0:12 | answer | added | Kusalananda♦ | timeline score: 0 | |
| Dec 23, 2022 at 23:22 | history | asked | user550837 | CC BY-SA 4.0 |