Questions tagged [wrap]
The wrap tag has no summary.
16 questions
1 vote
0 answers
74 views
Wrap long lines using GNU sed
The following expression is reasonably effective at wrapping long lines of text (for the purpose of dumping to my 128 characters wide terminal window and reading): s~(.{104,124}) ~\1\n~g This ...
0 votes
2 answers
178 views
Use 'fold' to wrap lines at 72 column
Test file: Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmo tempor incididunt ut labore et dolore magna aliqua. Ut enim minim veniam quis nostrud exercitation ullamco laboris ...
0 votes
2 answers
504 views
Bash: how to wrap a command to measure its elapsed time?
How to wrap a command to measure its elapsed time? Currently I do it using eval: do_cmd_named() { local name=$1 local cmd=$2 echo "$name" local start_time=$(date +%s) eval "$...
1 vote
0 answers
281 views
set custom wrap column
OS: SLES12, terminal emulator: mate 1.22.1, shell: tcsh $TERM: xterm-256color I want to set the line wrapping in the terminal so that any text that appears on the terminal (stdout or otherwise) wraps ...
2 votes
3 answers
329 views
Find path of original command when overriding it with a shell script?
I'm writing a wrapper script to wrap around the execution of another command; in this case the Chef kitchen command. My script will also be called kitchen and put earlier in $PATH so that running ...
0 votes
1 answer
84 views
What is electron-wrapped process?
I found this process today but I don't recognize it. Searching i found that is a tool but I haven't installed it.(directly) Can it be a problem to consider? Thank you!
0 votes
1 answer
270 views
Current/working directory issue from wrapper
A common packaging issue I encounter is when a tool is looking for relative resources in its root directory (install directory). Eg. pkg-name (/usr/share/pkg-name/pkg-name) is looking for resourceA (/...
0 votes
2 answers
283 views
How to use bash cat * to wrap? [duplicate]
ls /proc/ 1 10984 11246 131 144 167 2099 31788 4805 5375 6762 7594 8111 8722 consoles 10 10993 11247 1314 14400 168 21 32 4807 5379 6771 76 8112 ...
2 votes
1 answer
563 views
Bash prompt wrap broken when path has unicode (Greek) characters
When a path is too long to fit on the terminal and it wraps, the following prompt is broken and you can't see properly what is typed. See screenshot below: These are the contents of .bashrc that set ...
0 votes
1 answer
272 views
Rip-off (an ncurses term) single bottom line out of /dev/tty terminal, is it possible?
Ncurses allows to separate a single line from screen, at level of physical screen (curscr), to devote it to e.g. a title bar, thus also creating a logical screen (stdscr), devoted to application's ...
8 votes
1 answer
4k views
Turning off word-wrap with less during paging?
I can get the effect that I want from running less -S but it seems fishy to me that there is no way to render the input without word-wrap after the file is opened. Is there anyway to less /tmp/...
1 vote
2 answers
111 views
Hard wrap hard refill
Given this file: $ cat file alfa bravo charlie delta echo foxtrot golf hotel india juliet kilo lima mike november oscar papa quebec romeo sierra tango uniform_victor_whiskey_xray yankee zulu I would ...
9 votes
1 answer
560 views
Wrap text accounting for non-printing characters
This question asks about wrapping text at a certain column, and people suggest using fold or fmt but as far as I can see, these simply count characters and don't allow for non-printing characters. ...
0 votes
3 answers
405 views
Script error message in a single line
I am executing the command mv /prod/new/outputlog/error.log /prod/hist/new/outputlog/error.log.32423423424 using shell script. Since the error.log file is not available the command writing an error ...
1 vote
1 answer
322 views
Text wrapping in Terminology
I just installed Enlightenment in OpenSuse Tumbleweed via YasT. I'm using E as the WM and entrance as the DM, if it matters. While checking its terminal emulator Terminology, I noticed that output ...