I am having segmentation fault problems in some code I'm developing. The reported failure point is at the deallocation of an array, although I don't think that is the actual location of the error.
I'm working with the Lahey LF95 Linux compiler. Have switched on the --chk a,e,s options which...
I need to delete particular blocks of text from a file using Sed.
Using '/AAA/,/BBB/d' I can delete from string AAA up to and including BBB. However, what do I need to use to delete from AAA up to and including the next line after BBB?
Is there an alternative for Sed that can be used to do this?
I am having some strange problems with a piece of F90 coding I am currently working on.
I have a module using a number of allocatable arrays. The code runs to the point where the arrays are due to be deallocated, then fails with a SIGSEGV error during the de-allocation step.
I know the...
I have a multi-line awk program that I usually run from the command line using: nawk -f program < input > output.
I know that it is possible to run small awk programs directly from the command line, like: nawk '{print $1}' < input.
However, when I try to use this format for running the...
I am trying (and unfortunately failing!) to write a short Unix script to do the following:
1) do a fgrep search for required strings within a file
2) if there are matches, do nothing
3) if there are no matches, print an error message
The sort of thing I have been trying is:
if test 'fgrep -f...
I have a text file containing a list with four fields. I would like to sort numerically by the fourth field, so I am using:
sort +3n -n input > output.
My problem is that the fourth field actually contains numbers with exponents i.e 2.5e-05, and sort is only ordering things by the number...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.