Mike,
My file has data fields that needs to be inserted in different tables.
For eg.
If I see "record", than assuming field1 exist, I need to inset the value of field1 to TableA and than assuming field1 exist, I need to inset the value of field2 to TableB etc...
In this case I guess...
I need help to export data from a flatfile to Mysql DB.
My Flatfile has about 5000 records, and one record can have any number of lines in the text file.
record1
field1: <value>
field2:<value>
field3:<value>
<value of field4> <value of field5> <value of field6>
field7:<value>
record2
field1...
jaa,
Is their a email address I can reach, so I can send input file and the program. I don't want to cause a problem with the policy in letting out information.
thanks,
I am sorry I sent the wrong output file, here is actual output:
"
line NOT OK: B: "image file
line NOT OK: B: "rank Image Search"
line NOT OK: B: "rank image search"
line NOT OK: B: rank search software"
line NOT OK: B: "Search Software"...
jaa,
I tried it with 'or' and '||', I get the same result.
Here is my code:
"
..
if ($line =~ m/^B/) {
if ( ($line =~ m/:\s+".*?"$/) || ($line =~ m/:\s+[^"]+$/) ) {
$myrank = $line;
print "lines OK : $myrank \n";
}
else {
print "lines NOT OK : $line...
Hi jaa,
"if ( /:\s+".*?"$/ )" will print "lines NOT OK" for lines that have matched and unmatched quoted lines
while,
"if ( /:\s+[^"]+$/)" will print "lines OK" for the lines without quotes , which is good.
resending..
Hi jaa,
"if ( /:\s+".*?"$/ )" returns even the lines that have unmatched quoted lines while,
"if ( /:\s+[^"]+$/)" will print lines without quotes.
;<
Hi,
I have a text file, which (A#,B#) pairs, that looks like"
"
A1: http://www.abc.com
B1: "rank"
A2: http://www.abc.com
B2: "rank term"
A3: http://www.abc.com
B3: "rank term
A4: http://www.abc.com
B4: rank all
A5: http://www.abc.com
B5: rank all true...
Any suggestions as to how I can support Users's to try this script online.
I appreciate if someone could suggest a good resource for combining perl with HTML.
Thanks for the reply.
Hi,
I have a perl script that I want other to be able to execute by clicking on the link from the WEB UI.
My idea/method on this.
Have a HREF link on a intranet web site. When the user clicks on the link, I want to open a dos(on NT)/UNIX terminal pop-up window, login with my account...
Hi,
Is there a single system/awk/sed command, if I want to append a file to a list of exzisting configuration files.
I have 10 lines in a 1 text file, that I want to append to the contents of 10 existing files.
Any help would be great.
Thanks,
Hi,
I have a problem stripping lines of an xml file.
I have a xml file, were I want to strip of individual tags from the file. My input xml file has lines:
<feedid>2</feedid>
<pagetype>
<action>add</action>
<attribute>freehosting</attribute>
<id>48611</id>...
Hi guys,
I have this peice of Java code inherited. I can make a web page request by using the compiled Page.class file, and get the results from the host:port, without the intervention of any Browser cookie settings. The results are stored in page.txt. Now I want to send cookie information...
Hi,
I have a file in the following format. I want to break the file into seperate files based on [Local], [Global]...... These separators are predefined.
I tried getting line number for the variables using awk. But did not work.
regards,
[Local]
JDoe12345,John Doe,,Product Division -...
Hi All,
How could I write a shell script to substitute ^M with ^N. The file is huge almost 5mb. I want to automate the procedure, hence, i assume vi commands won't be helpfule.
Regards,
Hi wushutwist,
Just one bit I wanted to make clear from my previous posting;
3. On 'submit' form (of step 2), the form should be sent back to servlet 'ProcessInfo.java'.
My program posted earlier kind of takes the user to the Info.html page for re-entering.
Preethi
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.