DaemonForums  

Go Back   DaemonForums > Miscellaneous > Programming

Programming C, bash, Python, Perl, PHP, Java, you name it.

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1   (View Single Post)  
Old 2nd February 2011
isthistheend isthistheend is offline
New User
 
Join Date: Feb 2011
Posts: 4
Thanked 0 Times in 0 Posts
Unhappy Combining outputs?

Hi,
i'm new at shell scripting.. i need to combine different syntax outputs.
I try to get interface name with first syntax and ip add with second one..

ifconfig |grep -E 'flags' |grep -v lo |grep -v enc |awk -F":" '{print $1}'

ifconfig |grep -E 'inet' |grep -v inet6 | grep -v 127.0.0.1 |awk '{print $2}'

i need to combine their outputs like;

"İnterface name" "ip address"

i bet solution is too easy but i stuck D:
Please Help.. Thanks a lot..
Reply With Quote
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:40 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick