General :: Single Key To Increment Number In Emacs
Jul 19, 2010
What is the procedure to increment the number under the cursor ? 12 Which key i have to press to make this 12 to become 13. I know the method of keeping the number in register and incrementing, But am looking for a single key to increment the number under cursor.
View 2 Replies
ADVERTISEMENT
Sep 5, 2010
How to number of connections for a single ip on port 80 to CentOS 5.5 with iptables? connlimit did not work on CentOS and nginx does not provide a module for that
View 4 Replies
View Related
Jan 22, 2010
I got some sourcecode written with c++. I found it did not supported by the newer version of gcc. So I wanted to install an older version. But it always comes up with the question like "./read-rtl.c:653: error: lvalue required as increment operand", what should I do now?
View 6 Replies
View Related
Mar 9, 2011
when we type mpd & to bring up ring on a single nodethe output is a random number,like this:>>mpd &>>[1] 5450anybody knows what is this resulting number?ps: i dont think its a port number because when i type >>mpd -eits prints out the port number mpd takes
View 1 Replies
View Related
May 17, 2010
I was using the following code in my .emacs file to start emacs maximized:
Quote:
(defun toggle-fullscreen ()
(interactive)
(x-send-client-message nil 0 nil "_NET_WM_STATE" 32
'(2 "_NET_WM_STATE_MAXIMIZED_VERT" 0))
(x-send-client-message nil 0 nil "_NET_WM_STATE" 32
[Code]...
View 2 Replies
View Related
May 21, 2011
Why does unix ps -l whows one number in column "PRI" but in same time ps -o pri shows another number? cpu and nice are zero for those processes
View 1 Replies
View Related
Aug 23, 2010
So I have a field in my table called "id" and this is the primary key for the table which is also configured to 'auto_increment' as show below:
Code:
mysql> describe users;
+------------+-------------+------+-----+---------+----------------+
[code]....
View 6 Replies
View Related
Jan 22, 2010
I tried searching for this, but everything, for pages and pages, shows me the `if -e filename`. That's not what I'm looking for, at least I don't think I am. I am working on a script that will search a directory for certain file names and increment a variable by one for each result returned. Each time I search this file name, the file found will also be deleted. I would like this script to be run about every 6 hours or so. We'll call this script A.
I also have a script that runs daily that I would like to tack the count to the end of the text file that it outputs. We'll call this script B. I'm confident that I would want to store the count from script A to a text file to be called in by script B, but don't know how to do so. Here's what I have so far:
Code:
#!/bin/bash
SD=0#Resetting variable count for testing purposes, removed this before release #Below, Smith is used for testing purposes as this is the newest backup with instances found
find /cust_backups/Smith -name *Modified Script* && SD=$[SD+1] ;
find /cust_backups/Smith -name *Bitdefender Online Scanner* && SD=$[SD+1] ;
find /cust_backups/Smith -name *ccleaner.exe* && SD=$[SD+1] ;
find /cust_backups/Smith -name *HJT.exe* && SD=$[SD+1] ;
[Code]...
Now, for those of you that know what you're doing, you're already shaking your head because you know that, no matter what, at the end of the script $SD will end up being 14. The problem is I don't know how to tell bash that if there is a result returned, increment by one. If there is no result returned, move to the next command. Beyond that, I'll need to know how to call the text of a file in to a variable so I can plug it in to the text output of script B.
View 1 Replies
View Related
Jan 13, 2010
Is there anyway in Linux that can achieve atomic increment/decrement for an integer variable without being interrupted? It means that the thread should not chance for other thread to run until theincrement/decrement is completed.
View 11 Replies
View Related
Apr 25, 2010
Can one of you point me towards a comprehensive print function tutorial in perl? I was under the impression that everything within quotes will get interpolated - but I am running into exceptions where it is not desirable to run some varaibles under quotes.
ordinal.pl
1 #!/usr/bin/perl
2 $idx = 1;
3 foreach $letter (a..z) {
4 print "Letter #",$idx++," is: $letter
";
5 #print "Letter # $idx++ is: $letter
[Code]...
View 9 Replies
View Related
May 11, 2011
Is there a way I can change the volume increase/decrees increments
View 5 Replies
View Related
Jul 17, 2011
How do I get this loop to stop on each increment? This script does work but I would like it to stop at each increment, remember what the value of $n is, then continue until it gets to 7. I have worked so hard on this. My brain is hurting now.
[Code]...
View 2 Replies
View Related
Feb 2, 2011
I work in a simulations environment. I'm trying to write a bash script that will read fields from a .csv file into an array, the first field being an identifiyng number and the second field being a corresponding url. There are about 1600 of these number/url combinations in the .csv file that i'm reading from. Once that is done i want it to parse a text file and match the number, when it has a match i want it to enter the corresponding url into a particular line in the text file. The script I have written (with the help of the people on this forum a while back) does this well, but now I have a lot more data to parse. I think the script itself is explanatory enough to see what i'm doing. What i would like to do is cut it down to one while loop nested inside another loop so that I don't have 1600 or so elif statements. I can't figure out how to increment the output of the array. for instance, the first cycle would find the number that matches ${record1[2]} and input the url stored in ${record1[3]}. the next cycle would match ${record1[4]} and input the url in ${record1[5]}, and so on, does that make sense? The code is below and a sample .csv and text file are attached.
[Code]...
View 14 Replies
View Related
May 31, 2011
I'm running cygwin 1.7.7 on a win2k3R2 Standard edition server. I have a RHEL 4.7 linux host I'm scp'ing files from to the windows system using a simple cygwin scp command from what appears to be OpenSSH_5.5p1 on the cygwin host. When I run the simple scp command on the cygwin host, the counters initially display and increment/decrement, albeit what is at a much slower rate than is actually taking place. After the percent complete reaches a little less than 10%, all the counters from the cygwin console window cease to increment/decrement.
However, when I cd to the directory on the cygwin host where the file is being scp'ed to, the file is continuing to be transferred and a much higher rate than the counters seem to show. Finally, when the file transfer is complete by directly seeing the byte count as equal between the hosts, the scp counters will suddenly jump to 100% complete. This is not the case with my linux to linux scp's. The counters increment/decrement as expected and transfers are about what I'd expect over the same network infrastructure. This appears to be a cygwin ssh/scp implementation issue. I've posited this question to cygwin with no response as yet. The only reference I've been able to find on the 'net refers to buffering causing file transfers to appear to complete later than the transfer really does..........
View 3 Replies
View Related
Jul 29, 2011
I tried Google search and reading man page options for emacs but couldn't find... If I run emacs in GUI, it starts GUI for emacs. I want to run it in CLI in rxvt. How do I do it?
View 1 Replies
View Related
Mar 11, 2011
I am currently interested in switching from vim to emacs.One of the more compelling reasons for this is the smooth integration with a unix environment. The most experienced emacs users I have seen have a bash prompt at the bottom of their window, with stdout going to a buffer right above it. They then interact with the output of programs such as grep in interesting ways.I am on Ubuntu 10.04 and the default emacs environment does not seem to do much for me in the way of integration. For example, in the M-x shell mode, output from basic commands like ls produce lots of strange characters and hitting the up arrow does not go to previous commands.
View 4 Replies
View Related
Aug 20, 2010
I am doing some project work and for that using the server at college with ssh connection. Every time I try to open emacs on the terminal after connecting, it opens emacs in the terminal itself i.e. not its own window. On my laptop on which ubuntu is installed, emacs always opens up in its own window an thats how I am used to it. There are several problems when it opens in the terminal like when I try to use commands such as M-V, actually terminal's view menu opens up, its very frustrating. Also I am pretty sure that the college server runs on red hat and has X installed on it. So what do I need to do to get my emacs window back.
View 4 Replies
View Related
May 30, 2011
I was reading how you could browse the net with Emacs but then it was stated that it was done with another application like Firefox so this would imply that Emacs is an interpreter would it not? What is Emacs capable of? Is it an interpreter that runs a text editor?
View 11 Replies
View Related
Mar 16, 2011
I'm using emacs to write documents in latex. But, I would like to set the spell checker to use english or portuguese language. I've installed the ispell package for english and for portuguese. Now, I would like to set the emacs to use the english or the portuguese language. I can I do that?
View 2 Replies
View Related
Nov 8, 2010
The facilities offered by any text editor to look for a string are highly superior to those offered by search engines such as that of Google or the one used by LQ>Search. To only speak of the most one elementary that comes to my mind, you can reach 'john smith' by searching with the string 'hn smi' in any decente editor, but I know of no search engine that offers this feature.
On the other hand, I have always heard of the power of Vim and Emacs. For instance, they say there is no thing Emacs cannot do. Lets advocate to the job of adding Google searches the ability to find 'john smith' by using 'hn smi' as the matching pattern. Or to add regular expression capabilities. Could I use Vim/Emacs to solve this problem?
A little light into the meaning of my words: It would be Vim/Emacs the one in charge of making the Internet connection, connecting to Google and send appropriate commands go Google. Then, to look for my string, I would be directly using Vim/Emacs which, upon receiving my commands, would send the appropriate ones to Google and return control to me.
View 2 Replies
View Related
Apr 27, 2011
I want to copy 100 rows from the openoffice calc file to a txt file opened in emacs at console mode, and I can't do it correctly.
I've open an openoffice cal file, and I select all rows and do copy. I've a txt file opened in emacs console. When I do paste, it will only be pasted 25 rows, and not all.
View 1 Replies
View Related
Oct 8, 2010
I don't know what the problem is. I ssh on to a linux machine and
setenv DISPLAY mylocalhostname:0
emacs temp.temp
Emacs: Cannot connect to X server mylocalhostname:0.
Check the DISPLAY environment variable or use `-d'.
Also use the 'xhost' program to verify that it is set to permit connections from your machine.
View 5 Replies
View Related
Apr 19, 2010
If i type '{' and hit Enter emacs will automatically put '}'. How can i do this?
View 3 Replies
View Related
Apr 20, 2010
How to enable autoindent in Emacs?
View 6 Replies
View Related
Jun 8, 2011
I want to enable line numbering in emacs - as is vi, which we use exclusively at work (my boss removed emacs from all the machines in the department.)
In vi you just use :set nu - the is a site that explains that this is possible [URL]
It describes a linenum.el - and I can see the program, but don't understand how to install it.
View 2 Replies
View Related
Apr 20, 2010
Is it possible to get vim insert mode in Emacs?
View 2 Replies
View Related
Apr 4, 2010
I have installed emacs23 on Linux Mint 8. I would like to hide the toolbar, and I can do it with Options > Show/Hide > Tool-bar. But the Tool-bar comes back next time I start emacs. How can I hide it persistently?
View 2 Replies
View Related
Apr 18, 2010
How can I set up emacs to automatically git commit every time I save an open file or periodically?
View 4 Replies
View Related
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
Aug 4, 2010
Uzbl uses hjkl for moving around, much like vim does. I was wondering if there was a browser (text based like links, or needing X like uzbl) which would be easy for someone used to emacs key bindings?Or if there is an emacs mode for having a buffer behave like a Links browser, but with emacs keybindings to move around...[For linux systems, please ideally something available through AUR or a debian package or both]
View 3 Replies
View Related