Linux bash script regex auto replace
Linux bash script regex auto replace
自动替换
/assets/css/0.styles.96df394b.css
=>./assets/css/0.styles.96df394b.css
/assets/css/0.styles.96df394b.css
=>/docs/assets/css/0.styles.96df394b.css
<!DOCTYPE html>
<html lang="en-US">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<title>gui 官方文档</title>
<meta name="generator" content="VuePress 1.8.0">
<link href="https://unpkg.com/element-ui/lib/theme-chalk/index.css" rel="stylesheet">
<script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.min.js"></script>
<script src="https://unpkg.com/element-ui/lib/index.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@babel/standalone/babel.min.js"></script>
<meta name="description" content="gui 是一个基于 element-ui 的 Vue UI 组件库">
<meta name="theme-color" content="#3eaf7c">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<link rel="preload" href="/assets/css/0.styles.96df394b.css" as="style"><link rel="preload" href="/assets/js/app.e9d8c885.js" as="script"><link rel="preload" href="/assets/js/2.91961506.js" as="script"><link rel="preload" href="/assets/js/14.5546c6ea.js" as="script"><link rel="prefetch" href="/assets/js/10.cfc40b36.js"><link rel="prefetch" href="/assets/js/11.e3b5a736.js"><link rel="prefetch" href="/assets/js/12.a5661f90.js"><link rel="prefetch" href="/assets/js/13.dcb7783f.js"><link rel="prefetch" href="/assets/js/3.0fd29f53.js"><link rel="prefetch" href="/assets/js/4.21266814.js"><link rel="prefetch" href="/assets/js/5.b6494cb9.js"><link rel="prefetch" href="/assets/js/6.d2819692.js"><link rel="prefetch" href="/assets/js/7.210709f9.js"><link rel="prefetch" href="/assets/js/8.0ce84226.js"><link rel="prefetch" href="/assets/js/9.65f0c3a5.js">
<link rel="stylesheet" href="/assets/css/0.styles.96df394b.css">
</head>
</html>
bash script
node.js
refs
©xgqfrms 2012-2020
www.cnblogs.com 发布文章使用:只允许注册用户才可以访问!
本文首发于博客园,作者:xgqfrms,原文链接:https://www.cnblogs.com/xgqfrms/p/14317532.html
未经授权禁止转载,违者必究!