Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
sed -i '1s/..//' /path/to/file
sed 's/^..//g' xy > xy.new
Correct. But this means to keep matching and replacing as many times as possible, not to stop after the first match and replace. But while the expression starts with carrot ( ^ ), only one match is possible. And while is impossible to not match the first two characters of the line, the carrot is not needed.stefanwagner said:/g means 'modify globally'.
The two sentences have different meaning.hugheskbh said:[gray](...)[/gray] read a flat file and strip out the first 2 characters [gray](...)[/gray]
[gray](...)[/gray] read a flat file and strip out the first 2 characters in each record.