KEpstein on Mon, 10 Sep 2001 12:42:44 (SAST)


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

[GLUG] Re: Shell scripting,


echo "444K" |tr -d [a-z][A-Z]

Rgds, 
Kevin Epstein
Mobile : +27 83 631 8739
UTi - Bedfordview
HP Certified, HP-UX System Administrator


-----Original Message-----
From: Herman Cremer [mailto:admin@xxxxxxxxxx]
Sent: 10 September 2001 12:16
To: glug@xxxxxxxxxxxx
Subject: [GLUG] Shell scripting,


Hi

If I have a value,  "444K"
how can I make it a number using sh ?
I want to remove the "K".

I can use perl to do it, but I need to use sh here,


Herman

----
To unsubscribe from this list: send the line "unsubscribe glug" in
the subject of a message to glug-request@xxxxxxxxxxxxx If you have a
problem unsubscribing, please mail glug-admins@xxxxxxxxxxxx

----
To unsubscribe from this list: send the line "unsubscribe glug" in
the subject of a message to glug-request@xxxxxxxxxxxxx If you have a
problem unsubscribing, please mail glug-admins@xxxxxxxxxxxx