![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| reverse an integer | ali560045 | Shell Programming and Scripting | 4 | 05-20-2008 04:15 AM |
| Cannot store integer value | bennichan | Shell Programming and Scripting | 5 | 04-10-2008 03:20 PM |
| awk or grep for integer only | apalex | UNIX for Dummies Questions & Answers | 5 | 09-01-2004 02:38 PM |
| integer arrays | primal | High Level Programming | 4 | 03-09-2002 05:40 PM |
| How to get a rodom integer | toddor | High Level Programming | 2 | 10-10-2001 08:21 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
get integer part
Hi,
I did a df|awk| command and it returns a percentage "94%", how could I only get the integer part "94" out of it, so I can compare it to another number, I knwo that I have to pipe it to sth, but "grep [0-9]" did not work, it still give me number WITH the percentage, does someone know what command I should pipe it to? Sincerely, |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|