Red Hat :: Copying Selected Text Using Vi?

Nov 20, 2010

how can i copy and paste selected text from one file to other using vi in RHEL5.i googled and found some methods,like just use m to mark the start, with an arbitrary buffer name (so you might type mx). Move your cursor down to where you want to stop copying, and type y'x (or d'x if you're cutting and pasting). Then move the cursor to the point where you want to paste, and type p. when i do this it pastes the entire line of which a part is selected so in essence it is working as yy. when i open a new file using vi and try to paste it says "nothing in register".what i exactly want to do is copy only the selected text as shown above in red and paste it in a new file.

View 7 Replies


ADVERTISEMENT

Fedora :: Selected Text Disappears When Lost Focus?

Aug 12, 2010

I have just installed F13 and encountered a very annoying problem with KWrite/Kate. Every time I select the text in KWrite/Kate, then switch to another windows for pasting, the text in KWrite/Kate disappears. I cannot even undo to recover the lost text. I have to close the document without saving, then reopen it.

View 2 Replies View Related

Fedora :: Text String Come Up On Screen When Hibernate Selected

Feb 1, 2011

When I press the power button and select 'Hibernate' I get a text string come up on the screen. The last characters are "fail: -6". There is more to it but it's there and gone so quickly I haven't written the rest of it down yet. What this might be?

View 3 Replies View Related

Ubuntu :: OpenOffice Highlighting-highlights Whole Paragraph Not Selected Text?

May 22, 2011

I have Open Office 3.2 with Ubuntu 10.04.When I select text-- a word, a few words-- and then click on highlight on the toolbar, it highlights the whole paragraph, rather than just the selected text. This is a new problem for me, before it seemed to be working fine.
I searched online but haven't been able to find anything about this problem. I had tried to install the sun version of Open Office a few months ago, but wasn't able to in the end: [URL] I saw that OpenOffice 3.3 is out, but I would rather not upgrade until Ubuntu puts out the upgrade.

View 9 Replies View Related

Software :: Change Highlight Colour Of Selected Text Under Xfce?

Jan 31, 2010

Is it possible to change the highlight colour of selected text when OOo Writer 3.1.1 is running under Xfce 4.6.1?

After using "Find and Replace" to search for and select text, the default pale blue used since 3.1 does not stand out clearly against a white background. This is particularly problematic for short search strings and for search targets found in the Table of Contents (blue text on grey background).

According to Robert Tucker in the OOo Forum thread "On Gnome on Fedora the background of selected text can definitely be changed at System>Preferences>Appearance, Theme Tab, Customize button, Selected items button". I cannot find any equivalent in Xfce; can it be done?

View 4 Replies View Related

Software :: Distro With TTS Support - Keyboard Shortcut Reads Selected Text Aloud

Sep 17, 2010

Which linux distros are set up to allow me to type a keyboard shortcut to read selected text aloud? Or allows TTS to read from the clipboard, as long as it watches the clipboard and starts to read when clipboard is updated.

View 1 Replies View Related

General :: Make Ubuntu's Terminal Program Automatically Copy To Clipboard Selected Text / Paste

Jul 6, 2011

i'm used to using putty on a window's machine.With putty whatever you select is automatically on the clipboard without having to right click and select copy.And right click just pastes.

View 1 Replies View Related

General :: Copying Text From Emacs Into Other Programs?

Jul 19, 2010

I want to copy part of a file I'm writing in emacs into, say a blog post or something like that. Putting the text into the kill ring doesn't allow me to paste it into another program. As it stands, I have to open the same file in gedit and copy/paste from there. Is there an easier way?

[Weirdly, it works fine the other way round: copying text off a SU answer, for example, I can paste that into emacs with C-y just fine...]

View 2 Replies View Related

Ubuntu :: Can't Select Text In Eterm For Copying/pasting?

Mar 3, 2010

I'm running Eterm, and Kubuntu (Karmic.) Anyway, I can't select text at all in the Eterm window. I can highlight the text with the mouse, but as soon as a let go of the button, the selection goes away. I mean, the text is still there, its just not highlighted anymore. As a result, I can't copy/paste that text. Have to run a different terminal program (like konsole, or xterm.)

View 1 Replies View Related

General :: Script To Delete Selected BackupFiles And Restore Selected Backup File?

Jul 18, 2010

i am new to linux and i nid a bash script to Delete selected backup files and also restore selected backup file to a user define directory.

View 3 Replies View Related

Networking :: Granting Selected User Access To Selected Network Interface?

Oct 3, 2009

I have a multi-user machine with several network interfaces (Ethernet, if that matters). I wish to grant selected users, or groups, full access to selected network interfaces (including ability to adjust IP address and to bind to low ports, but *only* on those interfaces). It is important to me that an user/group does not such full control over other interfaces. Granting partial, or temporary, root permissions is OK; it's a friendly environment.How do I go about it?System: Linux 2.6.recent; usual Debian setup (can be adjusted if needed).

