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

    Call Stack Output Pipe into File

    Hello together, is it possible to pipe the call stack infos during a debug session (MS VisualC++ 2005) into a text file for further post-processing? I want to use it to create a simple flow chart of the program logic. Kind regards
  2. liondari

    arithmetic with shell using bc or octave

    Hello programmers, I would like to use the calculator bc or octave in shell scripts. I wrote a short shell script "calc" with this content: echo "$1" | octave -q | awk '{print $3}' It's nice, you can do the following, e.g.: ./calc "sin(23),1/3,4*4" The output is: -0.84622 0.33333 16 Is...
  3. liondari

    copy part of file and paste it into another file

    Hello everybody, I was not able to solve this problem: I have a file polygon.dat with this structure: #some text . #some text MASK POLYGON 23 1.0750465E+03 1.1066547E+03 . . 1.2288103E+03 EXIT #some text . #some text I would like to copy the column of numbers between the lines...
  4. liondari

    overloaded operator depends on order

    Hello everybody, I use the following definition in a class VecR for vectors: VecR operator*(const double); VecR VecR::operator*(const double a) { VecR mV(x*a,y*a,z*a); return (mV); } in order to multiply a vector (VecR) and a scalar (double). Now, say 'A' is a vector and 'fac' is a...
  5. liondari

    extract number from file name

    Hello, I would like to extract an int number from a file name. I have hundreds of files with the following names: Qhull_1000_001.xyz ... Qhull_15000_150.xyz. Now, I need the first number to be extracted and saved into a file. The second number I use for steering a for loop. Thanks in advance
  6. liondari

    create list of directories and use it in script

    Hello everybody, how are you? I hope someone can help me! I would like to write a script which zips automatically a complete directory structure. For example, there is a directory dirA which contains, say, 5 subdirs sdirA1 .. sdirA5. Another dir dirB which contains 3 subdirs sdirB1 .. sdirB3...
  7. liondari

    how to use sed with awk

    Hello everybody! I have two files (sd.data and sdisk.cpp). I would like to extract some information out of sd.data. For example the product of the two numbers after the word initUcell: initUcell 10 10 stepLimit 20000 .. .. Then I would like to substitute the result (in this case 100) into some...

Part and Inventory Search

Back
Top