function: wecho desc: 'echo' command wrapper for indenting and wordwrapping. All 'echo' options remain valid. usage: wecho {indent_level} [{echo_opts...}] [{echo_args...}] desc: Uses 'fmt' to wordwrap 'echo'-ed text to COLUMNS width, then uses 'sed' to indent every line by {indent_level}*4 spaces. If COLUMNS is not defined, then 'tput' is used to calculate it's value. depends: fmt sed [tput] [COLUMNS] eg: wecho 2 "a really, really, ... ... long sentence or paragraphs." COLUMNS=256; wecho 1 "another ... really ... long ... hunk ... of ... text." # indent 4 spaces+wordwrap.
-
Notifications
You must be signed in to change notification settings - Fork 0
Open-Technology-Foundation/wecho
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description or website provided.
Topics
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published