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

    Loading Array with elements containing spaces

    I had written a pgm, loading numeric data into an array. It worked great. Then, I tried to load data from a file, in which one of the elements has a space and now I'm having a problem. It seems like once the space is encountered, the rest of the data is not loaded. The element with the space is...
  2. debih99

    Branching within a shell script NOT using functions

    AndyBo, Thanks, I didn't think I ever saw a 'goto' label in Unix shell, but sometimes the 'former' Cobol programmer in me comes out and I can't remember where I saw what! I will suggest to him altering the shell to use functions. Debi :-)
  3. debih99

    Branching within a shell script NOT using functions

    A co-worker of mine has a very large Unix shell script that was coded without the use of functions :(, not something I would do, but.... Is there a label in Unix, say like the goto stmt where he can just branch to another section of code in leu of re-writting it using functions? I have checked...
  4. debih99

    Reading a file into an Array and then looping

    Thanks Russ, Your response was very helpful. I had started the pgm using fgets, but saw that the standard here was fread. But for my case, the files are fixed length ascii files. So this works!
  5. debih99

    Using Awk to find a character in a file

    Mike, Unfortunately they do not want us to use Perl here :( So I must follow the standards using UNIX ksh - on a HP platform. What now?
  6. debih99

    Using Awk to find a character in a file

    I have a 'master' file, in this example 20 bytes long. The data looks like this: 11111TestOne0005.10 22222TestTwo0006.50 The key in this file starts in col 1 to 12, so 11111TestOne and 22222TestTwo are the keys. (In reality, this file will be larger approx. 7,000 recs at 450 bytes long) I have...
  7. debih99

    Reading a file into an Array and then looping

    I am working on a C project, to which I have little experience. I am starting with a simple program - read input, load into an array and then write out a new file. The problem is either I'm not loading of the array properly or I'm not writing out to the file the right way. I say this because...

Part and Inventory Search

Back
Top