06-24-2005
Try changing
"$(ls -1 $OES_DATA_IN_DIR)"
to just
$(ls -1 $OES_DATA_IN_DIR)
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
hello all.. I have been browsing / searching through the forum and have yet not been able to find what I was looking for.
I am fairly new to ksh and my task is to create a function that reads in an input file:
*****************
2
3
1
abc
def
ghi
/dev/sid/
*****************... (13 Replies)
Discussion started by: sidamin810
13 Replies
2. Shell Programming and Scripting
Given a line of text in ksh:
string1 string2 string3 .....stringn
is there a way of automatically assigning each string to an array element? Or just different variables would do.
Thanks,
Jon (1 Reply)
Discussion started by: Jonny2Vests
1 Replies
3. Shell Programming and Scripting
Hi all,
In a loop, i am creating an array of integer and adding it to another array that hold arrays
// psuedo code
pttrnArray=$type$data // This is array of integers.
pttrnArrays=${pttrnArray} // This is supposed to be array of arrays.
But when i print pttrnArrays, i get only the... (1 Reply)
Discussion started by: jakSun8
1 Replies
4. Shell Programming and Scripting
Hello everybody!
Why I can export arrays in ksh?
I trie this for exemplo:
In parent script
array=a
array=b
array=c
export array
When I see the variable array in child script there are only first index.
For exemplo in child script
+echo ${array}
a (3 Replies)
Discussion started by: ricardo.ludwig
3 Replies
5. UNIX for Dummies Questions & Answers
I'm not confident at all on how arrays work.
I want to know how to set arrays in ksh and in nawk (is there a difference??)
if someone can show me some examples of both that will be great. Tried to look up on the net but was confusing me more.
Any help would be appreciated. (2 Replies)
Discussion started by: Pablo_beezo
2 Replies
6. Web Development
PHP question...
I have an SQL query that's pulled back user IDs as a set of columns. Rather than IDs, I want to use their names.
So I have an array of columns $col with values 1,7,3,12 etc and I've got an array $person with values "Fred", "Bert", "Tom" etc
So what I want to do is display the... (3 Replies)
Discussion started by: JerryHone
3 Replies
7. Shell Programming and Scripting
Hi -
I have a file that contains data in this format:-
#comment
value1 value2 value3
#comment
value4 value5 value6 value7
#comment
value8 value9
I need to read value1, value2 and value3 into one array, value4 value5 value6 and value7 into another array and value8 and value9 into a 3rd... (2 Replies)
Discussion started by: sniper57
2 Replies
8. Programming
if i declare both but don't input any variables what values will the int array and file pointer array have on default, and if i want to reset any of the elements of both arrays to default, should i just set it to 0 or NULL or what? (1 Reply)
Discussion started by: omega666
1 Replies
9. Shell Programming and Scripting
Hi,
I am using KSH shell and need to define a multi dimensional array in which i need to store and retrive data. Please provide your valuable in puts.
Eg: asbjkasd 1234
asdhnas 1254
i need to store the above values and use them as input to another command.
Note each line is a pair.
Thanks... (8 Replies)
Discussion started by: hraj1984
8 Replies
10. Shell Programming and Scripting
Hi,
I have a ksh script in which I need to fill an array with a list of filenames.
It currently works like this:
set -A array \
val1 \
val2 \
val3However, I was wondering why it's not possible to do something like this to make it easier to parse values to the array:
set -A array... (3 Replies)
Discussion started by: Subbeh
3 Replies
LEARN ABOUT DEBIAN
fixup_datafile
fixup_datafile(3alleg4) Allegro manual fixup_datafile(3alleg4)
NAME
fixup_datafile - Fixes truecolor images in compiled datafiles. Allegro game programming library.
SYNOPSIS
#include <allegro.h>
void fixup_datafile(DATAFILE *data);
DESCRIPTION
If you are using compiled datafiles (produced by the dat2s and dat2c utilities) on a platform that doesn't support constructors (currently
any non GCC-based platform), or if the datafiles contain truecolor images, you must call this function once after your set the video mode
that you will be using. This will ensure the datafiles are properly initialised in the first case and convert the color values into the
appropriate format in the second case. It handles flipping between RGB and BGR formats, and converting between different color depths when-
ever that can be done without changing the size of the image (ie. changing 15<->16-bit hicolor for both bitmaps and RLE sprites, and
24<->32-bit truecolor for RLE sprites).
Note that you can only call this once and expect it to work correctly, because after the call the DATAFILE you fixed up is permanently con-
verted to whatever is the current component ordering for your screen mode. If you call fixup_datafile again, the function assumes you have
a freshly loaded datafile. It cannot "undo" the previous conversion.
If your program supports changing resolution and/or color depth during runtime, you have two choices: either call fixup_datafile() just
once and hope that the component ordering and bit depth doesn't change when the screen mode changes (unlikely). Or, you can reload your
datafiles when the screen mode changes.
SEE ALSO
set_gfx_mode(3alleg4), set_color_conversion(3alleg4)
Allegro version 4.4.2 fixup_datafile(3alleg4)