sed -f: error
Dear Sir,
I am a newbie. I got the following message: sed -f xclt.sed file1.f > file2.f sed: xclt.sed line 8: extra characters after command My xclt.sed file is as follows: s/NRVALM=[0-9][0-9]*/NRVALM=100000/g s/NRVALX=[0-9][0-9]*/NRVALX=95000/g s/ICDM=[0-9][0-9]*/ICDM=20000/g s/NVARM=[0-9][0-9]*/NVARM=1000/g s/NCNSM=[0-9][0-9]*/NCNSM=5000/g s/NFNCM=[0-9][0-9]*/NFNCM=100/g s/NSYS=[0-9][0-9]*/NSYS=2000/g />>>START MAIN/,/>>>END MAIN/d #/>>>START SUBSYSTEM/,/>>>END SUBSYSTEM/d />>>START IOFNC/,/>>>END IOFNC/d />>>START EXFNC/,/>>>END EXFNC/d note: there is no error when I do the same job in unix system. Could you please tell me a solution? With best wishes. |
That code seems to work OK for me. Here's my version:
Code:
$ cat tmp/test.sed Code:
$ sed -rf tmp/test.sed |
Oh, a suggestion: Try a
Code:
hexdump -c xclt.sed |
Thank you very much!
Somebody has told me a solution:"You might try deleting and re-entering line 8 in your script, in case there is a hidden white-space character at the end of line in your xclt.sed script." |
All times are GMT -5. The time now is 06:29 AM. |