Search Results

Search: Posts Made By: rpowell86
2,869
Posted By rpowell86
Expect get host ip
Hi,
I am trying to get the users ip address as an expect variable

Bash (works):
/sbin/ifconfig | grep 'inet addr' | grep -v 127.0.0.1 | head -1 | /bin/cut -d: -f2 | /bin/cut -d' ' -f1

Expect...
2,491
Posted By rpowell86
Awesome. It works :D changed it slightly...
Awesome. It works :D

changed it slightly to:

awk '/.*sysmacros.h.*/{f=1} /\/tr/{f=0;next} !f' $filename > $newfile

Thanks!
2,491
Posted By rpowell86
Bash removing sysmacros.h from GCOV
Hey.

GCC GCOV now outputs a file called sysmacros.h as part of its results.

How can I remove it from the html?

The tags looks like this:

<tr bgcolor="e0f0d0">
<td bgcolor="dae7fe"...
Showing results 1 to 3 of 3

 
All times are GMT -4. The time now is 05:11 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy