Search Results

Search: Posts Made By: flw521521
1,841
Posted By itkamaraj
There is nothing like close in this forum. ...
There is nothing like close in this forum.

I think, you can ignore the sed command also.


for X in 1 2 3
do
echo $(ifconfig eth0|awk 'NR==8{print $2;exit}'|cut -c7-)
sleep 2
done
1,841
Posted By Corona688
echo $(ifconfig eth0|sed -n 8p|awk '{print...
echo $(ifconfig eth0|sed -n 8p|awk '{print $2}'|cut -c7-)
sleep 2
echo $(ifconfig eth0|sed -n 8p|awk '{print $2}'|cut -c7-)
sleep 2
echo $(ifconfig eth0|sed -n 8p|awk '{print $2}'|cut -c7-)...
Showing results 1 to 2 of 2

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