The sed of the Linux command implements the first line of a file to add characters #

Source: Internet
Author: User

Demand:

Add the BUILD.SBT file,the line to the line, and the beginning of the comment #

650) this.width=650; "Src=" https://s5.51cto.com/wyfs02/M00/9E/61/wKiom1mP5TrScvadAADjZLqiabA210.png-wh_500x0-wm_ 3-wmp_4-s_1256233124.png "style=" Float:none; "title=" 001.png "alt=" Wkiom1mp5trscvadaadjzlqiaba210.png-wh_50 "/>

The command is as follows:

#sed-i "45,77s/^/#/g" BUILD.SBT

650) this.width=650; "Src=" https://s5.51cto.com/wyfs02/M02/9E/50/wKioL1mP5TqDZSdZAAAP0dqN4lo872.png-wh_500x0-wm_ 3-wmp_4-s_1779129336.png "title=" 002.png "style=" Float:none; alt= "Wkiol1mp5tqdzsdzaaap0dqn4lo872.png-wh_50"/>

View Files

650) this.width=650; "Src=" https://s5.51cto.com/wyfs02/M00/9E/61/wKiom1mP5TrCozRNAAC0LQ1wSLM961.png-wh_500x0-wm_ 3-wmp_4-s_3742240509.png "title=" 003.png "style=" Float:none; alt= "Wkiom1mp5trcozrnaac0lq1wslm961.png-wh_50"/>

If you are modifying more than one file at the same time, you can add files directly later, separated by spaces between the files.


This article is from the "Xej Distributed Studio" blog, so be sure to keep this source http://xingej.blog.51cto.com/7912529/1955897

The sed of the Linux command implements the first line of a file to add characters #

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.