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 Wanet Telecoms Ltd 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: *

  • Users: alqsp
  • Order by date
  1. alqsp

    C decompiler...any good?

    I have an executable program that I believe to be a C program. Unfortunately I don't have the source code. I believe this program was compiled on a HP-UX machine, but now needs to be run on a Sun-Solaris box..it doesn't run. My question is this - Does anyone know if a decompiler would assist...
  2. alqsp

    Substitute date for another date format

    Hi, I have a file with date's in this format 30-JAN-00 that I need to convert to this format 2000-01-3000.00.00. Any ideas on how to first search the file line by line for a month (jan-dec) and then confirm it's a date field (DD-MMM-YY) because it's possible the text JAN, FEB etc. can appear...
  3. alqsp

    Adding numbers in a string

    This should be easy! I need to add the numbers in a string. e.g VALUE=138 I need the sum of 1+3+8. I imagine something like" i=0 for [ number of chars in string ] do TOTAL=`expr $TOTAL + $VALUE[i]` increment i done This example will give a TOTAL of 13. I then need to identify the...
  4. alqsp

    Stripping leading zero's off a string.

    Scenario: I'm reading in an ascii file with a header record that has several fields. Layout is: @@@XXXXXXXXXX999999999DD-MMM-CC999999999 e.g @@@TEST 00000000301-MAR-02000000025 Where: @@@ - Identifies the header record XXXXXXXXXX - File identifier 999999999 (1st) - A run number with...
  5. alqsp

    Manipulating binary file??

    That's good, thankyou. I used: echo datanew'/c' > binfile.change - to suppress the new line character. Now what I want to know is if datanew is just ascii, is there a way to convert it to binary or hex?
  6. alqsp

    Manipulating binary file??

    I need to manipulate a binary file (just holding data) using parameters - 1) file name 2) starting position of data to change 3) new value. Question is: Is it possible to write a unix script to do this? Is it powerful enough?? Thoughts? If not possible any alternatives?
  7. alqsp

    Help with updating single char in char field

    Hi, I need help in updating the 39 character of a 40 char field: update Tabaddr set Addr(39th char only) = 0 where Addr_num = 4 Does anyone know how to make an update to just the one character in the Addr field? Something like Addr(39:1?
  8. alqsp

    Selecting files in directory as part of loop

    That's about as complicated as it needs to be, thank you all for your help, all suggestions work great. Al
  9. alqsp

    Selecting files in directory as part of loop

    Scenario: I need to validate and move all the files in a directory. I need help in selecting each file. So far I have this . FILECOUNT=`ls $INPUTDIR | wc -l` while [ $FILECOUNT -gt 0 ] do <select file> <validate file> if valid move file to valid_dir else move file to...

Part and Inventory Search

Back
Top