Since you want a "substring"-function you may be interested in knowing you can nest these expansions like i.e. this:
Code:
${var##{var%%??}} # only the last 2 characters of any string
${var%%{var##??}} # only the first 2 characters of any string
You can use these or similar for subsequent expansions, i.e.:
Code:
${var:2:3} # substring in ksh93-notation to emulate
var=${var##??} # cut off first two characters
${var%%${var##???}} # display first 3 characters of resulting string
From the version string of your ksh88 i guess you use AIX. You have a ksh93 available per default in /usr/bin/ksh93.
I hope this helps.
bakunin
how to enable /usr/bin/ksh93
can it be refer only to script
#!/usr/bin/ksh93 etc
Hi
Im new here and pretty new to Unix.
Just a couple of questions
How can I tell what version of Unix I'm running?
and
Also I hope this makes sence, when writting scripts/programmes does it matter what Im writting it in? ie what shell? Or is it just identical whatever shell Im... (1 Reply)
Hi,
I would like to know, how do I findout what version UNIx OS my computer is using? Is there a particular command I type to do this? Please advise.
Thanks (1 Reply)
I'm trying to figure out the exact version of the AIX box I'm on. Like whether it's 5.1 or 5.2. I tried lsconf and smit but they didn't give the answer. Does anyone know a command that returns this value? I don't have root access. (3 Replies)
Hi,
This is my HP-UX version,
hpprod::root>uname -a
HP-UX hpprod B.11.11 U 9000/800 1110164401 unlimited-user license
hpprod::root>
but I've already patch with,
PHSS_30101 1.0 Support Tool Manager Dec 2003
PHSS_30170 B.11.11.18 ... (1 Reply)
i have a program writing in PRO C which currently running in unix version 8 tie with oracle 8i, but in the future company gonna migrate this OS to version 9.
Anything i have to prepare for my PRO C program to run in unix version 9? or anything would that impact my program couldn't run well?
what... (2 Replies)
How to know the whether the system in IBM-AIX, or HP-UX or Sun Solaris?
I have typed command "version" at the prompt and i got
machine hardware: sun4us
OS version:5.9
and more....
So is my system Sun Solaris
Please let me know how can i find the OS (2 Replies)
Would like to confirm the ff. I got confused actually with the version I needed to download that will work on glassfish 3.0.1
a. Debian Squeeze (HP DL360). Need to use java version6
On Debian, I did apt-get install sun-java6-jdk. So when I check it's
java version "1.6.0_22"
Java(TM) SE... (1 Reply)
Guys,
How to find OS version and firmware version in LINUX?
Like in AIX.
uname -a will show me the version 5.3, 6.1,7.1.
lsmcode -c will show me - system firmware image as SF240_417.
What are the similar commands in Linux.
I checked uname -a and cat /etc/release.
uname... (1 Reply)
Discussion started by: ElizabethPJ
1 Replies
LEARN ABOUT HPUX
diagmond
diagmond(1M)diagmond(1M)NAME
diagmond - Support Tools Manager daemon
SYNOPSIS
/usr/sbin/stm/uut/bin/sys/diagmond
DESCRIPTION
The Support Tools Manager (STM) provides three interfaces that allow a user access to an underlying toolset, consisting of information mod-
ules, firmware update tools, verifiers, diagnostics, exercisers, expert tools, and utilities. STM uses a monitor ( diagmond ) to manage
launching and controlling tools as well as remote file system accesses.
Diagmond keeps track of the system hardware configuration which includes the list of tools available for each device. It also keeps track
of which tools are currently executing or have been executed on each device.
Application Usage
This daemon will be deprecated on new server models. Please use System Management Homepage (see hpsmh(1M)).
OTHER FILES
/var/stm/logs/sys/activity_log - Activity log of diagmond
/var/stm/logs/sys/scan_hw_log - Log of last scan of hardware
/var/stm/config/sys/diagmond.cfg - Diagmond configuration
/var/stm/data/id_mod_xref - Identify routine cross reference
/var/stm/data/prod_op_xref - Tools cross reference file
/var/stm/data/util_list - List of utilities installed
/var/stm/data/daemon_list - List of daemons installed
/var/stm/data/uut_status - Hardware configuration and status
/var/stm/data/key_file - OS resource key file
COPYRIGHT
(c) Copyright 1995, Hewlett-Packard Company
ORIGIN
diagmond was developed by Hewlett-Packard Company.
diagmond(1M)