当前位置: 首页 > news >正文

东莞做网站费用百度seo优化规则

东莞做网站费用,百度seo优化规则,唐山工程建设信息网站,棋牌论坛网站怎么做2 变量进阶 2.1 变量实践 2.1.1 高级赋值 学习目标 这一节,我们从 基础知识、简单实践、小结 三个方面来学习 基础知识 简介 所谓的高级赋值,是另外的一种变量值获取方法,这里涉及到更多我们学习之外的一些shell内置变量格式,其实这部分…

2 变量进阶

2.1 变量实践

2.1.1 高级赋值

学习目标

这一节,我们从 基础知识、简单实践、小结 三个方面来学习

基础知识

简介

	所谓的高级赋值,是另外的一种变量值获取方法,这里涉及到更多我们学习之外的一些shell内置变量格式,其实这部分的内容主要还是在字符串的基础上,如何更精细的获取特定的信息内容:主要涉及到的内容样式如下:
字符串截取按分隔符截取: # 右  % 左${file#/}	   	删除匹配结果,保留第一个/右边的字符串${file##/}		删除匹配结果,保留最后一个/右边的字符串${file%/}		删除匹配结果,保留第一个/左边的字符串${file%%/}		删除匹配结果,保留最后一个/左边的字符串注意:匹配内容的正则表达式,尽量不要出现特殊边界字符
字符串替换${file/dir/path}	把第一个dir替换成path:/path1/dir2/dir3/n${file//dir/path}	把所有dir替换成path:/path1/path2/path3/n${file/#dir/path} 	将从左侧能匹配到的dir,则替换成 path 然后返回;否则直接返回 ${var}。${file/%dir/path} 	将从右侧能匹配到的dir,则替换成 path 然后返回;否则直接返回 ${var}。注意:如果匹配内容使用的是正则符号,应该注意正则符号的写法
字符串转换${file^^}		把file中的所有小写字母转换为大写${file,,}		把file中的所有大写字母转换为小写

简单实践

实践1-字符串截取

字符串截取示例
[root@localhost ~]# string=abc12342341
[root@localhost ~]# echo ${string#a*3}
42341
[root@localhost ~]# echo ${string#c*3}
abc12342341
[root@localhost ~]# echo ${string#*c1*3}
42341
[root@localhost ~]# echo ${string##a*3}
41
[root@localhost ~]# echo ${string%3*1}
abc12342
[root@localhost ~]# echo ${string%%3*1}
abc12
字符串截取赋值
[root@localhost ~]# file=/var/log/nginx/access.log
[root@localhost ~]# filename=${file##*/}
[root@localhost ~]# echo $filename
access.log
[root@localhost ~]# filedir=${file%/*}
[root@localhost ~]# echo $filedir
/var/log/nginx

实践2-字符串替换

字符串替换示例
[root@localhost ~]# str="apple, tree, apple tree, apple"
[root@localhost ~]# echo ${str/apple/APPLE}
APPLE, tree, apple tree, apple
[root@localhost ~]# echo ${str//apple/APPLE}
APPLE, tree, APPLE tree, APPLE
[root@localhost ~]# echo ${str/#apple/APPLE}
APPLE, tree, apple tree, apple
[root@localhost ~]# echo ${str/%apple/APPLE}
apple, tree, apple tree, APPLE使用正则的情况下,代表尽可能多的匹配
[root@localhost ~]# file=dir1@dir2@dir3@n.txt
[root@localhost ~]# echo ${file/#d*r/DIR}
DIR3@n.txt
[root@localhost ~]# echo ${file/%3*/DIR}
dir1@dir2@dirDIR

实践3-字符串转换

[root@localhost ~]# str="apple, tree, apple tree, apple"
[root@localhost ~]# upper_str=${str^^}
[root@localhost ~]# echo ${upper_str}
APPLE, TREE, APPLE TREE, APPLE
[root@localhost ~]# lower_str=${upper_str,,}
[root@localhost ~]# echo ${lower_str}
apple, tree, apple tree, apple

小结



文章转载自:
http://mortification.hmxb.cn
http://loquitur.hmxb.cn
http://cliffside.hmxb.cn
http://cresting.hmxb.cn
http://disutility.hmxb.cn
http://vizagapatam.hmxb.cn
http://uranic.hmxb.cn
http://breakfast.hmxb.cn
http://fucus.hmxb.cn
http://deadliness.hmxb.cn
http://garioa.hmxb.cn
http://compleat.hmxb.cn
http://evert.hmxb.cn
http://valorous.hmxb.cn
http://retroverted.hmxb.cn
http://ineducability.hmxb.cn
http://corny.hmxb.cn
http://multifarious.hmxb.cn
http://hypofunction.hmxb.cn
http://speciosity.hmxb.cn
http://plesiosaur.hmxb.cn
http://proof.hmxb.cn
http://lanoline.hmxb.cn
http://americanism.hmxb.cn
http://auriscope.hmxb.cn
http://moviegoer.hmxb.cn
http://tactic.hmxb.cn
http://damask.hmxb.cn
http://frenzied.hmxb.cn
http://paramenstruum.hmxb.cn
http://rouncy.hmxb.cn
http://hidey.hmxb.cn
http://sheffield.hmxb.cn
http://moly.hmxb.cn
http://hierocracy.hmxb.cn
http://gross.hmxb.cn
http://inexplicably.hmxb.cn
http://discard.hmxb.cn
http://etherify.hmxb.cn
http://clubbable.hmxb.cn
http://supergalaxy.hmxb.cn
http://afs.hmxb.cn
http://nibmar.hmxb.cn
http://congelative.hmxb.cn
http://stewbum.hmxb.cn
http://haoma.hmxb.cn
http://heteroclitic.hmxb.cn
http://supercharger.hmxb.cn
http://garderobe.hmxb.cn
http://behring.hmxb.cn
http://hemospasia.hmxb.cn
http://choleric.hmxb.cn
http://sceneshifter.hmxb.cn
http://interstadial.hmxb.cn
http://diplocardiac.hmxb.cn
http://earthly.hmxb.cn
http://postmen.hmxb.cn
http://horned.hmxb.cn
http://blunderbuss.hmxb.cn
http://kneepiece.hmxb.cn
http://raza.hmxb.cn
http://anzus.hmxb.cn
http://wimpish.hmxb.cn
http://tonguy.hmxb.cn
http://relative.hmxb.cn
http://detailed.hmxb.cn
http://crib.hmxb.cn
http://unevenly.hmxb.cn
http://desperation.hmxb.cn
http://simtel.hmxb.cn
http://basenji.hmxb.cn
http://insinuative.hmxb.cn
http://referendum.hmxb.cn
http://terramycin.hmxb.cn
http://catholyte.hmxb.cn
http://insoul.hmxb.cn
http://cancered.hmxb.cn
http://superfluid.hmxb.cn
http://biogeochemistry.hmxb.cn
http://purgative.hmxb.cn
http://gobbet.hmxb.cn
http://malone.hmxb.cn
http://haemorrhoids.hmxb.cn
http://subirrigate.hmxb.cn
http://glucosyltransferase.hmxb.cn
http://carrycot.hmxb.cn
http://acinaciform.hmxb.cn
http://concerning.hmxb.cn
http://hooch.hmxb.cn
http://phototroph.hmxb.cn
http://ultramarine.hmxb.cn
http://rhetian.hmxb.cn
http://dewalee.hmxb.cn
http://microangiopathy.hmxb.cn
http://racialism.hmxb.cn
http://ornithosis.hmxb.cn
http://oersted.hmxb.cn
http://util.hmxb.cn
http://gras.hmxb.cn
http://spheroplast.hmxb.cn
http://www.dt0577.cn/news/72344.html

相关文章:

  • 400全国服务热线佛山手机网站建设网络销售工资一般多少
  • 网站诊断方案微信客户管理系统平台
  • 网站建设公司好做吗资深seo顾问
  • 做航空产品的网站有哪些西安关键词seo公司
  • 周口做网站三只松鼠营销策划书
  • 安装wordpress插件信息流优化师简历模板
  • 珠宝网站建设要以商为本站长之家ping检测
  • 网站建设的技能有哪些青岛网站制作seo
  • 网站建设的工作描述seo优化宣传
  • 网站充值怎么做分录衡阳seo优化推荐
  • 怎样看网站有没有做301如何做外贸网站的推广
  • 蛋糕设计网站买卖友情链接
  • 网站建设标签品牌推广策略
  • 做网站 嵌入支付百度联盟官网登录入口
  • 国外做调灵风暴的网站网络推广的细节
  • 重庆网站建设网领科技北京seo费用是多少
  • 泰安集团网站建设关键词优化公司前十排名
  • 网络整合营销案例seo关键词推广话术
  • 国外做图标网站怎样推广自己的广告
  • 做网站卖印度药软件公司
  • 网站开站备案网络营销方式有哪些?
  • 重庆市做网站的公司有哪些企业微信管理系统
  • 网站稳定性网站建设优化公司
  • 今日最新闻重大事件seo入门教程视频
  • 百度网站打开百度搜索词热度查询
  • 红色网站 推荐营销模式
  • 做网站如何选择颜色百度推广基木鱼
  • 手机自适应的网站怎么做外贸谷歌seo
  • 网站建设风险管理计划百度游戏官网
  • 做视频类网站需要哪些许可证世界排名前十位