Ubuntu :: Vim - Copying Two Parts From Different Lines

Mar 5, 2010

Suppose that I have this text :
1 abc
2 def
3 ghi
4 klm

Now I want to copy(yank) only the parts:
ab from line one and hi from line three at the same time
So how can this be done with vim? I know how to copy one line and one part of a line. What I want to do is to copy two parts from 2 different lines at the same time and paste them as they are some where else in the file.

View 4 Replies


ADVERTISEMENT

Programming :: Remove Lines And Parts Of Lines From Python Strings?

Nov 24, 2009

How do you remove parts of strings using python? Such as, if I have something like:

Code:
erme1 sdifskenklsd
erme2 sdfjksliel

[code]....

View 3 Replies View Related

General :: Splitting Text Files Into Parts With 2000 Lines

Sep 7, 2010

I am facing a problem while splitting a text file, I need to split a file into some parts and each split file should have 2000 lines, when I do it through "split" command the mother file is kept intact but as per my requirement I need to cut mother file into some parts thus it should not be kept intact.

Example:
file size
motherfile.txt 5000 lines.
after split
motherfile.txt 2000 lines.
childfile1.txt 2000 lines.
childfile2.txt 1000 lines.

View 7 Replies View Related

General :: Copying A Block Of Lines With Criteria?

Jan 27, 2011

I am having a file filled of blocks like (each is seperated with the <event> )

<event>
8 1 0.1118800E-04 0.1709000E+03 0.7546772E-02 0.1182204E+00
-1 -1 0 0 0 501 0.00000000000E+00 0.00000000000E+00 0.40846782627E+02 0.40846782627E+02 0.00000000000E+00 0. 1.
2 -1 0 0 501 0 0.00000000000E+00 0.00000000000E+00 -0.90202563950E+03 0.90202563950E+03 0.00000000000E+00 0. -1.

[code]....

how can I copy this block if for example find "13" in the first column and "-1" in the last ? Then, looping to the rest of the file doing the same all over again?

View 14 Replies View Related

Ubuntu :: Wobbly Windows Lines - Get These Lines When Drag/move The Window Upwards

May 31, 2011

I've just installed Kubuntu 11.04, switched on wobbly windows effect. It runs very smooth on my Nvidia GeForce 7600 GS with dual screen twinview turned on. However, I get these lines when I drag/move the window upwards - see screenshot:

View 6 Replies View Related

OpenSUSE :: Web - Screen Loads And After Initial First Few Lines Breaks Up Into Multiple Repetitions Of Lines

Apr 22, 2011

I have been experiencing a problem where the screen loads and after initial first few lines breaks up into multiple repetitions of lines. Reloading helps but has to be repeated when pageing down. Mail is no problem; it is supplied by my network provider. OS is openSUSE 11.2 which I update when advised. Below is a sample from the error console:

[Code]...

View 1 Replies View Related

General :: Delete All Lines Containing A String, Plus 4 Lines Below It?

Jan 26, 2010

