I am testing the following at the solaris command prompt and getting the below error. What am I doing wrong?
Any help is appreciated.
Code:
$ allfiles="fred.c alex.c"
$ echo $allfiles
fred.c alex.c
$ alljobs=${allfiles/c/o}
ksh: alljobs=${allfiles/c/o}: bad substitution
Any help is appreciated.