The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
Google UNIX.COM


Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
change wc -l francis_tom Shell Programming and Scripting 1 04-14-2008 10:02 AM
IP change kuultak UNIX for Dummies Questions & Answers 2 07-13-2005 06:01 AM
UID Change mcateriny AIX 4 10-06-2003 09:02 AM

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 08-19-2006
Registered User
 

Join Date: Aug 2006
Location: Hobart Tasmania
Posts: 58
Cool change 43.5% to 43.5

I have a column in % and I want to display it as a one decimal place number for sorting - what function would I be looking at for dropping the % sign?

Last edited by nortypig; 08-20-2006 at 12:15 AM.
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 08-20-2006
Technorati Master
 

Join Date: Mar 2005
Location: Large scale systems...
Posts: 2,490
are u looking for something like this ..

echo "43.5%" | sed 's/%//'
Reply With Quote
  #3 (permalink)  
Old 08-20-2006
Registered User
 

Join Date: Aug 2006
Location: Hobart Tasmania
Posts: 58
ahh perfect thanks a million...
Reply With Quote
Google UNIX.COM
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 07:46 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0