Hello,
I have a script I've used on pre-Solaris 10 that works just great. Now on a Sol10 box, it is bailing on this line with this error: syntax error at line 27: `|' unexpected
Here's the 'offending' line:
creation=`echo $backupid | sed 's/^.*_//'`
I'm a bit confused as to why this isn't working as I've pulled it out of the script and can run it successfully from the command line directly. Any ideas?
As always, thanks for the help!!
It shouldn't really make a difference, but the following change is always worth while, and worth a try:
creation=`echo "${backupid}" | sed 's/^.*_//'`
Edit: Since you're using ksh, you may also wish to change "echo" to "print".
masijade
Industrious Poster
4,253 posts since Feb 2006
Reputation Points: 1,471
Solved Threads: 494