more shell questions

Charles Maurer chip at mtuni.UUCP
Wed Jan 22 09:06:51 AEST 1986


HELP!

I want to take a variable in the shell with imbedded
spaces and question marks and do a set on the variable
to yank out the question marks.

i.e.

$ ls 
thisfile     thatfile     xfile
$ x="hello  ?????  world"
$ echo $x
hello  xfile  world
$ echo "$x"
hello  ?????  world
$ set $x
$ echo $2
$ xfile
$ set "$x"
$ echo $2

$ echo $1
hello xfile world
$ echo "Can anybody help with this one? "
$ echo "I've tried everything"
$ mtuni!chip
mtuni!chip not found
$



More information about the Comp.unix mailing list