LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 05-10-2008, 11:11 PM   #1
dudeman41465
Member
 
Registered: Jun 2005
Location: Kentucky
Distribution: Debian
Posts: 794

Rep: Reputation: 56
Superkaramba Widget


I am modifying a superkaramba desktop widget by directly editing the .theme file with KWrite, and I'm kind of new to using cut in commands, but basically I'm trying to add a line to show what wireless network I'm connected to and I am not quite sure how to cut out the quotation marks in the output of:
Code:
iwconfig ath0 | grep 'ESSID' | cut -d : -f2 | cut -d ' ' -f1
I got the command by just slightly modifying the command it was using to grab the IP for the widget but the quotation marks don't sit quite right and kind of shift the text so it's not lined up with the rest of it. Any help is greatly appreciated.
 
Old 05-11-2008, 03:41 PM   #2
95se
Member
 
Registered: Apr 2002
Location: Windsor, ON, CA
Distribution: Ubuntu
Posts: 740

Rep: Reputation: 32
Code:
iwconfig ath0 | grep 'ESSID' | cut -d : -f2 | cut -d ' ' -f1 | cut -d '"' -f 2
 
Old 05-13-2008, 04:18 AM   #3
shishir
Member
 
Registered: Jul 2003
Location: bangalore . india
Distribution: openSUSE 10.3
Posts: 251

Rep: Reputation: 33
or ..just for fun
Code:
iwconfig ath0 | grep 'ESSID' | awk -F'"' '{print $2}'

Last edited by shishir; 05-13-2008 at 04:21 AM.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Weather widget Cushie Linux - Software 5 06-05-2007 10:06 AM
Liquidweather theme doesn't work in Superkaramba; Superkaramba wont uninstall rahilrai SUSE / openSUSE 4 03-14-2006 10:22 PM
how to get widget jrafalek Programming 1 03-06-2006 08:33 PM
qt widget problem linetnew Programming 1 10-20-2005 01:49 AM
The name of this widget NightKids Linux - Newbie 2 06-06-2005 10:57 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 05:37 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration