General :: Line Wrap In Less Not Working
Jan 21, 2010
I am having a problem with long lines when displayed in less. It is difficult to describe but I will try...
I have a text file with some lines longer that 80 characters. If I use less to view this file in an Putty terminal set to an 80 character width, some of the lines wrap. So far so good. If I now use the 'j' or 'arrow down' key to scroll down one line at a time all is ok until I encounter another long line (longer than 80 characters in my example). What I see is only the wrapped portion of the line. The first 80 characters are missing. At this point I can type a ctrl-L to refresh the window and then the long line is wrapped properly. It is only when I am scrolling one line at a time that I see this behavior.
I am not certain that this is a "less problem". However, I only notice it using less. vi works properly. more works properly. I suppose it could also be a Putty, bash or environment problem but I'm not sure.
I've played around with options to less such as -X -r -R without any luck. The systems I am connecting to area all running CentOS if that makes any difference.
View 5 Replies
ADVERTISEMENT
Apr 21, 2010
Anyone know the secred magic incantation is get Evolution to either stop doing line wrap while composing email, or at least extend the line size?
View 7 Replies
View Related
Apr 19, 2011
How can I make the less utility in Linux not wrap lines?
Long version: Often I need to view huge CSV files using less with hundreds of columns. I frequently only care about the first couple columns. However, word wrap causes one line to become several lines even on wide-screen monitors.
View 2 Replies
View Related
Feb 24, 2011
I have an old program that kind of depends on older dynamic libraries. They tend to get upgraded easily with distro's updates. I figured that there would be a script with using ldd that would gather the libs needed and create one bigger, statically linked application that wouldn't break so easily. If I could do this, a lot of older KDE libraries could be removed from my system and easen my life.
My distribution of choice is gentoo, but I'm looking for a general solution that doesn't depend on rebuilding anything. If it runs with libs on their path, I'm sure it can be made run with libs somewhere else!
View 1 Replies
View Related
Nov 13, 2010
I'm not a newbie to Linux, but I'm a newbie to LQ. I've searched the internet for an answer to an issue I'm having with JOE, to no avail.For my editing purposes, I HATE word wrap. I've read the man page extensively and nothing I try works.
To disable word wrap, it says, simply edit the joerc file and place --wordrap in the first column. Done. It works for .pl, and it works for .c (seems to be built in for C). Bottom line, I cannot disable word wrap for all text files, or at least the ones I want to edit. Has anyone solved this?
View 2 Replies
View Related
Mar 21, 2011
I'm new at working with Linux based systems.Currently I'm working with a Dell notebook that I installed Ubuntu10.10 on and am having real trouble grasping the method needed to install software and media codecs on it off line.I'm sure it can't be as diffucult as I'm making it and I'm going back to the Ubuntu support center to seek help there.I Love the fact of Linux being open and available for everyone and really want to learn it inside and out.I'm good with MS and like how the system takes over installations of apps,dosen't Linux work in a simular fashion?Or do I need to use a command line interface to acomplish installing the software that I need to build the system I want.I feel really stupid asking,I know I'm missing something obvious that's right in front of me,I'm also going to look into a DOS tutorial.
View 2 Replies
View Related
Dec 7, 2010
I just typed several long lines into vi but I only want it to have 80 columns. How can I set this in vi?
View 1 Replies
View Related
Jan 23, 2010
Is there any equivalent for Linux to the "Edgeless" software for Windows that lets the mouse pointer wrap around from one screen edge to the opposite edge? That is, if you move the pointer off the screen to the right, it comes back in on the left side.
View 2 Replies
View Related
May 13, 2010
Abiword is splitting words at the end of sentences. If I go to the end of the line and nudge the word, it will wrap but I get an extra space. I can usually delete the space. Sometime, the word will wrap correctly if I continue typing but this is not the typical case.
I know this is not a problem with OpenOffice but I don't want to install 70MB of program just to get a simple word processor.
View 1 Replies
View Related
Nov 13, 2010
I have no need for word wrap for most of what I use JOE for. The man page and the HOWTO don't answer this question, so I'm wondering if it might be a bug. I'm running Joe 3.7.in the joerc file does not work correctly. It works (built-in?) for .c files, and I can make it work for .pl files. But files with no extension? Forget it.Without having to resort to the menu each time to turn it off, is there another way to disable word wrap?
View 3 Replies
View Related
Feb 20, 2010
I am trying the wrap feature for the first time. I followed the instruction as mentioned in this link URl...but I am getting an error saying "undefine reference to __wrap_malloc.I followed all the steps, but the post was a decade old, I am sure something has changed? or am I missing something.
View 2 Replies
View Related
Aug 25, 2010
I hope I am pasting this in the correct place. I am a big fan of minimalist software- and Gedit is an excellent program. Now I am not a a programmer or anything, but I do like to write, and Gedit seems very well suited towards what I want. A simple word-bashing-out program.
But my problem is that it does text-wrap to the margin. Now I don't particularly want to do this manually, and the option in the preferences menu doesn't seem to work.
View 5 Replies
View Related
Jul 4, 2011
how to wrap the text in the overview for the icons I tell you I love opensource. Straight from some of the guys who wrote gnome shell, and yes the reason it was left out by default is because it has some quirks. Yes it wraps text - however if you have long words - like this_file_has_no_spaces then it will overflow into the icon on either side of it. But most application names have spaces. The obvious place you will see this happening is in recent items where that displays system files etc. The other issue is that when you hover/highlight an icon it will only highlight the first line of text. That's pretty much it and with a few lines of code then you can increase the font size of applications and don't have to worry about names getting cut off
[Code]...
View 4 Replies
View Related
May 30, 2010
I started using gnome sticky notes along with the Compiz widget layer in Ubuntu 10.04. The problem I'm having is that word wrap on the sticky notes is hit-or-miss. Most of the time the notes will automatically stretch horizontally (even beyond the size of a workspace) rather than break at its current window size. The only other problem I've noticed is that if I right-click on the title of a note, the resulting menu doesn't display correctly (it's looks like a line).Should I reinstall the package it belongs to?
View 1 Replies
View Related
Jun 24, 2010
I am seeing the Vertical screen wrap problem (discussed in [URL]) on a 64-bit Athlon XP desktop with the Ubuntu version that I installed yesterday (10.04 LTS 32-bit).
Vertical screen wrap, with the mouse pointer offset by a few pixels to the north, taskbar partially visible .
The xserver video amd package version is, xserver-xorg-video-amd 2.11.8-4 and the geode package is, xserver-xorg-video-geode 2.11.8-4. Is it possible that the problem lies in the new geode package (and not the intel/amd driver) ?
View 1 Replies
View Related
Oct 7, 2010
How to create cron tab when DSL line down set automatically restart the network service while DSL line up?
View 3 Replies
View Related
Feb 8, 2010
After running the following command, I get:
[root@yukiko /]# find / -iname .bashrc
/home/clamav/.bashrc
/home/vpopmail/.bashrc
/etc/skel/.bashrc
/root/.bashrc
But I would like to have a command that prints a specific line by supplying the command with the line number, for example:
[root@yukiko /]# find / -iname .bashrc | getline(2)
/home/vpopmail/.bashrc
Is there such a command on CentOS?
View 3 Replies
View Related
Sep 11, 2009
I have several files with many lines something like this:
I'm trying to write a script that will count the number of characters per line that doesn't contain a ">" symbol and give me an average of those values. I have most of the script together but I can't figure out how to connect some of the steps.
Code:
View 3 Replies
View Related
Dec 23, 2009
I am trying to write a script that takes an input file ($FileName) and an intermediate file ($FileName.info) and removes lines from $FileName if the value in $2 of $FileName.info is <75.
I can't figure out how to feed only one line of the .info file to the if statement at a time so that it will perceive it as an integer instead of a list.
The error I am getting now is ./script.sh: line 6: [: : integer expression expected
Sample input $FileName
Code:
Code:
Code:
Script so far:
Code:
View 10 Replies
View Related
Aug 2, 2010
I've written a script to parse a file and print each line that ends with matching pattern, if the next line is blank. The pattern lines are the result of md5sum $i|sed 's/path///g' so that only md5 and filename appear. Here's what I'm using.
Quote:
for fline in `sed -n '/.*.ext$/p' file1`
do
if [ "`sed -n -e '/'"$fline"'/ {n; p;}' file1`" == "" ]
then
echo ""$fline" has no info" >>file2
fi
done
[Code]....
View 4 Replies
View Related
Feb 24, 2011
I'd like show a certain line or lines of a file with context, kind of like a unified diff, on the command line in Linux:
$ (something) -l 154 stuff.py
150: def foo(bar):
151: """
[code]....
View 5 Replies
View Related
Aug 22, 2011
How can I print Linux command line history without including the line numbers? I want to send it all to a text file like this:history >> history.txt
View 1 Replies
View Related
Jan 8, 2010
I want to sort a number of lines based on their size:
data:
-------
12345678
87654321
1234
[code]....
Should output as:
-----------------
1
2
12
21
[code]....
But i'm gettings this with sort
----------------
1
12
123
1234
[code]....
Can we sort the above "data" text, based on "number of characters" instead of "character order"?
View 8 Replies
View Related
Apr 1, 2011
I am combining data from a couple different input files and creating an output file in a specific format. I notice that if I use the >> operator, information gets appended to a new line in my output file. This is useful, but if I'd like to append onto the CURRENT line, is there an easy way to do this? I've been googling around and see lots of complicated answers, nothing that suggests to me an easy way to do this. For example, if my output file looks like this:
b1a:] cat test
hello my name is
b1a:]
and I'd simply like to append "Bob", how can I do it? If I use
b1a:] echo Bob >> test
b1a:] cat test
b1a:] hello my name is
Bob
b1a:]
So what I would prefer is some command that would create the result:
hello my name is Bob
View 14 Replies
View Related
Mar 21, 2011
This solution works but is slow with large files. I am looking for a faster solution.
The 2 files contain filenames, one of them has associated data I want to append to the other file's matching filenames
file1:
file2:
I append file2 by matching the unique_filenames and appending them with the tag data and some formatting
appended file2:
Here is the SLOW code
while read inputline.
View 9 Replies
View Related
Mar 30, 2011
I need to grep for a particular string and if found need to display the line containing that string, the line above that and also the first line of that paragraph.
Can this be done via sed.
Eg, My Paragraphs
OA connectA
Enclosure:
Interconnect Module #6 Status:
Here, if I grep for Critical, it should display the following
Similarly if I grep for Degraded, it should display
View 3 Replies
View Related
May 13, 2010
I have to do several scripts and I have no idea of how to do this one: Make a script that read line by line the passwd file and prints in console.Hope you understand couse my english isso bad as you can see.Our teacher told us something like this:#!/bin/bashwhile read line doecho $lineadone < dispositiveexit
View 9 Replies
View Related
Sep 1, 2009
I have a dataset (see example below) that I would like to go through and copy all lines containing a certain string ("LGIG") plus the line immediately following that line to a new file. I have no problem grepping lines containing the string LGIG but I'm lost how to translate that to line number and shift up one line number for each instance of that string.
Example input file:
[code].....
View 5 Replies
View Related
Feb 26, 2010
I have the file abc.txt
cat abc.txt This is a test file Nothing is new in this world
I want to replace "This is a test file" to "Text is replaced"
Code:
FindString='This is a test file'
ReplaceString='Text is replaced'
Findarray=(`echo $FindString | tr ' ' ' '`)
[Code]....
But this is not effective. how to replace entire line either using sed or awk or any other utility.
View 5 Replies
View Related
Jun 15, 2010
I m writing a script to delete a line at particular location.
But i m unable to use variable for specifying line number.
For example.
Code:
works fine and deletes 7th line from my file
But
Code:
gives following error.
Code:
View 7 Replies
View Related