Search Results

Search: Posts Made By: ajgwin
Forum: Programming 08-05-2008
5,458
Posted By ajgwin
Java File Chooser customization
I am trying to add some other things onto the standard file chooser. I would like to have something like this at the bottom of the file chooser (underneath the Select and Cancel buttons). I will try...
Forum: Programming 06-19-2008
10,076
Posted By ajgwin
Finding wildcards in readdir
I am having a hard time doing this and can't seem to find an example to help me. This is my code:

DIR *dirp=opendir(pathname);
struct stat filebuf;
struct dirent entry;
struct dirent...
15,733
Posted By ajgwin
Thanks. That really helped. Allyson
Thanks. That really helped.

Allyson
15,733
Posted By ajgwin
Perl data type checking
I am using perl 5.8.0.

I need to check some values to see it they are floats. Our system does not have Data::Types so I can't use is_float. Is there something else that I can use? The only thing...
8,694
Posted By ajgwin
I downloaded the POSIX-strptime-0.05 (that is the...
I downloaded the POSIX-strptime-0.05 (that is the version we have) and now I really don't know what to do with it. I am pretty new to perl and have never installed anything like this. Any...
8,694
Posted By ajgwin
I have these: Local.pm gmtime.pm ...
I have these:

Local.pm
gmtime.pm
localtime.pm
tm.pm

Do any of these have the subroutine that I can use instead of Time::Piece->strptime($daytime,"%Y/%j:%H:%M:%S");?

Thanks.

Allyson
8,694
Posted By ajgwin
I added use Time::Piece; to the beginning of my...
I added use Time::Piece; to the beginning of my code and am getting this error:

BatchPDS_perl.ksh /home/agwin/bin/b2.conf
Can't locate Time/Piece.pm in @INC (@INC contains:...
8,694
Posted By ajgwin
Perl date conversions
Is there a perl date conversion that will convert this type of date:

2008/100:01:56:10.000

to this type of date:

2008 04 09 01 56 10 000

I am using this right now:

sub jd2date
{
...
3,763
Posted By ajgwin
Array problem
I am using /bin/ksh for this problem.

I have created some arrays with variable names as the array names:

cnt=1
{ while read myline; do
tempmeas="${meas%%;*}"
...
2,179
Posted By ajgwin
Well, I thought I had it. I can fill up my arrays...
Well, I thought I had it. I can fill up my arrays and if I specify them by whole name then I get the values. But if I try to use the variable to get the values, then I get an error. Here is where I...
2,179
Posted By ajgwin
I figured it out. I am going to do this: ...
I figured it out. I am going to do this:


mymeas=`echo "MEAS"$cnt`
echo $mymeas


and use $mymeas as each array.

Thanks.

Allyson
2,179
Posted By ajgwin
Creating an unknown number of arrays
I need to create arrays like this:

cnt=0
{ while read myline; do
if [[ $myline = "<meas>"* ]];then
firstpass="${myline##<meas>}"
...
2,451
Posted By ajgwin
It is a bit confusing, but here is the part that...
It is a bit confusing, but here is the part that I am trying to figure out:

while [[ $i -le $meascount ]];do
firstpass="${meascolumn##<meas-column>}"
...
2,451
Posted By ajgwin
I can't seem to make it look like I want it to...
I can't seem to make it look like I want it to here. I am going to do each column separately on a new line to show what I need, but really they are all together with Col1, Col2, Col3, Col4, Col5...
2,451
Posted By ajgwin
I was printing out each line as it came in and I...
I was printing out each line as it came in and I know I can't do that since I don't know the length. So, if I put it all into an array like this:

array[0]=first row with all columns separated by a...
2,451
Posted By ajgwin
arrays and needing length of fields
I have a sort of complex problem that I just can't figure out. I have data coming into a ksh program in a format that I need to parse out and display into a different format into a text file for...
1,885
Posted By ajgwin
Date format question
I have a string that looks like this:

2008 04 09 18 45 30 0

I would like to convert it to a date format like this:

Wed Apr 09 18:45:30.000 GMT 2008

I have been searching all over and...
6,399
Posted By ajgwin
Day of month and year to mmddyyyy
I have a date that looks like this:

2008/100:18:40:47.040

I need it to look like this:

2008 04 09 18 40 47 040

I have looked at datecalc and it doesn't seem like it takes the day of year...
Showing results 1 to 18 of 18

 
All times are GMT -4. The time now is 08:18 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy