08-02-2008
Hi,
I would like to have this within a bash shell script. This would allow me to get around some scripting trouble that nobody has been able to sufficiently help with yet. I have a directory containing multiple files, all of similar construct:
A2008196231000.L2
I am only interested in digits 6-8, so the filenames are effectively:
?????---* (where the three digits --- represent the year day of the file)
I have files ranging from ?????001* to ?????366*. How can I list all the files within a certain range of days? The fact that the year days must be three digits long (001 to 366) makes this difficult.
If anyone could help with that, it would be great! The reason I would like a WHERE statement would be to get around this. Perhaps I could create an array, where each element is a different filename in the directory. Then I would create another array of the same size, where each element is the three digit year day of the file in the initial array. Then I could find out which elements of this array are -gt or -lt bounds that I specify, and use the returned array locations to subset the initial array. Is that possible in a bash shell script?
8 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
hi
i need to compile idl files to convert them to classes, on Unix platform. Please tell me how to compile these files & which commands are to be used for this purpose.
Thanks & Regards (6 Replies)
Discussion started by: rochitsharma
6 Replies
2. Linux
Hi,
We are working in a Linux client server environment ,where we have the CORBA running to facilitate the client server model.But here some time we are getting the system exception, ID 'IDL:omg.org/CORBA/TRANSIENT:1.0'
OMG minor code (2), described as 'No usable profile in IOR.', ... (0 Replies)
Discussion started by: prasanta jena
0 Replies
3. Shell Programming and Scripting
Hi All,
I am using Unix ksh script.
I need to insert values to a table using the o/p from a slelect statement.
Can anybody Help!
My script looks like tihs.
---`sqlplus -s username/password@SID << EOF
set heading off
set feedback off
set pages 0
insert into ${TB_NAME}_D... (2 Replies)
Discussion started by: nkosaraju
2 Replies
4. UNIX and Linux Applications
Hi,
I hope this is appropriate for this forum.
I have a text file (test.txt) that contains information that I would like to parse into an IDL procedure. Each line of the text file is either a number or a string, which will be a variable in my IDL procedure. Therefore I want to read each line... (1 Reply)
Discussion started by: msb65
1 Replies
5. Shell Programming and Scripting
I have made a script to execute an IDL routine with the purpose to plot data on a fixed time.
The problem is that when I include this script in the crontab to run it every night, the IDL part doesn't work (the other commands, like getting data from the database, are carried out though).
This... (4 Replies)
Discussion started by: SharkM
4 Replies
6. Programming
Hi,
I am searching the web for documentations with tutorials for spectra flux calibration using IDL, does anyone know anything that can help me? Please help :D
---------- Post updated 07-11-09 at 05:38 AM ---------- Previous update was 07-10-09 at 10:46 AM ----------
Does the question make... (0 Replies)
Discussion started by: cosmologist
0 Replies
7. UNIX for Dummies Questions & Answers
Ok so ive downloaded two files, and i need to save them into a directory that can be read in IDL.
Can someone please remind me how to do this, like post the code that i need please?
Many thanks (0 Replies)
Discussion started by: Benji.
0 Replies
8. Shell Programming and Scripting
Hi folks,
I have a scenario to convert the update statements into insert statements using shell script (awk, sed...) or in database using regex.
I have a bunch of update statements with all columns in a file which I need to convert into insert statements.
UPDATE TABLE_A SET COL1=1 WHERE... (0 Replies)
Discussion started by: dev123
0 Replies
LEARN ABOUT HPUX
rpc_intro
rpc_intro(1) General Commands Manual rpc_intro(1)
NAME
rpc_intro - Introduction to the DCE RPC programmer commands
DESCRIPTION
DCE RPC provides the following programmer commands: The idl command invokes the Interface Definition Language (IDL) compiler to convert an
interface definition, written in IDL, to output files. The uuidgen command creates a UUID string that you assign to an object to uniquely
distinguish it from other objects.
See each command's reference page for further information.
IDL Base Data Types and IDL-to-C Type Mappings
The following table lists the IDL base data type specifiers. Where applicable, the table shows the size of the corresponding transmittable
type and the type macro emitted by the IDL compiler for resulting declarations.
+------------------------------------------------------------+
| Base Data Type Specifiers -- rpc_intro(1) |
+--------------------------------+---------+-----------------+
| Specifier | | Type Macro |
|(sign) (size) (type) | Size | Emitted by idl |
+---------+-----------+----------+---------+-----------------+
| | | | | |
| | small | int | 8 bits | idl_small_int |
| | short | int | 16 bits | idl_short_int |
| | long | int | 32 bits | idl_long_int |
| | hyper | int | 64 bits | idl_hyper_int |
|unsigned | small | int | 8 bits | idl_usmall_int |
|unsigned | short | int | 16 bits | idl_ushort_int |
|unsigned | long | int | 32 bits | idl_ulong_int |
|unsigned | hyper | int | 64 bits | idl_uhyper_int |
| | | float | 32 bits | idl_short_float |
| | | double | 64 bits | idl_long_float |
| | | char | 8 bits | idl_char |
| | | boolean | 8 bits | idl_boolean |
| | | byte | 8 bits | idl_byte |
| | | void | -- | idl_void_p_t |
| | | handle_t | -- | -- |
| | | | | |
+---------+-----------+----------+---------+-----------------+
Note that you can use the idl_ macros in the code you write for an application to ensure that your type declarations are consistent with
those in the stubs, even when the application is ported to another platform. The idl_ macros are especially useful when passing constant
values to RPC calls. For maximum portability, all constants passed to RPC calls declared in your network interfaces should be cast to the
appropriate type because the size of integer constants (like the size of the int data type) is unspecified in the C language.
The idl_ macros are defined in dce/idlbase.h, which is included by header files that the IDL compiler generates.
RELATED INFORMATION
Commands: idl(1), uuidgen(1).
Messages: .
Books: .
rpc_intro(1)