How do I remove the first character from a Unix file?

How do I remove the first character from a Unix file?
Answer
You can also use
the 0,addr2 address-range to limit replacements to the first substitution, e.g. That will remove the 1st character of the file and the sed expression will be at the end of its range — effectively replacing only the 1st occurrence. To edit the file in place, use the -i option, e.g.
 

Tìm kiếm

Back
Top