Ok I need to parse a file but ALSO parse one of the columns in the file.
The file is delimited by | but the column I am parsing is delimited by '/'
Here is a sample record from the original file:
2008-08-28...
# i set my variable here
thisvar="abc"
echo $thisvar
# i go into my loop here and reset the variable
ls -l |
while IFS=":" read f1 f2
do
thisvar="xyz"
done
# display the supposed reset variable here
echo $thisvar
The result should be xyz but it remains abc
Why???
How can...
My command returns this:
Libsmbios: 0.8.0
System ID: 0x01B2
Service Tag: D*****1
Product Name: PowerEdge 2950
BIOS Version: 2.1.1
Vendor: Dell Inc.
Is Dell: 1
I need to loop through each row and move the value left of the ":" to one variable and the value to the right of the...
I just want to add to the end of an array. How is this done??? Seems so simple...
Heres my array:
arEquipment=(albert danielle daniel);
I would like to add element 'nathan' to the end.
How?
I cant copy files from a vista laptop to my xp desktop. I CAN see my desktop but I get 'you dont have permission to perform this action' when I try to paste a file onto the xp desktop.
I created a login on the xp desktop that matches the vista laptop, login and password.
On the xp machine I...
I am using the file_put_contents with the append option.
Code:
file_put_contents("filename", "text to write", FILE_APPEND);
Problem is that I want to lock the file as well as append.
Php documentation says to use the "LOCK_EX" flag, however, it does not have examples. How do I pass BOTH the...
This seems so simple but I dont understand it.
I want to print ONE element of a multi dimensional array.
Here are my base arrays:
@aTemp1 = ('albert', 'daniel', 'nathan');
@aTemp2 = ('danielle', 'mylee', 'rob');
Here is my multidimensional array:
@aTest = (@aTemp1, @aTemp2);
I want to print...
hey all.. using mysql and perl at the command line.
I am using a legit login and password for the db but I get this:
DBI connect('dbPortal:[ip here]','[login]',...) failed: Access denied for user '[login]'@'[ip here]' (using password: YES) at /usr/local/lib/perl5/site_perl/5.8.5/DBD/mysqlPP.pm...
In my intranet web app I need to check the users NT (windows) login.
I found this code online but it fails on line 19
Any ideas on how to do this?
<?php
/*
Getting netbios info
CopyLeft 2002 (GNU GPL V2) by polo
*/
error_reporting(E_ALL);
/* get the ip...
OK my record count is up to 615 million. In 3 months it will be over 1.2 billion.
Problem: My webpage takes over an hour to display records.
(Using php)
1) I know my table design is very good.
2) Using the admin tool I see that my query takes 17 seconds
Then it reports that MySql is still...
I am worn out, sick and tired of trying to display my div layer properly in IE 6.
Such a simple thing, I want the div layer to appear in a specified x y coordinate even if the user scroll down the page.
Why is this so hard????
Can someone tell me how to get the scroll position???
I tried all...
$basestr="this is a test of the emergency broadcast system"
$otherstrg="this is not a test of the urgent broadcast system"
I just want to compare $otherstr to the $basestr, not the other way around.
The difference in $otherstr is:
"not" and "urgent"
possible?
Hi, I am opening a pop up window that allows the user to create a directory on the file server.
Once he creates it, I would like the MAIN window / page to refresh.
How do I refresh a different (or main window) with javascript?
I wrote a function and I am passing my div layer id to it.
This works:
document.getElementById("myDivLayer").innerHTML=xmlHttp.responseText;
This does not:
document.getElementById(myDivVar).innerHTML=xmlHttp.responseText;
Why?
I have a shell script that processes information in a for loop.
The loop has an echo statement that displays each record. The problem is that the output is displayed when the for loop and script end.
I would like the output of each line to display to the screen during the loop.
How do I flush...
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.