<?xml version="1.0" encoding="ISO-8859-1"?>

<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
	<channel>
		<title><![CDATA[The UNIX and Linux Forums - UNIX for Dummies Questions & Answers]]></title>
		<link>http://www.unix.com/</link>
		<description><![CDATA[If you're not sure where to post a UNIX or Linux question, post it here.  All UNIX and Linux newbies welcome !!]]></description>
		<language>en</language>
		<lastBuildDate>Thu, 17 May 2012 02:33:37 GMT</lastBuildDate>
		<generator>vBulletin</generator>
		<ttl>5</ttl>
		<image>
			<url>http://linux.unix.com/images/misc/rss.jpg</url>
			<title><![CDATA[The UNIX and Linux Forums - UNIX for Dummies Questions & Answers]]></title>
			<link>http://www.unix.com/</link>
		</image>
		<item>
			<title>tail from one and match it in the other file</title>
			<link>http://www.unix.com/unix-dummies-questions-answers/186785-tail-one-match-other-file.html</link>
			<pubDate>Thu, 17 May 2012 00:32:25 GMT</pubDate>
			<description>Can someone help me to do the following 
  
I have two files 
  
file one 
  
123456 
789012 
345678 
901234</description>
			<content:encoded><![CDATA[<div>Can someone help me to do the following<br />
 <br />
I have two files<br />
 <br />
file one<br />
 <br />
123456<br />
789012<br />
345678<br />
901234<br />
567890<br />
 <br />
file two<br />
 <br />
abcdef<br />
ghklmn<br />
opqrst<br />
901234<br />
567890<br />
uvwxyz<br />
123456<br />
 <br />
I would like to do tail on the last two lines from file one, <br />
match the string in file two and then delete all lines above matching string, and send output to file three.<br />
 <br />
File three should look<br />
 <br />
uvwxyz<br />
123456<br />
 <br />
My search is always based on the last two lines from file one, and that changes every day.<br />
 <br />
Thank you for your help.<br />
<br />
<font color="#738fbf"><font size="1">---------- Post updated at 07:32 PM ---------- Previous update was at 07:29 PM ----------</font></font><br />
<br />
And I forgot to mention, I searched forum and could not find any previos topics that could provide the solution to my issue.</div>

]]></content:encoded>
			<category domain="http://www.unix.com/unix-dummies-questions-answers/"><![CDATA[UNIX for Dummies Questions & Answers]]></category>
			<dc:creator>genius_not</dc:creator>
			<guid isPermaLink="true">http://www.unix.com/unix-dummies-questions-answers/186785-tail-one-match-other-file.html</guid>
		</item>
		<item>
			<title>Observing two logs at same time</title>
			<link>http://www.unix.com/unix-dummies-questions-answers/186747-observing-two-logs-same-time.html</link>
			<pubDate>Wed, 16 May 2012 16:55:19 GMT</pubDate>
			<description>Hi Folks, 
I have an application at the backend and I have to check it logs at the thru putty but I have to go see two different logs at the same time and that is I am doing by opening two different instances of putty since both the logs are in different directory . Please advise is there any other...</description>
			<content:encoded><![CDATA[<div>Hi Folks,<br />
I have an application at the backend and I have to check it logs at the thru putty but I have to go see two different logs at the same time and that is I am doing by opening two different instances of putty since both the logs are in different directory . Please advise is there any other way I can open the single instance of putty and see both the logs at the sametime..<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left"><!--ntstart-->cd /usr/local/abc.log<br />
cd /var/tt/bce.log<!--ntend--></code><hr />
</div>Please advise.</div>

]]></content:encoded>
			<category domain="http://www.unix.com/unix-dummies-questions-answers/"><![CDATA[UNIX for Dummies Questions & Answers]]></category>
			<dc:creator>KAREENA18</dc:creator>
			<guid isPermaLink="true">http://www.unix.com/unix-dummies-questions-answers/186747-observing-two-logs-same-time.html</guid>
		</item>
		<item>
			<title>Regarding the logs on putty</title>
			<link>http://www.unix.com/unix-dummies-questions-answers/186741-regarding-logs-putty.html</link>
			<pubDate>Wed, 16 May 2012 16:42:56 GMT</pubDate>
			<description>Hi Folks, 
I have an application and I connect to unix box through putty , sometimes I Have to check the logs and for that I reached to particular directory and write 
 
 
Code: 
--------- 
tail -f abc.log 
--------- 
Is there any better command so that these logs are dynamically go on increasing...</description>
			<content:encoded><![CDATA[<div>Hi Folks,<br />
I have an application and I connect to unix box through putty , sometimes I Have to check the logs and for that I reached to particular directory and write<br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left"><!--ntstart-->tail -f abc.log<!--ntend--></code><hr />
</div>Is there any better command so that these logs are dynamically go on increasing while I work on my application so please suggest any better command to observe the logs:confused:<br />
<br />
<font color="#738fbf"><font size="1">---------- Post updated at 11:42 AM ---------- Previous update was at 11:36 AM ----------</font></font><br />
<br />
Guys Please advise..!!</div>

]]></content:encoded>
			<category domain="http://www.unix.com/unix-dummies-questions-answers/"><![CDATA[UNIX for Dummies Questions & Answers]]></category>
			<dc:creator>KAREENA18</dc:creator>
			<guid isPermaLink="true">http://www.unix.com/unix-dummies-questions-answers/186741-regarding-logs-putty.html</guid>
		</item>
		<item>
			<title>Filtering data -extracting specific lines</title>
			<link>http://www.unix.com/unix-dummies-questions-answers/186737-filtering-data-extracting-specific-lines.html</link>
			<pubDate>Wed, 16 May 2012 16:16:15 GMT</pubDate>
			<description>I have a table to data which one of the columns include string of text 
 
from within that, I am searching to include few lines but not others 
 
for example I want to to include some combination of word address such as (address.| address? |the address | your address) but not (ip address | email...</description>
			<content:encoded><![CDATA[<div>I have a table to data which one of the columns include string of text<br />
<br />
from within that, I am searching to include few lines but not others<br />
<br />
for example I want to to include some combination of word address such as (address.| address? |the address | your address) but not (ip address | email address | address bar )<br />
<br />
in include the things that i want, i have used <br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left"><!--ntstart-->egrep 'address| your address'<!--ntend--></code><hr />
</div>but now i have problems with things i dont want to include<br />
i have used the <br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left"><!--ntstart-->grep -v<!--ntend--></code><hr />
</div>but i dont know how to combine it so it will delete the things that i dont want<br />
<br />
so simple how to delete lines that do have x or y or z<br />
<br />
I am not sure whether i have to used grep, <acronym title="Stream Editor">sed</acronym> or awk either<br />
<br />
cheers</div>

]]></content:encoded>
			<category domain="http://www.unix.com/unix-dummies-questions-answers/"><![CDATA[UNIX for Dummies Questions & Answers]]></category>
			<dc:creator>A-V</dc:creator>
			<guid isPermaLink="true">http://www.unix.com/unix-dummies-questions-answers/186737-filtering-data-extracting-specific-lines.html</guid>
		</item>
		<item>
			<title><![CDATA[how to know if i use "Red Hat Enterprise Linux" or "Red Hat Desktop" ?]]></title>
			<link>http://www.unix.com/unix-dummies-questions-answers/186677-how-know-if-i-use-red-hat-enterprise-linux-red-hat-desktop.html</link>
			<pubDate>Wed, 16 May 2012 10:19:22 GMT</pubDate>
			<description><![CDATA[how to know if i use "Red Hat Enterprise Linux" or "Red Hat Desktop" ?]]></description>
			<content:encoded><![CDATA[<div>how to know if i use &quot;Red Hat Enterprise Linux&quot; or &quot;Red Hat Desktop&quot; ?</div>

]]></content:encoded>
			<category domain="http://www.unix.com/unix-dummies-questions-answers/"><![CDATA[UNIX for Dummies Questions & Answers]]></category>
			<dc:creator>ahmedamer12</dc:creator>
			<guid isPermaLink="true">http://www.unix.com/unix-dummies-questions-answers/186677-how-know-if-i-use-red-hat-enterprise-linux-red-hat-desktop.html</guid>
		</item>
		<item>
			<title>Oracle installation on cygwin</title>
			<link>http://www.unix.com/unix-dummies-questions-answers/186653-oracle-installation-cygwin.html</link>
			<pubDate>Wed, 16 May 2012 08:11:22 GMT</pubDate>
			<description>Can someone help in Oracle installation on cygwin</description>
			<content:encoded><![CDATA[<div>Can someone help in Oracle installation on cygwin</div>

]]></content:encoded>
			<category domain="http://www.unix.com/unix-dummies-questions-answers/"><![CDATA[UNIX for Dummies Questions & Answers]]></category>
			<dc:creator>Uinx_addic</dc:creator>
			<guid isPermaLink="true">http://www.unix.com/unix-dummies-questions-answers/186653-oracle-installation-cygwin.html</guid>
		</item>
		<item>
			<title>AWK help</title>
			<link>http://www.unix.com/unix-dummies-questions-answers/186627-awk-help.html</link>
			<pubDate>Wed, 16 May 2012 05:36:16 GMT</pubDate>
			<description>Hi, 
I have a file with the following data in a file :: File1 
 
 
Code: 
--------- 
Name Credit 
A       45 
B       4 
D       9</description>
			<content:encoded><![CDATA[<div>Hi,<br />
I have a file with the following data in a file :: File1<br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left"><!--ntstart-->Name Credit<br />
A&nbsp; &nbsp; &nbsp;  45<br />
B&nbsp; &nbsp; &nbsp;  4<br />
D&nbsp; &nbsp; &nbsp;  9<br />
A&nbsp; &nbsp; &nbsp;  -3<br />
B&nbsp; &nbsp; &nbsp;  -10<br />
A&nbsp; &nbsp; &nbsp;  -3<!--ntend--></code><hr />
</div>Need the output as<br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left"><!--ntstart-->Name&nbsp; +ve Cr&nbsp; &nbsp; -ve Cr<br />
A&nbsp; &nbsp; &nbsp; &nbsp; 45&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; -6<br />
B&nbsp; &nbsp; &nbsp; &nbsp; 4&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; -10<br />
D&nbsp; &nbsp; &nbsp; &nbsp; 9&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  0<!--ntend--></code><hr />
</div>Got a command that adds up all the records but without segregating +ve and -ve values.<br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left"><!--ntstart-->awk -F&quot;,&quot; '{a[$2]+=$1}END{for (i in a) print i,a[i]}' file1<!--ntend--></code><hr />
</div>Please assist.<br />
<br />
Thanks and Regards,<br />
Gideon.</div>

]]></content:encoded>
			<category domain="http://www.unix.com/unix-dummies-questions-answers/"><![CDATA[UNIX for Dummies Questions & Answers]]></category>
			<dc:creator>preethgideon</dc:creator>
			<guid isPermaLink="true">http://www.unix.com/unix-dummies-questions-answers/186627-awk-help.html</guid>
		</item>
		<item>
			<title>Rename multiple files, changing prefix, extension and dropping characters</title>
			<link>http://www.unix.com/unix-dummies-questions-answers/186591-rename-multiple-files-changing-prefix-extension-dropping-characters.html</link>
			<pubDate>Tue, 15 May 2012 18:55:08 GMT</pubDate>
			<description><![CDATA[I'm currently only able to perform some very basic functions, so hope this makes sense... 
  
I have a set of about 27 files that need to be renamed from something like this: 
  
 
Code: 
--------- 
000012ABCDEFGHIJ.XXX.YYY.ZZZ 
000078KLMNO.XXX.YYY.ZZZ 
000099PQ.XXX.YYY.ZZZ]]></description>
			<content:encoded><![CDATA[<div>I'm currently only able to perform some very basic functions, so hope this makes sense...<br />
 <br />
I have a set of about 27 files that need to be renamed from something like this:<br />
 <br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left"><!--ntstart-->000012ABCDEFGHIJ.XXX.YYY.ZZZ<br />
000078KLMNO.XXX.YYY.ZZZ<br />
000099PQ.XXX.YYY.ZZZ<!--ntend--></code><hr />
</div>to something like this:<br />
 <br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left"><!--ntstart-->newa012.abc<br />
newa078.abc<br />
newa099.abc<!--ntend--></code><hr />
</div>The file names currently all start with '0000', then a 2-digit value, then a name that can be anywhere from 2 to 10 characthers, then the same extension. They need to be changed to a new prefix + 0 + the existing 2 digit value, dropping the next 2 to 10 characters, and changing the extension on each file to the new one. All are case sensitive as indicated.<br />
 <br />
I was able to use one-liners to get to a file name like 'newa012PQ.abc', and am having the most trouble trying to understand how to drop the 'PQ' etc. <br />
 <br />
As I said I'm not familiar with much of this and see a lot of references to <acronym title="Stream Editor">sed</acronym> and awk etc. but short of copying code I'm not sure the meaning of, or messing with scripting that I've never touched before I figured I'd try here first. <br />
 <br />
Any help is appreciated!<br />
Thanks</div>

]]></content:encoded>
			<category domain="http://www.unix.com/unix-dummies-questions-answers/"><![CDATA[UNIX for Dummies Questions & Answers]]></category>
			<dc:creator>bbmcg</dc:creator>
			<guid isPermaLink="true">http://www.unix.com/unix-dummies-questions-answers/186591-rename-multiple-files-changing-prefix-extension-dropping-characters.html</guid>
		</item>
		<item>
			<title>XML to TXT or CSV</title>
			<link>http://www.unix.com/unix-dummies-questions-answers/186581-xml-txt-csv.html</link>
			<pubDate>Tue, 15 May 2012 17:54:22 GMT</pubDate>
			<description>Hi all,  
 
I am new to unix and even newer to XML :wall: 
 
I have a dataset which I need to work on and extract data from but I cant even see things. its a XML file which i need to analyse and return the results in xml as well but need to filter some of them like i would do with excel file so not...</description>
			<content:encoded><![CDATA[<div>Hi all, <br />
<br />
I am new to unix and even newer to XML :wall:<br />
<br />
I have a dataset which I need to work on and extract data from but I cant even see things. its a XML file which i need to analyse and return the results in xml as well but need to filter some of them like i would do with excel file so not sure what is the right thing to do<br />
<br />
Can you please help me?<br />
<br />
my data looks like this<br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left"><!--ntstart-->&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; ?&gt;<br />
&lt;archives&gt;<br />
&nbsp; &lt;archive id=&quot;ffghgsddes&quot;&gt;<br />
&nbsp; &nbsp; &lt;file line=&quot;1&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &lt;author&gt;953b&lt;/author&gt;<br />
&nbsp; &nbsp; &nbsp; &lt;time&gt;18:03&lt;/time&gt;<br />
&nbsp; &nbsp; &nbsp; &lt;text&gt;this is an evidence regarding ...&lt;/text&gt;<br />
&nbsp; &nbsp; &lt;/file&gt;<br />
&nbsp; &nbsp; &lt;file line=&quot;2&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &lt;author&gt;04bfa&lt;/author&gt;<br />
&nbsp; &nbsp; &nbsp; &lt;time&gt;18:03&lt;/time&gt;<br />
&nbsp; &nbsp; &nbsp; &lt;text&gt;we have seen those documents before &lt;/text&gt;<br />
&nbsp; &nbsp; &lt;/file&gt;<br />
&nbsp; &nbsp;  . <br />
&nbsp; &nbsp;  . <br />
&nbsp; &nbsp;  .<br />
&nbsp;&lt;/archive&gt;<br />
&nbsp;&lt;archive&gt;<br />
&nbsp;.<br />
&nbsp;.<br />
&nbsp;.<br />
&nbsp;&lt;/archive&gt;<br />
&lt;/archives&gt;<!--ntend--></code><hr />
</div>it can look anything really<br />
i dont really need the data to be normalized<br />
i can have them separated by archive or simply having it all in one line<br />
<br />
Thank you in advance for your help<br />
<br />
A-V</div>

]]></content:encoded>
			<category domain="http://www.unix.com/unix-dummies-questions-answers/"><![CDATA[UNIX for Dummies Questions & Answers]]></category>
			<dc:creator>A-V</dc:creator>
			<guid isPermaLink="true">http://www.unix.com/unix-dummies-questions-answers/186581-xml-txt-csv.html</guid>
		</item>
		<item>
			<title>Sending command from one terminal to another.</title>
			<link>http://www.unix.com/unix-dummies-questions-answers/186577-sending-command-one-terminal-another.html</link>
			<pubDate>Tue, 15 May 2012 17:34:31 GMT</pubDate>
			<description>Hello, 
I am running a program in a terminal.  
this program is just printing random words. 
I can change the color of each word by entering the first character of the color(for example G for Green). 
I want to write a bash code that runs in a different terminal and sends different characters to...</description>
			<content:encoded><![CDATA[<div>Hello,<br />
I am running a program in a terminal. <br />
this program is just printing random words.<br />
I can change the color of each word by entering the first character of the color(for example G for Green).<br />
I want to write a bash code that runs in a different terminal and sends different characters to terminal 1 (the one showing the rectangle) to change the color automatically and constantly.<br />
<br />
my word program is running in /dev/pts/1<br />
<br />
i tried to do the following:<br />
<br />
echo G &gt; /dev/pts/1 , all it does is printing G in terminal 1. nothing happens to the color. how can I make it execute and change the color of the words?</div>

]]></content:encoded>
			<category domain="http://www.unix.com/unix-dummies-questions-answers/"><![CDATA[UNIX for Dummies Questions & Answers]]></category>
			<dc:creator>alireza6485</dc:creator>
			<guid isPermaLink="true">http://www.unix.com/unix-dummies-questions-answers/186577-sending-command-one-terminal-another.html</guid>
		</item>
		<item>
			<title>Disk Usage</title>
			<link>http://www.unix.com/unix-dummies-questions-answers/186549-disk-usage.html</link>
			<pubDate>Tue, 15 May 2012 14:29:56 GMT</pubDate>
			<description>Hi, 
 
I have always felt problems using commands to check disk usage, or I should say  I might not be using the commands properly. 
 
dfspace and free are 2 most frequent command that I use, but the data that it echoes is not comprehandable atleast to me.:wall::wall::wall::wall::wall: 
 
I want...</description>
			<content:encoded><![CDATA[<div>Hi,<br />
<br />
I have always felt problems using commands to check disk usage, or I should say  I might not be using the commands properly.<br />
<br />
dfspace and free are 2 most frequent command that I use, but the data that it echoes is not comprehandable atleast to me.:wall::wall::wall::wall::wall:<br />
<br />
I want something like windows when you are inside a directory and type the command it should tell you how much memory.<br />
<br />
Can some one highlight how to use disk usage. <br />
<br />
Appreciate you help!</div>

]]></content:encoded>
			<category domain="http://www.unix.com/unix-dummies-questions-answers/"><![CDATA[UNIX for Dummies Questions & Answers]]></category>
			<dc:creator>TH3M0Nk</dc:creator>
			<guid isPermaLink="true">http://www.unix.com/unix-dummies-questions-answers/186549-disk-usage.html</guid>
		</item>
		<item>
			<title>Unix concepts help</title>
			<link>http://www.unix.com/unix-dummies-questions-answers/186531-unix-concepts-help.html</link>
			<pubDate>Tue, 15 May 2012 12:50:56 GMT</pubDate>
			<description>Team, 
          I am working in unix perl . i have come across scenarios where there are lots of unix concepts are being used. 
 
 For example, Handle, pipes, forking ,data sharing between processes,parallel processing and so on. I need some conceptual explanation about the unix system . 
 
 I...</description>
			<content:encoded><![CDATA[<div>Team,<br />
          I am working in unix <acronym title="Practical Extraction and Report Language">perl</acronym> . i have come across scenarios where there are lots of unix concepts are being used.<br />
<br />
 For example, Handle, pipes, forking ,data sharing between processes,parallel processing and so on. I need some conceptual explanation about the unix system .<br />
<br />
 I have prior experience with unix . i have used various unix commands and shell scripting .<br />
<br />
  I tried to google for books/resources but it comes with C code and there is no conceptual discussion . i just see things related to kernal programming  which is not scope. <br />
<br />
Can you please suggest some resources/books where there is enough conceptual discussion like what exactly is pipe,handle and relation between the two , streams , how to create pipe and connect to forked process, etc..<br />
<br />
i dont know C language...<br />
<br />
Thanks..</div>

]]></content:encoded>
			<category domain="http://www.unix.com/unix-dummies-questions-answers/"><![CDATA[UNIX for Dummies Questions & Answers]]></category>
			<dc:creator>mdsaleemj</dc:creator>
			<guid isPermaLink="true">http://www.unix.com/unix-dummies-questions-answers/186531-unix-concepts-help.html</guid>
		</item>
		<item>
			<title><![CDATA[Basic Question on perl use POSIX [SOLVED]]]></title>
			<link>http://www.unix.com/unix-dummies-questions-answers/186433-basic-question-perl-use-posix-solved.html</link>
			<pubDate>Mon, 14 May 2012 18:00:52 GMT</pubDate>
			<description><![CDATA[Hi guys, 
 
I think this is a basic question. I'm not very familiar with this. 
 
I'm trying to round a number up and round a number down. From what I have read this can be done using POSIX. I have tried to to use this, but i'm getting errors: 
 
 
Code: 
---------]]></description>
			<content:encoded><![CDATA[<div>Hi guys,<br />
<br />
I think this is a basic question. I'm not very familiar with this.<br />
<br />
I'm trying to round a number up and round a number down. From what I have read this can be done using <acronym title="Portable Operating System Interface for UNIX">POSIX</acronym>. I have tried to to use this, but i'm getting errors:<br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left"><!--ntstart--><br />
sub findGridBounds($$$%)<br />
{<br />
&nbsp; &nbsp; use <acronym title="Portable Operating System Interface for UNIX">POSIX</acronym>;<br />
&nbsp; &nbsp; my ($searchValue, $key, $gridTableKey, %gridTable) = @_;<br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; if (exists $gridTable{ $key })&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; my $inc = ($gridTable{$gridTableKey}[1] - $gridTable{$gridTableKey}[0]) / 501;<br />
&nbsp; &nbsp; &nbsp; &nbsp; my $mid = (($searchValue - $gridTable{$gridTableKey}[0]) / $inc) + 1;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; my $gridUpper = ceil($mid);<br />
&nbsp; &nbsp; &nbsp; &nbsp; my $gridLower = floor($mid);&nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; print &quot;Upper is: $gridUpper Lower is: $gridLower\n&quot;;<br />
<br />
&nbsp; &nbsp; }<br />
<br />
}<!--ntend--></code><hr />
</div>I'm getting the following error:<br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left"><!--ntstart-->Global symbol &quot;$gridUpper&quot; requires explicit package name<br />
Global symbol &quot;$gridLower&quot; requires explicit package name<!--ntend--></code><hr />
</div>I'm not sure what i'm doing wrong. I'm thinking it has something to do with use <acronym title="Portable Operating System Interface for UNIX">POSIX</acronym>, but i'm not sure.<br />
<br />
Thanks guys!<br />
<br />
<font color="#738fbf"><font size="1">---------- Post updated at 02:00 PM ---------- Previous update was at 12:10 PM ----------</font></font><br />
<br />
Sorry for waiting ur time.... I just had a stupid syntax error... I'm just learning <acronym title="Practical Extraction and Report Language">Perl</acronym>. Please forgive me.</div>

]]></content:encoded>
			<category domain="http://www.unix.com/unix-dummies-questions-answers/"><![CDATA[UNIX for Dummies Questions & Answers]]></category>
			<dc:creator>WongSifu</dc:creator>
			<guid isPermaLink="true">http://www.unix.com/unix-dummies-questions-answers/186433-basic-question-perl-use-posix-solved.html</guid>
		</item>
		<item>
			<title><![CDATA[[Solved] Box with a new MAC address can't connect to the internet]]></title>
			<link>http://www.unix.com/unix-dummies-questions-answers/186435-solved-box-new-mac-address-cant-connect-internet.html</link>
			<pubDate>Mon, 14 May 2012 16:55:42 GMT</pubDate>
			<description><![CDATA[Hi, 
  
i replaced one of my UNIX machines last week, the old box had an external IP address before. Everything is the same as the previous box and the only difference is the new one has a different MAC address (of course, since the mother boards are different). The problem is the new machine can't...]]></description>
			<content:encoded><![CDATA[<div>Hi,<br />
 <br />
i replaced one of my UNIX machines last week, the old box had an external IP address before. Everything is the same as the previous box and the only difference is the new one has a different MAC address (of course, since the mother boards are different). The problem is the new machine can't get on the internet and I was wondering if I someone could help me with that.<br />
 <br />
I checked the firewall rule on the main firewall machine but it doesn't have anything listed about that old box and its IP address. The box doesn't have a private address (192.x.x.x) and I'm not sure if/where the IT company which installed that for me long ago had the previous MAC address added somewhere.<br />
 <br />
I assigned the same IP to this new box, so I assume everything should work but it cannot connect to the internet.<br />
 <br />
Can someone please help me with this?<br />
 <br />
thanks</div>

]]></content:encoded>
			<category domain="http://www.unix.com/unix-dummies-questions-answers/"><![CDATA[UNIX for Dummies Questions & Answers]]></category>
			<dc:creator>tezarin</dc:creator>
			<guid isPermaLink="true">http://www.unix.com/unix-dummies-questions-answers/186435-solved-box-new-mac-address-cant-connect-internet.html</guid>
		</item>
		<item>
			<title>Auditd (How to disable)</title>
			<link>http://www.unix.com/unix-dummies-questions-answers/186413-auditd-how-disable.html</link>
			<pubDate>Mon, 14 May 2012 13:30:16 GMT</pubDate>
			<description><![CDATA[I'm running CentOS 5.x and want to disable this daemon as it's crashing my server daily! 
 
I didn't install that and don't know why it's started magically for some reason. 
 
 
Please enlighten me to the answer to this question, I've read the man pages on this and found something that stops it...]]></description>
			<content:encoded><![CDATA[<div>I'm running CentOS 5.x and want to disable this <acronym title="Disk and Execution Monitor">daemon</acronym> as it's crashing my server daily!<br />
<br />
I didn't install that and don't know why it's started magically for some reason.<br />
<br />
<br />
Please enlighten me to the answer to this question, I've read the man pages on this and found something that stops it temporary. I'd like to permanently disable that.<br />
<br />
It was saying originally the backlog limit was stopping my server but i upped the limit. Do i have to do something in the .conf file?<br />
<br />
What should I do??? Help!<br />
<br />
<br />
Thanks!!!:wall:</div>

]]></content:encoded>
			<category domain="http://www.unix.com/unix-dummies-questions-answers/"><![CDATA[UNIX for Dummies Questions & Answers]]></category>
			<dc:creator>HiphopTech</dc:creator>
			<guid isPermaLink="true">http://www.unix.com/unix-dummies-questions-answers/186413-auditd-how-disable.html</guid>
		</item>
	</channel>
</rss>