I've come across an unusual requirement for a service in my Ubuntu system.Simply put, I need to find a way to search for all instances of a term in a file, delete lines containing containing that term, and delete four lines below each instance of that term. ither that, or copy the entirety of a file to a new file and skip over all lines containing the term plus four below it.This sounds kinda weird, I know. Without going too far into detail, I either have to change the logfile format for a server I'm running which is a huge pain in the butt, or I can just run a script to edit an HTML report generated from said logs. (Said report is really just for managers to peruse, and I like my log format, so I'm pursuing option 2.)

View 4 Replies View Related

Ubuntu :: Run-parts Not Working?

Jun 13, 2010

I have a very dumb questions regarding run-parts utility. I've created few shell scripts, chmod them to be executable, placed them into one particular directory and tried to run them using run-parts utility like this

run-parts dir_name However it doesn't seem to be working or I might just be missing out something. I have even tried different options like --test or --list - NONE of them produced any output. If I run each of the script manually they all work just fine. Is this is a known bug or somethng ?? or am I really missing out something...how are the /etc/crontab entries then being executed when the run-parts doesn't seem to be working on such a simple case ? ps: I noticed one interesting thing though...when I run run-parts like this: run-parts --list --regex 'some_regexp_patern' dir_name -> the output actually produces a list of the files whose file names match the given regexp pattern .

View 4 Replies View Related

Ubuntu :: Cut Jpg Images In Two Parts?

Nov 7, 2010

How do I cut jpg images in two parts?

If I want to e.g. slice an jpg vertically at so and so many pixels from the bottom.

View 1 Replies View Related

Ubuntu :: GUI For Parts Of Server 9.10 And Zimbra?

Mar 11, 2010

I am completely new to Ubuntu so please make your answers really simple ! I want to set up a mail server for a home network and have been suggested I use the Ubuntu solutions. I am fairly proficient with Windows programs and even construct databases but I am a complete novice when it comes to command line instructions. Yes, I know I have been spoon fed!

I have been told that it is possible to install Server programs from the Desktop version and that they provide a GUI in most cases. Is that so? I have the desktop version running and up to date but I am unsure what to do next. Starting the Server ISO CD from Desktop seemed logical but when I did I was not sure if it was correct and backed out. I have also read a thread on this forum that suggests the use of Zimbra as a Mail Server, it sounded like my kind of solution so I think I would like to try that.

One last factor. I have an existing P2P network (2 Vista, 1 Mac Book and this Ub' desktop/server) running already which uses the Router for DNS. I suspect I am going to have to do things in a certain order if I am not going to go backwards and ruin the families email and surfing!

View 1 Replies View Related

Ubuntu :: Parts Of Screen Keep Freezing?

Jan 1, 2011

parts of my screen keep freezing and locking in place so that nothing new can be seen in that section, it happens when i click a menu or close a window, the part that freezes only goes away after i log out and then back in

View 2 Replies View Related

Ubuntu :: Only Parts Of The Driver Installed For Printer?

Jan 21, 2010

I'm using Epson TX110 printer at the moment, it contains both scanner and printer.

I've installed Epson TX109 driver on Ubuntu, and it prints fine.

The problem is, how do I get the scanner to work? In the previous Windows, there's a program that allows you to scan and edit files, can I do it here too?

View 2 Replies View Related

Ubuntu :: Split A Tar Archive Into Multiple Parts ?

Feb 11, 2010

Is there any way to split a tar archive into multiple parts?

View 1 Replies View Related

Ubuntu Servers :: Run-parts Does Not Run Scripts With A Period In The Name?

Sep 2, 2010

Ubuntu 10.04.1 LTS: It appears that run-parts does not run scripts with a period in the name. I had a script upg.sh which run-parts did not recognise; when I changed it to upg it did. This is surely a bug!

View 3 Replies View Related

Ubuntu :: Parts Of Windows Staying On Screen

Jan 11, 2011

So I have Ubuntu 10.10 64 bit, and I'm having strange problems with parts of windows staying up on screen after I close them. Check the attached files to see what I mean. I have Visual Effects turned off, and I've tried removing compiz altogether, but I still see this happen every once in a while.

View 5 Replies View Related

Ubuntu :: Rename Multiple Files With Only Parts Of The Original Name In The New Name?

Jan 26, 2010

Could someone help me find a way to rename a file to a different name containing parts of its old name?

For example:

Original file name: filename1.abc.xyz.some.other.stuff
Final file name: filename1.abc.xyz

The length of the file name is not constant. the abc.xyz is not constant but that format is (three numbers.three numbers) the .some.other.stuff is not constant and its what i want to get rid of

View 8 Replies View Related

Ubuntu :: Managed To Mess Up Evolution And Parts Of Gnome

Jan 31, 2011

Without a long tale; suffice it to say I had to do a clean install when I upgraded to 10.10 version. I have messed up evolution e-mail and my document viewer settings. I have what I need as far as by ISP settings but the Evolution folders; well that is messed up. What I am looking for if it is out there would be links {read directions to} tutorials for Evolution and Gnome. Everything comes into the unmatched folder on evolution so I think I need to find where to read up on 'Folder rules and permissions'. The document view just is not working so I know I need to read up on that; I think it is part of Gnome but I'm not positive.

View 3 Replies View Related

Ubuntu :: Parts Of Gnome Panels Disappear Randomly?

Mar 25, 2011

upgraded from Lucid to Maverick, panels lose pieces randomly then come back just as randomly. sometimes i have to right click on them other times they just come back after a few minutes on their own. enable desktop effects even though my driver is working fine. and if so is this a driver issue or an xorg issue or a kernel issue and how can i trouble shoot to find out and fix?

View 9 Replies View Related

Fedora :: Run-parts (crontabs) Not Working?

Nov 14, 2010

i've got the following packages installed on a fresh fc14 installation :

cronie-1.4.5-2.fc14.i686
cronie-anacron-1.4.5-2.fc14.i686
crontabs-1.11-1.20101109git.fc14.noarch

[code]....

View 1 Replies View Related

General :: Divide A Partition Into Two Parts?

Jul 10, 2009

I am having a big /home partition. I need to make it small and create one more partition from it which will be used for some other purpose. Can you tell me please how to do it?
I searched on google and found some methods which were very different from each other.I don't know which one is good, so, I thought I will ask you experts before doing anything.

View 9 Replies View Related

Programming :: Deleting Parts Of A String?

May 8, 2010

I'm trying to get my program to go through the string typed in by the user and strip it of EVERYTHING but the numbers. I can't place my finger on what I'm missing.

Code:
Code: #include<iostream>
#include<string>
using namespace std ;
int main()

[Code].....

View 2 Replies View Related

Ubuntu Multimedia :: Program To Turning Down Volume Certain Parts Of Song?

Feb 5, 2011

Take an mp3 and play it while turning down the volume certain parts of the song. Like, if i wanted to hear the guitar but not the vocals, Is there such a program out there?

View 2 Replies View Related

Ubuntu :: Unity In 11.04 Makes Hides Parts Of Windows At The Top Of The Screen

Apr 29, 2011

in unity borders dissappear and I cannot move the windows. how do I prevent this from happening?

View 4 Replies View Related

Debian Multimedia :: Parts Of Compiz Missing

Jul 2, 2010

I just got my new version of Debian, and under System>Preferences, near the top of the list, there should be a CompizConfig Settings Manager. But it's not there. I've tried apt-getting compiz, but it says I have the latest version out there. So I don't know what to do next.

View 8 Replies View Related

Fedora :: Thunderbird - Cut Parts Of Nested Quotes?

Jun 24, 2011

In Thunderbird, when composing a reply to an email that you have quoted, is there a way to cut only part of the quoted material? A typical situation is that you have exchanged a series of emails with someone and your reply has all the old emails from your and the otherperson quoted in it. The quotes are nested inside each other. Often I'd like to chop off all the very old messages and just leave the last few. But the Thunderbird editor seems to make it an all-or-nothing proposition. I can cut the whole quote, but can't highlight a few nested parts and cut them.

View 3 Replies View Related

OpenSUSE :: Unable The Top Parts And The Borders Of Windows?

Aug 4, 2011

Is there a way to enable the top parts and the borders of windows in openSUSE to be partially transparent? If so, I'd be grateful if someone told me how. Like in this image, the top part where it says "Mozilla Firefox" and the border of that window are all partially transparent (yes, I know that's Windows, lol). I'm running 11.4 KDE.[URL]..

View 4 Replies View Related

General :: Divide Shell Space Into Two Parts?

Sep 9, 2010

On my c shell, I use the alias p ls -lt; pwd to speed up things while switching directories and getting their listings.Things could be much easier if I could somehow divide the space I have on my console in two parts such that the prompt is in the lower part and the top part always shows the listing of the current directory (the directory which I am using in the second part).The upper part needs to be dynamic in the sense that whenever I switch directories using the prompt in the lower part, It should give the listing of the current directory in the upper half.

View 3 Replies View Related

Software :: Get Parts Of One Column And Prints All Columns?

Dec 13, 2010

I used awk and cut command but still I did not get the output I want...

I have 6 columns in the file, and the 6th column is too long. what I want is to print all columns form 1-5 and a part of 6th column.

Example: aa bb cc dd ee ff33ff

from the above example I want only to get the 1-5 columns and the numbers from 6th column so the output shoud be as:

aa bb cc dd ee 33

View 2 Replies View Related

Debian :: See The Whole Article Which Is In There On A Single Web-page Rather Than In Parts As Its Structured Now?

Dec 22, 2010

how I could see the whole article which is in there on a single web-page rather than in parts as its structured now? Maybe your google fu is better than me.

View 1 Replies View Related

Debian Installation :: Removing Useless Parts Of GNOME

Mar 3, 2010

I've been trying to purge my system from packages I don't normally use, like Epiphany and Evolution, and I think I have been somewhat successful but I'm still struggling with GNOME when trying to keep the gnome-applets package and the system forces the installation of the evolution-data-server-common and libedataserverui1.2-8 packages.What is the role of this packages? Are they hard-wired into GNOME and cannot be remove at all? Or is there a way to discard the packages and keep the one I want?

I'm not doing this for the sake disk space; I'm only trying to take control of my desktop to always have the most clean system possible.

View 14 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved