Simon
  • Member for 8 years, 11 months
  • Last seen more than 4 years ago
  • New Zealand
4 answers
4 votes
2k views
What are the advantages, if any of grep over egrep
Accepted answer
16 votes

Technical answer: traditionally, egrep used a deterministic finite automaton (DFA) internally while grep used a non-deterministic finite automaton (NFA). These days, GNU grep and egrep take a hybrid ...

View answer
2 answers
6 votes
176k views
Plotting multiple series in a line graph in excel with different time values?
10 votes

Another alternative is to use an Excel Scatter plot, which lets you choose different sets of time (X) values for each data set plotted:

View answer
2 answers
5 votes
5k views
Is Gzip supposed to honor original filename during decompress?
Accepted answer
5 votes

According to the gzip man page, using the -N or --name option when using gunzip recovers the original file name. -N is the default when compressing (so gzip always saves the original file name) but ...

View answer
8 answers
17 votes
15k views
Vim - Adding empty line between lines
3 votes

When I tested @NeilForester's global search and replace answer, I found that it missed every second intended replacement in consecutive non-blank lines if the lines only had one character in each. ...

View answer
1 answers
-1 votes
912 views
Setting up a function to find the product of two columns
3 votes

You've almost written the required formula already. If you put the formula: =I1*J1 ... into cell K1, and if you've got 5.99 in cell I1 and 1 in J1, then 5.99 will appear in cell K1. If you Copy and ...

View answer
1 answers
1 votes
73 views
Matching only numbers that come in numerical order
Accepted answer
2 votes

awk can certainly do this. For example, the script subpar.awk: BEGIN { maxgap = ARGV[1] ARGV[1] = "-" count = 0 } { i = count + 1 while (i <= count+maxgap) { n = ...

View answer
1 answers
2 votes
209 views
Live (e)grepping on a file
2 votes

I'm not quite sure what you mean by "show the results live" (but see the end of my answer for an idea) but generally I'd use make for this sort of task. For example, given a file srcfile.txt on which ...

View answer
1 answers
0 votes
99 views
Include in user defined macro fails
Accepted answer
1 votes

You might get more useful responses for this question on StackOverflow than on SuperUser. In the meantime, however, given that the latest version of gpp was released in 2004, it might be difficult to ...

View answer
1 answers
0 votes
78 views
Can I share data in powerpoint presentation
1 votes

You can do cross-references in Word too (though not quite as easily as in Excel) but it isn't possible to do within a document in Powerpoint. It is possible to get some of the functionality you're ...

View answer
1 answers
3 votes
464 views
Which program does *this instance* java.exe belong to? Why is it there, and can I remove it safely?
1 votes

Thinking about where references to C:\WINDOWS\system32\java.exe could be, which I could check without having to run every program on the computer, I'd think: In the registry (which I can search with ...

View answer
1 answers
-1 votes
81 views
Change values on x and y axis on a graph
1 votes

If you have the image as a graphic file (.JPG, .PNG, .GIF, etc.) or a hardcopy that you could scan to produce a graphic file, there is a wide variety of graph digitising software packages that you ...

View answer
2 answers
0 votes
1k views
Microsoft Office Keyword Analysis
1 votes

I use a Python script that uses the docx.py module (see here) to read Word files and process the individual words for a related task. The key bits are in the following code (which only reads one .docx ...

View answer
1 answers
0 votes
889 views
method to subtract text strings common in two files?
0 votes

If the strings are all on separate lines, you can use grep from MSYS or cygwin as follows: C:\> grep -v -f thousandLine.txt hundred000line.txt >ninetynine000Line.txt The -v option inverts the ...

View answer
2 answers
0 votes
191 views
Trying to get example from Awk and Sed book to work on Ubuntu 13.04
0 votes

Your script byState may not be executable. Try: chmod +x byState ... to make the script executable, then try your command line again. Additionally, or alternatively, because Unix doesn't include ...

View answer
2 answers
0 votes
2k views
windows text editor that allows csv/tsv data column sorting
0 votes

I can't think of a Windows editor that does this internally but Vim or Emacs can do it via some external tools, if that might be useful to you? Dealing with a proper CSV file would be a bit ...

View answer
2 answers
0 votes
72 views
In vi, how can I navigate to the function declaration?
0 votes

I'd typically use {, which gets me to the beginning of the paragraph (which is often the beginning of the function too) in one keystroke, or sometimes I might have to use { two or more times, ...

View answer