Ubuntu :: Paste Multiple Lines Of Text Into Terminal / Nano?
Jan 24, 2010
I'm using GNOME terminal to SSH into a Debian server and would really like a way to paste multiple lines of text into configuration files (using the nano text editor if possible).
So far whatever I try dumps all the text onto a single line meaning I have to manually go through inserting line feeds which is tedious and can introduce errors.
Is there a way to paste text with line feeds intact? Rather than copying each line individually?
View 2 Replies
ADVERTISEMENT
Mar 27, 2011
I am trying to copy paste from a file in Nano to a text editor outside of nano on my machine (I am running windows using Nano through Putty) and I cannot figure out how to do it. I can select with mouse support enabled everything that I want to in Nano and I can cut it, but when I try to copy into my other text editor, it does not work.
View 4 Replies
View Related
Mar 28, 2010
What is the best way to copy and paste some text among text documents in Linux terminal environment? Suppose I have 2 documents, A and B, and I want to copy some part of A to B. What is the way to achieve this?
View 5 Replies
View Related
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
Jun 17, 2009
I have a list of words that I want to grep in many files to see which ones have it and which ones dont. in the text file I have all the words listed line by line, ex: list.txt:
check
try this
word1
word2
open space
list ..
I want to grep each line one by one. like I want it to
grep "check" *.log
grep "try this" *.log
grep "word1" *.log .. etc how can I do this?
and maybe write the output to a file.
View 5 Replies
View Related
Mar 11, 2011
For example, I have a text file with data which lists numerical values from two separate individuals
Code:
Person A
100
[code]...
View 1 Replies
View Related
Mar 11, 2011
For example, I have a text file with data which lists numerical values from two separate individuals
Code:
Person A
100
200
300
400
500
600
700
800
900
1000
1100
1200
Person B
1200
1100
1000
900
800
700
600
500
400
300
200
100
How would I go about reading the values for each Person, then being able to perform mathematical equations for each Person (finding the sum for example)?
View 13 Replies
View Related
Apr 27, 2010
I want to (from the command line) be able to counte lines in a bunch of files of a specific type in a folder and all its sub-folders. How would I do this?
View 1 Replies
View Related
Nov 22, 2009
I noticed a problem when editing files with nano. This problem happens if the terminal window that I run nano from is not wide enough to show the full line.By way of example below is part of my grub.conf
Code:
title Fedora (2.6.31.5-127.fc12.x86_64)
root (hd0,13)
kernel /boot/vmlinuz-2.6.31.5-127.fc12.x86_64 ro root=UUID=47e4c448-8087-4ec6-a67b-814845a598db noiswmd LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us vga=0x370 nouveau.modeset=0
initrd /boot/initramfs-2.6.31.5-127.fc12.x86_64.img
If we assume the code box above is the size of the terminal window, if I edit anything past what will show as the $ sign in nano, it will automatically add a carriage return. So if we take the kernel line above, if say the screen shows at the end root=UUID=$, if say I were then to add 00 the end of the UUID, it will move everything starting from root=UUID= to a new line. Is there some wrap feature that is enable in Fedora for nano?
View 7 Replies
View Related
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
Jan 10, 2011
since some days I have a strange problem with KMail (1.13.5) in KDE4.5.5. When I try to copy some text from an email and past it to any other program (e.g. Openoffice), not only the marked text will be pasted, but a kind of HTML code including the text.
This bug is not OpenSuse specific. I found the same bug in a Fedora mailing list (of course, whithout an answer): Strange Copy/Paste behavior in KMail 1.13.5/Kontact 4.4.8
View 6 Replies
View Related
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
Jan 17, 2010
I've looked at tutorials but can't find out how to save a cron job in nano text editor.
I open crontab with
Quote:
crontab -e
The cron job I want to save is
Quote:
wget --output-document=dwr_$(date +\%Y\%m\%d\%H\%M).gif http://imd.gov.in/section/dwr/img/caz_chn.gif
So now I've got this in nano text editor
Quote:
# m h dom mon dow command
wget --output-document=dwr_$(date +\%Y\%m\%d\%H\%M).gif http://imd.gov.in/section/dwr/img/caz_chn.gif
What exactly do I do now to save the cron job? File doesn't have a Save As option,;just Open Terminal, Open Tab and New Profile.
View 9 Replies
View Related
Oct 6, 2010
I open a file in Ubuntu nano editor from the comand line and I want to copy all the contents of the file so I can paste it in an another application outside the shell. So far I can only copy using shift on the screen that is visible but not on all content.
View 4 Replies
View Related
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
Jul 23, 2009
i have been trying to find the nano or pine text editor for suse 10 64bit architecture but unable to find it and use it. i am not interested in vi editor. i have been using nano for fedora/RHEL for a long time. in finding rpm of nano/pico for suse 64bit architecture.
View 3 Replies
View Related
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
Aug 20, 2011
I often use the rpl command to make changes to multiple html files at once. For example:
rpl -R '<br />' '<br /><br />' mydirectory However, I haven't been able to figure out how to change multiple lines. For example, let's say I want to change all occurrences of :
<br />
<br />
to:
<br />
I've tried
rpl -R '<br />
<br />' '<br />' mydirectory
but that didn't work. how to do this with rpl or some other way?
View 9 Replies
View Related
Dec 16, 2010
How to search multiple words in multiple lines, inside a directory including sub-directory? Pls. give easy example. I want to search the files (in /xx folder and all subfolders) that have header.h included and used x() function. I tried $grep -r "header.h" | grep -r "x(" /Folder/subfolder/ > search.log
View 7 Replies
View Related
May 5, 2011
Ubuntu 11.04Adobe Reader 9I can't highlight/select text and copy and paste it to another file. It worked for me on previous version. Please advise how to make it.After installing OpenOffice pdf extension on LibreWrite I can import .pdf but still I can't find the select/copy/paste functions.
View 9 Replies
View Related
Feb 11, 2010
How do you paste text copied from some outside vim source (like a web browser)? That's the one thing that bugs me. I'm trying to more proficient w/ vim, but when I read some instructions on the web that say copy and paste this text into yadayda.conf, I can do that w/ gedit, but can't figure it out in vim.
View 2 Replies
View Related
Jul 14, 2010
I'm running Lucid, and whenever I run a program in gnome-terminal that captures the mouse (dvtm, elinks, mc) I cannot highlight any text, which prevents me from copying any text from the terminal.
View 2 Replies
View Related
Jan 3, 2011
I'm looking for software which will allow me to record a screen-cast of a terminal based application, recording keystrokes, timing of keystrokes, and audio. I see a couple of advantages to this approach over video capture: Display independence: the viewer can display text in any resolution/style they want, not limited to the resolution of the recorded video. Ability to copy and paste text from the screencast.
DSABE? (Does Such A Beast Exist?)
View 6 Replies
View Related
Mar 9, 2010
know what can be done to enable the "select text to copy" and "shift+insert to paste" features in linux.
View 2 Replies
View Related
Jan 28, 2009
I have a text file called file1.txt containing many lines eg.
line1
line2
line3
line4
line5
line6
Then i have another text file called file2.txt contains
3
5
6
Is there a command to remove the lines in file1.txt based on the keywords in file2.txt? note: It should remove line3,line5,line6 based on 3,5,6
View 10 Replies
View Related
Jun 12, 2010
I'm using KeePass 2.10 (with mono) and I am able to copy a password from KeePass (Ctrl+C) and paste into ALL applications except for the GNOME Terminal. When I copy something, I am not able to paste into the terminal, and find the Paste menu item in the edit menu disabled. However, if I paste into another application and cut from there, I can paste into the terminal.
(if it is a bug) which project I should report a bug to (gnome or KeePass?).
View 5 Replies
View Related
Jul 15, 2010
I often have issues starting my window manager--xfce. My computer misbehaves in one of 3 ways, one of which is to fail to open X, but generate several screens of info. I want to paste that info to this site, but since I'm in the shell, not the terminal (please correct my vocabulary if it's wrong here), I don't know how to copy and paste the output, since right-clicking doesn't give me a menu. Even if I could copy I'm not sure the information would be accessible in X. Are there any other options?
View 13 Replies
View Related
Feb 22, 2010
How do I get rid of the yellow lines with text that pops up everytime I'm holding the mouse over something?
I find them to be VERY annoying.
View 9 Replies
View Related
May 25, 2011
In a terminal in OSX I can pipe output to pbcopy and then go into a web browser and paste it. I tried this in Linux with xcopy but when I switch to the browser it just overwrites the clipboard with with whatever was in it the last time the browser was used. What works like pbcopy in Linux?
View 1 Replies
View Related
Oct 27, 2010
I run ubuntu 10.10With moovida 1.0.9(elisa)I get this red lines over all text in moovida.The below is not my screenshot but exactely same problem, exept i have red lines
View 1 Replies
View Related