Руслан Валиев (unixblog) wrote,
Руслан Валиев
unixblog

bash script

Сделал для себя открытие:

ifconfig=`/sbin/ifconfig`
eth0=${ifconfig#*eth0 *inet addr:}
eth0=${eth0%% *}
Tags: commands, linux, scripting
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your IP address will be recorded 

  • 0 comments