View 2 Replies View Related

Ubuntu :: Scripting - Copying Files Listed In A Text File ?

Apr 15, 2010

I've got a text file with a list of .gz files, these .gz files are in various sub directories of one parent directory and I've hacked this little script together to copy them from their current location to a new one and spit out any it can't find to "/home/user/not_found" but for the life of me can't get it to run properly!

The shell script as it currently looks:

Code:

View 4 Replies View Related

General :: Cp Adds Exclamation Points When Copying Very Large Text Files?

Jul 13, 2009

For my research I have some very large files that are basically millions of lines of ten columns of numbers. These files can be up to 5 GB in size. Recently I noticed that when I made a copy of one of my files, some exclamation points appeared in it where there should not be any: in front of random numbers throughout the file. Making another copy of the file would result in exclamation points in front of different numbers in different parts of the file. Doing this many times has given me up to four exclamation points in different parts of the file. Sometimes the file copies just fine without producing any extraneous exclamation points.Additionally, I have occasionally seen a "^K" where there should be a newline (the data that should have been on the next line was instead on the previous line with a ^K in front of it) in copies that I have made of my files. I don't know if this is related or not.

View 7 Replies View Related

Ubuntu :: "Background & Text" Colors For Windows, Input Boxes, Selected Items?

Mar 6, 2010

I was recently using Xubuntu for awhile, and I really enjoyed the default color scheme it had, I was wondering if anyone had the colors in HTML that Xubuntu uses?

I'm looking for the "Background & Text" colors for Windows, Input Boxes, Selected Items, & Tooltips and then I was just going to input them under "Customize Themes"

View 1 Replies View Related

Server :: Scp Truncate Text File Busy - Copying File Is Not A Running Binary?

Jun 14, 2010

I am having problems with scp during a backup operationI added a ps -ef before and after the scp operation used during the backup.The backup is a script to backup a Zimbra ServerI am including the code segment that I am having problems

Code:
# DRCP Section. To scp newly created archives to a remote system
if [ "$DRCP" = "yes" ]

[code]...

View 3 Replies View Related

General :: Assign A Particular Wan To Selected IPs?

Dec 5, 2010

I have 2 wans . I want to assign a particular wan to selected IPs.Will I achieve it by iptables or ?

View 1 Replies View Related

Fedora :: F14 Gnome Text/plain Versus Text/html File Type

Apr 2, 2011

I put a text file on my desktop and added a couple lines of text with gedit. File type shows text/plain. Double-click opens the file in gedit which is what I want. I'm using the file to temporarily hold some snips of code that I copy from file to file, but when I copy some html into the file and save it, now file properties show it's text/html and a double-click opens the file in firefox, which isn't what I want. Is there some way to keep the file type from changing itself?

View 6 Replies View Related

Fedora :: Copy Text From An Application In The Host Machine And Paste The Text Into A Different App?

Feb 10, 2011

I'm running and XP virtual machine using KVM / QEMU. THere are time when I need to copy text from an application in the Fedora host machine and paste the text into a different app in the XP guest machine. I was able to do this using Vitualbox on an earlier version of Fedora.

View 1 Replies View Related

Programming :: Bash Text To Variable Accessing Individual Text Lines?

May 2, 2010

i am on processing text tasks And i found that if you assign a text to a variable is chomp'ed automatically the newline

Code:

variable=$(cat file.txt)

The problem is i can only access the items/lines using:

Code:

for line in $variable
do
echo $line
# Other commands
done

how do i convert this to an indexed array. More importantly, how do i get access to individual $line[0], ..., $line[n] Another thing, if the file.txt, has lines with spaces it is a mess using the for...in..., but echoing prints line by line...o_0

View 11 Replies View Related

Software :: Use Sed To Include A Text File In The Beginning Of Other Text Files Inside A Folder And Its Subfolders?

Jun 1, 2010

Can I use sed to include a text file in the beginning of other text files inside a folder and its subfolders? So it should be recursive.

View 4 Replies View Related

Debian :: Take A Screenshot Of A Selected Area?

Feb 20, 2011

I use Debian Squeeze and I would like to ask if someone knows a program to take a screenshot of a selected area of my screen. I already know imageshack and scrot, but they don't do what I need because I need to know previously coordinates and the dimension of the selected area. I need a program that I could select a rectangle with my mouse to take a screenshot of that part.I don't know if I'm clear what I'm trying to say is that I need something like this google-chrome plugin[URL]

View 4 Replies View Related

Fedora :: 15 Can't Mount Selected Partition

Jun 3, 2011

