General :: Select All Text From A File With Nano?
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
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
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 23, 2009
i need a php script to format and display a select amount of text from a file or a cron job that'll do it (with grep etc) and out put to a file but whatever is easier i want to display all the banned ip's i have in my .htaccess file i have a lot of lines in my .htaccess file but i have a line that read like this:
Code:
RewriteCond %{REMOTE_ADDR} (123.123.123.123|123.123.123.123|123.123.123.123)$
the 3 test ip's are 123.123.123.123 and i want the "" stripping and the "|" removing and each ip to be on it's own line like this:
123.123.123.123
123.123.123.123
123.123.123.123
i'm not bothered if this is a php script that'll read the .htaccess file and display the output or a cron job that'll run every x mins and output it to a .txt file but i'd prefer a php script
View 14 Replies
View Related
Apr 4, 2011
control + v allows you to scroll page by page through a file. But I have a really long file and I would like to go to the end of it. what is keyboard command to go to end of file in nano?
View 3 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
Jan 2, 2011
How to select text in BASH terminal using the keyboard without mouse? I'm using Ubuntu 10.10
View 1 Replies
View Related
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
View Related
Apr 28, 2010
How could I replace text in one file with text from another file using sed?
The text in each of the files would be surrounded by a starting and ending delimiter or a starting tag, say like /* */ so to easily find them.
View 8 Replies
View Related
Jun 5, 2011
When I connect to my ubuntu machine at work via NX (shadowing the existing session), I cannot select any text using the shift key. Shift key itself works (I can use it to capitalize letters for instance). It is just that arrow keys, page down/up keys, home/end does not work with shift. Without shift, they work (so I can navigate, just cant select). I tried running xev to see the key events. In the local X11 session (XQuartz), keeping shift key pressed and pressing home prints the expected key press/release events. However, in the NX session, pressing shift prints "key pressed Shift_L" but then pressing home/end/page up/page down prints nothing.
I have no problems with any of the other keys within the remote session. Alt, for instance, works perfectly fine (I can open menus, do alt_tab). Ctrl also works. Ctrl - arrow keys switches my desktops. Editing code is like nightmare because I have to constantly select text using the mouse. I can possibly remap the selection keys to some other combination but that's the last resort.
View 2 Replies
View Related
Jan 25, 2010
I use KDE Dolphin to move pdf file to another folder. When I click on it Dolphin stop responding for a minute. Is there any option to disable or not to preview the file or else? I am annoyed when have to wait so long time just to select a file.
View 3 Replies
View Related
Jul 21, 2010
I think it started after the last Firefox update - I can't select text in forms on any page - not even here, while I'm writing this. When I double click, the selection appears for a fraction of a second, and vanishes instantly. Neither can I select text by dragging, the same happens. I can still select everything with ctrl+A, but I can't select single words or sentences. It's driving me nuts. I've actually switched to Chrome because of this, but I'm missing a lot of Firefox's functionality there, so I'd rather stay with Mozilla.
View 5 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
Nov 25, 2009
I have a file generated in every event occurred. In this file i have a entries like bellow
<without blank line after Summary>
Summary: Adapter at hardware path 0/6/1/0 :Received an interrupt indicating that a
primitive was transmitted
and sometimes like bellow
<with blank line after Summary>
Summary: Adapter at hardware path 0/6/1/0 :Received an interrupt indicating that a primitive was transmitted What I need is to extract the Summary from the file. I have the following awk script. But it only works if there is no blank line after Summary.
cat server.event.txt|awk '/^Sum/,/^$/'
But I need up to second blank lines after Summary.
View 8 Replies
View Related
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
Feb 6, 2011
im trying to output a list of running processes via a shell script. At the moment i got this which outputs the processes to a text file called out.
echo $(ps aux) >>out
The problem is though, the processes are all just one big block of text which makes it hard to read. Does anyone know how to sort the output to a text file so that it prints to the text file at 1 process per line? I know its probably simple but im very new to linux.
View 5 Replies
View Related
Apr 5, 2010
How do you save the GNU nano 2.0.7 sources.list file after you have edited it?
View 5 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
Aug 23, 2011
I need to be able to convert HTML email messages saved as text files (.eml or .msg) to PDF documents, one PDF per email, retaining formatting and images.
Are there any Linux tools that will allow me to do this from the command line (so it can be scripted)?
View 1 Replies
View Related
Sep 7, 2010
how to verify if the file is binary or text without to open the file
View 2 Replies
View Related
Jun 26, 2011
This is for educational purpose. In fact it is my lab tutorial for a subject.I want to capture the users password when he changes his password. Both new and old.This is the script i have come up with:
Code:
#!/bin/bash
echo "Changing password for user $USER."
[code]...
View 5 Replies
View Related
Mar 8, 2010
i'm trying to convert a html file into a text file when i simply run "html2text <filename>" the output displayed is the way we want but when i redirect the same using "-o" or ">>" the file is having extra characters in it. i even tried -ascii,but no much use.
View 4 Replies
View Related
Sep 19, 2009
favor and let me know how can I copy some text in one file and paste it to another file ,when both of the files are being opened by vi text editor ?
View 7 Replies
View Related
Dec 7, 2009
I have an application for loading data into MySQL table using php, through excel-Reader. php is set up on the localhost and the web-page is available from: [url]
The code of xlr2.php:
When I open the page, I get the message to choose a file with the file-dialog box and the notice as:
Notice: Undefined index: action in /var/www/html/xlr/xlr2.php on line 10
Default Action:
Choose a file to Load into MySQL:
Why so? I am selecting file from ("/home/lx/myDocuments/tech/excel/smslist.xls"), but the warning says that [failed to open stream: No such file or directory in /var/www/html/xlr/xlr2.php on line 33]. A different directory than I selected.
View 1 Replies
View Related
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
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
Feb 16, 2010
is it possible to configure nano to have line breaks on long lines instead of showing a $?
View 2 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
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
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