HP3000-L Archives

May 1999, Week 4

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Lars Appel <[log in to unmask]>
Reply To:
Lars Appel <[log in to unmask]>
Date:
Sat, 22 May 1999 11:53:38 +0200
Content-Type:
text/plain
Parts/Attachments:
text/plain (22 lines)
Mark wrote...

>Shell/iX > avar="part1 part2 part3"
>Shell/iX > expr $avar : '([^[:space:]]+)'

Not sure as I haven't tried it, but if your parts are delimited
by a space then it might also be possible to utilize the shell's
default field separator (IFS ?) similar to

  set $avar
  echo $1
  echo $2
  echo $3

This will not work interactively, but might work inside a script.
But make sure to parse the shell script's arguments before using
the set command to replace them!

Lars.

PS to HP3000-L: Another vote for plain ASCII over .xyz attachments!

ATOM RSS1 RSS2