does anybody know what this vi command means?
am very new with Linux and i was asked to explain what it does but am getting an error message
any idea what it means or why am i getting this error?
:s/1,$/ABC/CBS
error message
E488: Trailing characters
The command
:s/1,$/ABC/CBSmeans, replace the1,at the end of line byABCwith unknown modifierCBS. Due to this unknown modifier its a wrong commandIf it would have been like
:1,$ s/ABC/CBS/, It would mean, replace the firstABCwithCBSfor each line starting from line1to the last line ($) of the file