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".
Last edited by masijade; Nov 1st, 2007 at 9:12 pm.
Reputation Points: 1471
Solved Threads: 490
Industrious Poster
Offline 4,043 posts
since Feb 2006