Questions tagged [wrap]
14 questions
8
votes
1 answer
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. For example:
fold -w 20 -s <<<`seq 1 25`
as one…
IpsRich
- 737
- 6
- 17
5
votes
1 answer
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/longtext
And then after you have it up to disable…
Evan Carroll
- 28,578
- 45
- 164
- 290
5
votes
2 answers
How to remove line wrapping from DNF & YUM commands?
When using dnf and yum on rpm based Linux distros (RHEL/Red Hat, Fedora, CentOS, etc) the utility will automatically wrap lines to make it more friendly for the user to read. This is problematic as it makes it extremely annoying to work with the…
Brian Redbeard
- 2,961
- 19
- 44
2
votes
3 answers
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 kitchen from bash will run my wrapper script…
derobert
- 107,579
- 20
- 231
- 279
2
votes
1 answer
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 the PS1, which is the default provided by…
user000001
- 3,347
- 19
- 30
1
vote
0 answers
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 a few columns left to the edge.
I always work…
Nimrod Weinberg
- 23
- 5
1
vote
2 answers
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 like to hard break at 70, but I would also like…
Zombo
- 1
- 5
- 43
- 62
1
vote
1 answer
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 lines larger than the width of the window get…
Gyan
- 1,010
- 5
- 13
0
votes
2 answers
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 "$cmd 2>&1"
local exit_status=$?
local end_time=$(date +%s)
…
pmor
- 509
- 5
- 11
0
votes
1 answer
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!
xilen0x
- 1
- 1
0
votes
1 answer
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 (/usr/share/pkg-name/resourceA) so you can't call…
noraj
- 290
- 3
- 17
0
votes
2 answers
How to use bash cat * to wrap?
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 8738 cpuinfo
100 10998 11248 13163 …
bohan Chen
- 1
- 2
0
votes
1 answer
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 viewport. It's the ncurses call ripoffline() that's…
Digger
- 23
- 3
0
votes
3 answers
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 message in to the log file automatically. The…
Murali
- 1