Vim needs to add new content at the beginning and end of each line: find a batch of html files from the current directory and use an Html file to express their addresses with hyperlink, this allows the browser to access other pages only through this page. 1. find.-iname & quot; * valid *. * & quot ;...
Vim needs to add new content at the beginning and end of each line: find a batch of html files from the current directory and use an Html file to express their addresses with hyperlink,
This allows the browser to access other pages only through this page. 1. find. -iname "* valid *. * "> valid.txt and the file name will exist in the following format :. /ValidityState-002.html. /ValidityState-customError-expected.txt. /ValidityState-customError.html. /ValidityState-patternMismatch-expected.txt. /ValidityState-patternMismatch-unsupported-expected.txt. /ValidityState-patternMismatch-unsupported.html. /ValidityState-patternMismatch.html. /ValidityState-rangeOverflow-expected.txt. /ValidityState-rangeOve Rflow.html... Www.2cto.com 2. the form I want is :. /ValidityState-002.html... solution:. cat valid | while read line; do echo "$ line> $ line"> vv.html; doneb. vi vv.html
The file content is as follows: "href =. /ValidityState-002.html>. /ValidityState-002.html ", to add labels at the beginning and end of each line, fortunately there is vi command c. add "d. add the "" vim command at the end of each line: % s/$/<\/a> by fengyv
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.