I am trying to write a script that loops through all the files in the current directory that end in '.slg.gz' and runs a parser on each file. Here is my code:
What is the proper notation for finding each file with .slg.gz? Also, what is the proper notation for assigning the variable FILES_HOME to the current directory?
Last edited by Franklin52; 02-11-2010 at 03:46 PM..
Reason: Please use code tags!
Hi,
I have a file a.lst which lists all files.
as
a.dat
b.dat
c.dat
I want to process these files mentioned in the list file in a loop.
Say I want to display only the first line of all the files a.dat , b.dat, c.dat.
How can I go about it?
Please help. (5 Replies)
Okay...
I've solved one problem.
Here's the next.
I'm writing a script file that needs to go through a directory and list all files in that directory.
I'm using TCL/TK.
I figured out how to go through the directory and how to loop through it, but I ran into a little problem.
... (2 Replies)
This isn't working for multiple files. It works for one file though.
exists1=$(ls | grep gspp*)
for FILES in $exists1
do
echo "Loading $exists1"
... (23 Replies)
I posted this in the Solaris forum, but I don't think it's platform specific, so I'm posting it here.
Here is the situation. We are a company that has been using a professional publishing system, the software is called "ProType". It runs on Solaris 2.4, however it is no longer supported and we... (6 Replies)
I have three different linux command scripts that I run for 20+ files in one directory.
it goes like this
FIRST SCRIPT:
grep 'something' -w file > newfile1
.
.
.
grep 'something -w file > newfile20
then I take all these 'newfileN' and run this:
awk 'BEGIN {... (20 Replies)
Hi all,
I'm having a problem with a script which should ultimately provide a filename by reading a value from file1 and file2 then join together.
I'm planning to use a loop/ loops to get the values out of both files and create a single string unfortunately the code currently treats the second... (7 Replies)
I am writing a ksh which has to load 7 files(.dat files) from input directory into oracle tables using sql loader. The process has to take each file at a time and once if it is loaded succesfully using sql loader into oracle tables then the process has to pick next file and load it into oracle... (2 Replies)
I have a req. where i need to read data from multiple files and take counts of row which satisfy the condition. e.g.:
FILE1:
Col1 Col2 Col3
12 ab cd
15 de fg
25 gh tm
FILE2:
Col1 Col2 Col3
21 ab1 cd1
13 de1 fg1
25 gh1 tm1
---
---
FILE-N...
i need to find the count of rows... (6 Replies)
Hi all ,
I am new on this forum . I have to face a particoular implementation issue and I need some help .
Requirement :
I need to read a particoular file (an xml file) and after reading it I need to call an Oracle Stored Procedure passing the content of the file as paramenter , in order... (3 Replies)
Discussion started by: Kolas79
3 Replies
LEARN ABOUT PHP
xml_set_notation_decl_handler
XML_SET_NOTATION_DECL_HANDLER(3) 1 XML_SET_NOTATION_DECL_HANDLER(3)xml_set_notation_decl_handler - Set up notation declaration handlerSYNOPSIS
bool xml_set_notation_decl_handler (resource $parser, callable $handler)
DESCRIPTION
Sets the notation declaration handler function for the XML parser $parser.
A notation declaration is part of the document's DTD and has the following format:
<!NOTATION <parameter>name</parameter>
{ <parameter>systemId</parameter> | <parameter>publicId</parameter>?>
PARAMETERS
o $parser
- A reference to the XML parser to set up notation declaration handler function.
o $handler
-$handler is a string containing the name of a function that must exist when xml_parse(3) is called for $parser. The function
named by $handler must accept five parameters:
handler (resource $parser, string $notation_name, string $base, string $system_id, string $public_id)
o $parser
- The first parameter, parser, is a reference to the XML parser calling the handler.
o $notation_name
- This is the notation's $name, as per the notation format described above.
o $base
- This is the base for resolving the system identifier ($system_id) of the notation declaration. Currently this parameter
will always be set to an empty string.
o $system_id
- System identifier of the external notation declaration.
o $public_id
- Public identifier of the external notation declaration.
If a handler function is set to an empty string, or FALSE, the handler in question is disabled.
Note
Instead of a function name, an array containing an object reference and a method name can also be supplied.
RETURN VALUES
Returns TRUE on success or FALSE on failure.
PHP Documentation Group XML_SET_NOTATION_DECL_HANDLER(3)