I installed 15. I have reformatted the 500mb /boot partition, didn't touch the swap partition, formatted the / partition. Trying to boot, I receive a "cannot mount selected partition". This is a fresh install. I rebooted into the Live CD to do some FS Checks, and got kernal crash, black screen, lots of kernal output while in live CD trying to do FS checks. The only line that looks like it holds any info that may be relevant is the last of the lines that says: Kernal Panic - Not Syncing: Fatal exception interupt PID 1161, comm:irq/21-0000:01: tainted: g d (kernal version) Panic+0x91/0x19c

I did an FS check on /boot and it came back fine. I did an FS check on /, and it came back fine. But then I told it to do an FS check on swap and got the warning that swap is currently mounted, and that if I proceed, it could cause serious system damage, and asked me if I wanted to proceed. I chose no, and it crashed.

---------- Post added at 02:59 AM ---------- Previous post was at 02:42 AM ----------

wait, i think i found the problem. It APPARENTLY installed /boot as ext4. Reinstalling now. Will update momentarily...

---------- Post added at 03:06 AM ---------- Previous post was at 02:59 AM ----------

Nope, i explicity made sure i installed ext3 on boot this time, and it still gives the same boot error, AND i KEEP getting that kernel crash.

View 1 Replies View Related

Ubuntu :: Get Selected File Script?

Mar 3, 2011

I am trying to create an option in the right click menu to append the currently selected file/folder to a text file that a script will read later and delete the files in the list. Is there a way I can do that? I know how to write a script to read the text file and delete the list but I don't know how/if you can get the currently selected file with a script. Is that possible?

View 1 Replies View Related

General :: How To Delete Selected Files?

Feb 10, 2010

Assumed I have the following files:

test12.txt
test13.txt
test14.txt
test15.txt

I want to delete the first 3 files with one command. How to do that?

View 8 Replies View Related

Ubuntu :: Text Editor To Preserve Indentations On Wrapped Text?

Mar 21, 2010

I'm looking for a light-weight text editor for general-purpose composition that can preserve indentations on wrapped lines.

View 3 Replies View Related

Ubuntu :: Text Editor That Will Let Color Or Highlight Text On Demand?

May 11, 2010

Is there a simple text editor for Linux that will let you color or highlight text on demand? Something like gedit or leafpad with color? I know I can probably do this with vi or emacs, but I'm looking for something simple, need not be feature rich.

View 4 Replies View Related

Programming :: Adding Lines Of Text To Beginning Of Text File

Jan 19, 2009

I need to insert 3-4 lines of text to the beginning of a text file. The file is a largish MYSQL dump, the result of a backup shell script. This shell script should insert the required text.I've wrestled with sed, but lost.

View 2 Replies View Related

Programming :: Delete Line Of Text From Text File Via Shell?

Jan 13, 2010

I have to delete a certain line of text from the a textfile via ubuntu's shell scripting.I have done research, and it seems that most people advocate the usage of sed /d option. sed makes does not edit the text file. Hence, most options I discovered involved the use of a temporary variable/textfile and then overwriting the old file with the temporary new file. Is there anyway whereby I can bypass the use of temporary storage containers? I hope there is any magical combination of commands to edit the file directly.

View 3 Replies View Related

Programming :: Exporting Glade Text View To Text File?

Jan 8, 2011

I want to display something in my text view widget in glade using c code. that's all right.
now I need to attach a save button beneath the text view.so that on click the text view content should save as a txt file..

View 8 Replies View Related

Programming :: Formatting Fields And Text Being Displayed From Text File?

Feb 9, 2011

I want to display the contents of a particular log file (simple text file, I mean in Linux). But there is a problem: The contents need to be organized in a fixed format. Have a look at this log file:

sampleLog.txt

Code:

User Name: XYZ
Reported Problems Description: Blah! Blah! Blah! Blah!Blah! Blah!Blah! Blah!Blah! Blah!Blah! Blah!Blah! Blah!Blah! Blah!Blah! Blah!Blah! Blah!Blah! Blah!Blah! Blah!Blah!

[code]....

So, while displaying the contents of above file on a web page, I want to format the field names found in the log file: User Name:, Reported Problems Description:, and Remarks:. These fields may contain a variable length of text and no specific line number is assumed for them to appear on.

The desired output should look like this:

User Name: XYZ
Reported Problems Description: Blah! Blah! Blah! Blah!Blah! Blah!Blah! Blah!Blah! Blah!Blah! Blah!Blah! Blah!Blah! Blah!Blah! Blah!Blah! Blah!Blah! Blah!Blah! Blah!Blah!

[code]....

Well, what I am trying to do may sound wierd to some of you. The filed "Reported Problems Description:" can possible contain text which embeds colon (.

View 15 Replies View Related







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