今日のsed error:unknown option to `s', Error(1)

Autosar 単語検索　略号等
https://qiita.com/kaizen_nagoya/items/f8cb1295104b7d58363d

で作成したsedスクリプトを
Autosar単語帳(作業中)
https://qiita.com/kaizen_nagoya/items/0927727a94b157df2df8

の作業の一環として
変数名を分割して単語帳を作るには
https://qiita.com/kaizen_nagoya/items/89b998e079393869b19b

上での処理でのerror

<この項は書きかけです。順次追記します。>
This article is not completed. I will add some words in order.
# 作業記録

```shell-session:docker/ubuntu
# sed -f autosar.sed small.txt > new.txt
sed: file autosar.sed line 163: unknown option to `s'
```
sedファイルをviエディタで開いてみる。

```sed:autosar.sed
s/systemtemplate/system template/g
s/autosartemplates/autosar templates/g
s/ecucintegerparamdef/ecu c integer param def/g
s/ecucparamconfcontainerdef/ecu c param conf container def/g
s/ecucbooleanparamdef/ecu c boolean param def/g
s/ecucenumerationliteraldef/ecu c enumeration literal def/g
s/implementationdatatype/implementation datatype/g
s/enumerationliteralindex/enumeration literal index/g
s/variabledataprototype/variable data prototype/g
s/portprototype/port prototype/g
s/variationpoint/variation point/g
s/collectableelement/collectable element/g
s/softwarecomponenttemplate/software component template/g
s/swdatadefprops/sw data def props/g
s/ecucreferencedef/ecu c reference def/g
s/ecucenumerationparamdef/ecu c enumeration param def/g
s/diagnosticextract/diagnostic extract/g
s/recommendedpackage/recommended package/g
s/packageableelement/packageable element/g
s/atpblueprintable/atp　blueprintable/g
s/swcomponenttemplate/sw　component　template/g
s/commonstructure/common structure/g
s/manifestspecification/manifest specification/g
s/atpblueprint/atp blueprint/g
s/ecucfloatparamdef/ecu c float param def/g
s/atomicswcomponenttype/atomic swc omponent type/g
s/atpstructureelement/atp structure element/g
s/compumethod/compu method/g
s/basetypedirectdefinition/base type direct definition/g
s/swcinternalbehavior/swcinternalbehavior/g
s/clientserveroperation/client server operation/g
s/autosarmodelconstraints/autosar model constraints/g
s/getversioninfo/get version info/g
s/diagnosticextracttemplate/diagnostic extract template/g
s/securityerrordomain/security error domain/g
s/modedeclarationgroup/mode declaration group/g
s/implementationdatatypeelement/implementation datatype element/g
s/portprototypes/port prototypes/g
s/modedeclaration/mode declaration/g
s/applicationdatatype/application datatype/g
s/eventgroup/event group/g
s/adaptiveplatform/adaptive platform/g
s/basetypesize/base type size/g
s/basetypeencoding/base type encoding/g
s/diagnosticeventmanager/diagnostic event manager/g
s/genericstructuretemplate/generic structure template/g
s/fibexcore/fibexcore/g
s/atpprototype/atp prototype/g
s/swaddrmethod/sw addr method/g
s/diagnosticcommonelement/diagnostic common element/g
s/pduidtype/pdu id type/g
s/configtype/config type/g
s/diagnosticdataelement/diagnostic data element/g
s/swcomponenttype/sw component type/g
s/dcmdsproutine/dcm dsp routine/g
s/typedef/type def/g
s/runnableentitys/runnable entitys/g
s/memmap/mem map/g
s/ecucmoduledef/ecu c module def/g
s/bswmoduledescriptiontemplate/bsw module description template/g
s/communicationmanagement/communication management/g
s/corecommunication/core communication/g
s/rportprototype/rport prototype/g
s/systemsignal/system signal/g
s/demeventparameter/dem event parameter/g
s/genericstructure/generic structure/g
s/ecucfunctionnamedef/ecu c function name def/g
s/someiptp/someiptp/g
s/basetypes/base types/g
s/instanceref/instance ref/g
s/bswmoduleentry/bsw module entry/g
s/ecuconfiguration/ecu c onfiguration/g
s/modedeclarationgroupprototype/mode declaration group prototype/g
s/arraysizesemantics/array size semantics/g
s/triggertransmit/trigger transmit/g
s/parameterdataprototype/parameter data prototype/g
s/endtoendtransformationdescription/end to end transformation description/g
s/cppimplementationdatatype/cpp implementation datatype/g
s/compositionswcomponenttype/composition sw component type/g
s/texttable/text table/g
s/autosardataprototype/autosar data prototype/g
s/swimplpolicy/sw impl policy/g
s/pduinfoptr/pdu info ptr/g
s/reservedindex/reserved index/g
s/senderreceiverinterface/sender receiver interface/g
s/physicalchannel/physical channel/g
s/pduinfotype/pdu info type/g
s/maxnumberofelements/max number of elements/g
s/diagnosticevent/diagnostic event/g
s/fibexelement/fibex element/g
s/swcservicedependency/sw c service dependency/g
s/softwarecluster/software cluster/g
s/implementationdatatypes/implementation datatypes/g
s/pportprototype/pport prototype/g
s/swcomponentprototype/sw component prototype/g
s/ecucstringparamdef/ecu c string param def/g
s/networkhandletype/network handle type/g
s/nvblockdescriptor/nv block descriptor/g
s/timesync/time　sync/g
s/swbasetype/sw　base　type/g
s/seteventstatus/set event status/g
s/bswmoduleentity/bs wmodule entity/g
s/bswmoduledescription/bsw module description/g
s/symbolicnamevalue/symbolic name value/g
s/ttcanif /ttcan if /g
s/dcmdspdata/dcm dsp data/g
s/applicationarraydatatype/application array datatype/g
s/variabledataprototypes/variable data prototypes/g
s/readonlymemregion/read only mem region/g
s/timingextensions/timing extensions/g
s/applicationprimitivedatatype/application primitive datatype/g
s/tcpipconfig/tcp ip config/g
s/isignalipdu/isignal ipdu/g
s/rolebaseddataassignment/role based data assignment/g
s/dataprototypes/data prototypes/g
s/autosardatatype/autosar datatype/g
s/clientserverinterface/client server interface/g
s/containeripdu/container ipdu/g
s/layeredsoftwarearchitecture/layered software architecture/g
s/valuespecification/value specification/g
s/nvblockswcomponenttype/nv block sw component type/g
s/providedserviceinstance/provided service instance/g
s/dataconstr/data constr/g
s/ecustatemanager/ecu state manager/g
s/generaltemplateclasses/general template classes/g
s/ethernettopology/ethernet topology/g
s/mcdatainstance/mc data instance/g
s/cryptoservicemanager/crypto service manager/g
s/applicationendpoint/application end point/g
s/communicationconnector/communication connector/g
s/swcalibrationaccess/swc alibration access/g
s/executableentitys/executable entitys/g
s/consumedserviceinstance/consume dserv iceinstance/g
s/swcomponentprototypes/sw component prototypes/g
s/regularexpression/regular expression/g
s/applicationarrayelement/application array element/g
s/nvrammanager/nv ram manager/g
s/rolewrapperelement/role wrapper element/g
s/mycomponent/my component/g
s/checkwakeup/check wakeup/g
s/dcmdsproutinesignaltype/dcm dsp routine signal type/g
s/configptr/config ptr/g
s/isignaltoipdumapping/isignal to ipdu mapping/g
s/comconfig/com config/g
s/rolebasedportassignment/role based port assignment/g
s/argumentdataprototype/argument data prototype/g
s/datatransformation/data transformation/g
s/caninterface/can interface/g
s/commondiagnostics/common diagnostics/g
s/documentationblock/documentation block/g
s/serviceinstances/service instances/g
s/canstatemanager/can state manager/g
s/rteevents/rte events/g
s/swrecordlayout/sw record layout/g
s/datamapping/data mapping/g
s/typewrapperelement/type wrapper element/g
s/applicationdatatypes/application data types/g
s/bswimplementation/bsw implementation/g
s/flatinstancedescriptor/flat instance descriptor/g
s/hwelement/hw element/g
s/atpinstanceref/atp instance ref/g
s/commchannel/comm channel/g
s/frametriggering//frame triggeringg
s/transportprotocols/transport protocols/g
s/serviceinstancemanifest/service instance manifest/g
s/securecommunication/secure communication/g
s/requiressymbolicnamevalue/requires symbolic name value/g
s/routinecontrol/routine control/g
s/isignalport/isignal port/g
s/customdeleter/custom deleter/g
s/timingdescription/timing description/g
s/diagnosticdataidentifier/diagnostic data identifier/g
s/diagnosticparameter/diagnostic parameter/g
s/globaltimedomain/global timedomain/g
s/nvblockneeds/nv block needs/g
s/perinstancememory/per instance memory/g
s/ecucmoduleconfigurationvalues/ecu c moduleconf igurationval ues/g
s/stdcppimplementationdatatype/std cpp implementation datatype/g
s/swcomponenttypes/sw component types/g
s/uploadablepackageelement/uploadable package element/g
s//dcmdspdatauseport/dcm dsp datauseportg
s/synchronizedtimebasemanager/sync hronized time base manager/g
s/versioninfotype/version info type/g
s/dcmdspdid/dcm dspd id/g
s/setcontrollermode/set controller mode/g
s/symbolprops/symbol props/g
s/osapplication/os application/g
s/subscribeeventgroup/subscribe event group/g
s/ethernetinterface/ethernet interface/g
s/timingevent/timing event/g
s/abstractevent/abstract event/g
s/frametype/frame type/g
s/logstream/log stream/g
s/modetype/mode type/g
s/responseonevent/response on event/g
s/swsystemconst/sw system const/g
s/applicationdesign/application design/g
s/instancespecifier/instance specifier/g
s/algorithmfamily/algorithm family/g
s/bswmodemanager/bsw mode manager/g
s/linifchannel/lin if channel/g
s/pdurouter/pdu router/g
s/dcmdspdidinfo/dcm dspd id info/g
s/nmcluster/nmcluster/g
s/blueprintderivationtime/blueprint derivation time/g
s/communicationcontrol/communicationcontrol/g
s/adaptivemethodology/adaptivemethodology/g
s/dataidentifier/data identifier/g
s/resourceconsumption/resource consumption/g
s/multiplexedipdu/multiplexed ipdu/g
s/networkhandle/network handle/g
s/codegenerationtime/code generation time/g
s/diagnosticserviceinstance/diagnostic service instance/g
s/maxdeltacounter/max delta counter/g
s/prportprototype/prport prototype/g
s/socketaddress/socket address/g
s/adcdriver/adc driver/g
s/cmservice0/cm service/g
s/commanager/com manager/g
s/doipinterface/doip interface/g
s/kallocobjectonheap/kalloc object on heap/g
s/nvmblockdescriptor/nvm block descriptor/g
s/copytxdata/copy tx data/g
s/cryptoobjectuid/crypt oobject uid/g
s/rootswcompositionprototype/root sw composition prototype/g
s/ecuccontainervalue/ecu c container value/g
s/executionmanagement/execution management/g
s/opstatus/op status/g
s/sdudataptr/sdu data ptr/g
s/modeswitchinterface/mode switch interface/g
s/pduactivationroutinggroup/pdu activation routing group/g
s/tpconnection/tp connection/g
s/deterministicclient/deterministic client/g
s/stbmsynchronizedtimebase/stbms ynchronized time base/g
s/bswmoduletemplate/bsw module template/g
s/dataidlist/data id list/g
s/ecucforeignreferencedef/ecu c foreign reference def/g
s/executiontime/execution time/g
s/transformationtechnology/transformation technology/g
s/communicationcluster/communication cluster/g
s/domainparameters/domain parameters/g
s/bswbehavior/bsw behavior/g
s/ethernetphysicalchannel/ethernet physical channel/g
s/swcomponent/sw component/g
s/writeblock/write block/g
s/demconfigset/dem config set/g
s/metadataitem/meta data item/g
s/pdulengthtype/pdu length type/g
s/updateandconfigmanagement/update and config management/g
s/bswevent/bsw event/g
s/busmirroring/bus mirroring/g
s/wakeupsourcetype/wakeup source type/g
s/flatmap/flat map/g
s/memorymapping/memory mapping/g
s/allowedusageflags/allowed usage flags/g
s/busmirrorchannel/bus mirror channel/g
sdiagnosticmapping/diagnostic mapping//g
s/applicationswcomponenttype/application sw component type/g
s/bootloader/boot loader/g
s/getstatus/get status/g
s/keymanager/key manager/g
s/parameteraccess/parameter access/g
s/providerinfo/provider info/g
s/spihandlerdriver/spi handler driver/g
s/eventhandler/event handler/g
s/parameterdataprototypes/parameter data prototypes/g
s/serviceswcomponenttype/service sw component type/g
s/providedsomeipserviceinstance/provided some ip service instance/g
s/swcalprmaxisset/sw calprmaxis set/g
s/consistencyneeds/consistency needs/g
s/consumedeventgroup/consumed event group/g
```

sの次に/のない行や、gの前に/のない行、//と重複している行などが色で区分されている。
編集して形式をs/before/after/gに直す。

# Reference
Error一覧
https://qiita.com/kaizen_nagoya/items/48b6cbc8d68eae2c42b8

＜この記事は個人の過去の経験に基づく個人の感想です。現在所属する組織、業務とは関係がありません。＞
This article is an individual impression based on the individual's experience. It has nothing to do with the organization or business to which I currently belong.
# 文書履歴(document history)
ver. 0.01 初稿 　20240504
### 最後までおよみいただきありがとう4ざいました。
いいね　💚、フォローをお願いします。
#### Thank you very much for reading to the last sentence.
Please press the like icon 💚　and follow me for your happy life.