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