Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. Fozzeebear

    Segmentation Fault - Pointer Bounds Checking?

    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...
  2. Fozzeebear

    Deleting with SED

    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?
  3. Fozzeebear

    Error Deallocating Arrays

    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...
  4. Fozzeebear

    Help with running awk prog within shell script

    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...
  5. Fozzeebear

    Using fgrep with 'if' in shell scripts

    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...
  6. Fozzeebear

    Unix &quot;sort&quot; command help....

    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...

Part and Inventory Search

Back
Top