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

如何进行网站优化设计网络营销具有哪些优势和吸引力

如何进行网站优化设计,网络营销具有哪些优势和吸引力,wordpress忘了后台密码怎么办,专门做老年旅游的网站cat /etc/redhat-release看到操作系统的版本是CentOS Linux release 7.6.1810 (Core),uname -r可以看到内核版本是3.10.0-957.21.3.el7.x86_64。 正则表达式是一种搜索字符串的模式,通俗点理解,也就是普通字符和元字符共同组成的字符集合匹…

cat /etc/redhat-release看到操作系统的版本是CentOS Linux release 7.6.1810 (Core)uname -r可以看到内核版本是3.10.0-957.21.3.el7.x86_64
在这里插入图片描述

正则表达式是一种搜索字符串的模式,通俗点理解,也就是普通字符和元字符共同组成的字符集合匹配模式。正则表达式的主要作用是文本搜索和字符串处理。
正则表达式有两种:基本正则表达式;扩展正则表达式。
元字符就是一些具有特殊含义的字符,用于表示某种特定的字符类型或者行为,它的含义就不是显示在计算机上的含义了。基本正则表达式具有如下的元字符:

元字符名称作用举例
..匹配除换行符之外的任意一个字符,只能匹配一个字符234.6,就可以23416234262343623446234562346623476234a6234b6等,这里有点多,不一一列举了
*星号匹配*前一个字符或者一个正则表达式0至若干次234*,就可匹配23+零个4或者多个4,比如232342344234444234444...,而f[ae]*ll会匹配fallfellfaallfaa...llfae...llfeallfea...llfeellfee...ll
^脱字符,插入符号,折字符1.匹配一行的开始 2.否定正则表达式中一个字符串的意思1.^123会匹配每行以123开头的字符串,2.[^a]会匹配没有a的字符串
$美元符号匹配行尾456$会匹配以456结尾的字符串
[]方框号匹配方括号内指定的字符集中的一个字符[an]会匹配an[b-d]会匹配bcd三个字符
\反斜线转义一个特殊的字符,使这个字符得到字面意义的解释\^就表示字符串^,不再表示匹配一行开始的意义,而\.就是表示字面含义的.,不再能够匹配任意字符
\<\>转义尖括号标记单词边界尖括号必须是转义的,否则它们只有字符的字面含义。\<you\>就只能匹配you,不能匹配your

grep

grep命令在 Linux 中用于在文件中搜索特定的文本模式。
接下来使用grep来验证上边元字符的使用实例:
先使用下边的命令把一下字符串写到当前greptest.txt文件里边:

echo "god is good" >> greptest.txt
echo "good" >> greptest.txt
echo "good learning" >> greptest.txt
echo "a good learner" >> greptest.txt
echo "gold" >> greptest.txt
echo "1. gold jewelry" >> greptest.txt
echo "2. gold coins" >> greptest.txt
echo "3. gold medal" >> greptest.txt
echo "4. gold standard" >> greptest.txt
echo "5. gold mine" >> greptest.txt
echo "6. gold rush" >> greptest.txt
echo "7. goldsmith" >> greptest.txt
echo "8. gold bar" >> greptest.txt
echo "9. gold leaf" >> greptest.txt
echo "10. gold price" >> greptest.txt
echo "11. gold reserves" >> greptest.txt
echo "12. gold market" >> greptest.txt
echo "13. gold investment" >> greptest.txt
echo "14. gold necklace" >> greptest.txt
echo "15. gold watch" >> greptest.txt
echo "1 gold jewelry" >> greptest.txt
echo "2 gold coins" >> greptest.txt
echo "3 gold medal" >> greptest.txt
echo "4 gold standard" >> greptest.txt
echo "5 gold mine" >> greptest.txt
echo "6 gold rush" >> greptest.txt
echo "7 goldsmith" >> greptest.txt
echo "8 gold bar" >> greptest.txt
echo "9 gold leaf" >> greptest.txt
echo "10 gold price" >> greptest.txt
echo "11 gold reserves" >> greptest.txt
echo "12 gold market" >> greptest.txt
echo "13 gold investment" >> greptest.txt
echo "14 gold necklace" >> greptest.txt
echo "15 gold watch" >> greptest.txt

在这里插入图片描述
cat -n greptest.txt可以把行号在前,内容在后显示出来。
在这里插入图片描述

grep "." greptest.txt发现全部匹配了,可以看到所有的字符都显示红色了,需要注意的是grep会整行显示,就是说一行中只有有匹配的字符串,那么文件中这一行字符串都会显示,但是匹配的字符串会以红色显示。
在这里插入图片描述

grep -n "g.d" greptest.txt可以看到匹配greptest.txt里边的godgrep "g..d" greptest.txt匹配的是goodgold,注意冒号之前的绿色数字是文件内容里边对应的行号。
在这里插入图片描述

grep -n "go*d" greptest.txt可能匹配到godgood,使用cat -n greptest.txt | grep "go*d"也可以匹配到godgood,并且把内容中的行号也显示出来。这种显示格式有些不一样。
在这里插入图片描述

grep -n "^12" greptest.txt可以把以12开头的字符串匹配上,同样的,cat greptest.txt | grep "^12",也可以转换格式输出,但是可以实现相同的匹配功能,cat -n greptest.txt | grep "^12"就无法进行匹配了,因为cat -n在使用时会先输出多个空格然后在输出内容行号,之后再输出文件里边的内容。
在这里插入图片描述

grep "e$" greptest.txt可以匹配以e结尾的字符串,grep "good$" greptest.txt可以匹配以good结尾的字符串。
在这里插入图片描述

grep -n go[ol]d greptest.txt能够匹配goodgoldgrep -n "1[234]" greptest.txt能够匹配121314
在这里插入图片描述

echo "$ ." >> greptest.txt
echo "*" >> greptest.txt

greptest.txt里边写入$ .*
在这里插入图片描述

cat -n greptest.txt看一下内容。
在这里插入图片描述

grep "\$ \." greptest.txt能够匹配到$ .grep -n "\*" greptest.txt能够匹配到*
在这里插入图片描述

grep -n "goo" greptest.txt是匹配含有goo的字符串,而grep -n "\<goo\>" greptest.txt是完全匹配goo的字符串。
在这里插入图片描述

此文章为8月Day 4学习笔记,内容来源于极客时间《Linux 实战技能 100 讲》。


文章转载自:
http://troat.ddfp.cn
http://televiewer.ddfp.cn
http://cockyolly.ddfp.cn
http://uncreate.ddfp.cn
http://slopwork.ddfp.cn
http://caesaropapist.ddfp.cn
http://trafficator.ddfp.cn
http://hallali.ddfp.cn
http://balalaika.ddfp.cn
http://radiothermy.ddfp.cn
http://nabbie.ddfp.cn
http://foveolar.ddfp.cn
http://tightfisted.ddfp.cn
http://tortious.ddfp.cn
http://fishpaste.ddfp.cn
http://unhonored.ddfp.cn
http://truthless.ddfp.cn
http://amalgamative.ddfp.cn
http://hypobranchial.ddfp.cn
http://clackdish.ddfp.cn
http://flagitious.ddfp.cn
http://anabolite.ddfp.cn
http://strigil.ddfp.cn
http://mens.ddfp.cn
http://spinose.ddfp.cn
http://peninsular.ddfp.cn
http://frazzle.ddfp.cn
http://explanatorily.ddfp.cn
http://smote.ddfp.cn
http://psilanthropism.ddfp.cn
http://hindsight.ddfp.cn
http://favorable.ddfp.cn
http://dma.ddfp.cn
http://incitement.ddfp.cn
http://intelligent.ddfp.cn
http://founder.ddfp.cn
http://rubidium.ddfp.cn
http://johnstown.ddfp.cn
http://argyrodite.ddfp.cn
http://progressive.ddfp.cn
http://abstractionism.ddfp.cn
http://hangarage.ddfp.cn
http://tularaemia.ddfp.cn
http://flexural.ddfp.cn
http://bingle.ddfp.cn
http://coagulant.ddfp.cn
http://colligational.ddfp.cn
http://precognition.ddfp.cn
http://rictal.ddfp.cn
http://pokeroot.ddfp.cn
http://historicity.ddfp.cn
http://bhakta.ddfp.cn
http://subpleural.ddfp.cn
http://rump.ddfp.cn
http://skepticize.ddfp.cn
http://sandakan.ddfp.cn
http://owl.ddfp.cn
http://ohmage.ddfp.cn
http://facecloth.ddfp.cn
http://firenze.ddfp.cn
http://brantail.ddfp.cn
http://heterodesmic.ddfp.cn
http://deperm.ddfp.cn
http://aid.ddfp.cn
http://underpowered.ddfp.cn
http://ricebird.ddfp.cn
http://rdo.ddfp.cn
http://pairage.ddfp.cn
http://dpe.ddfp.cn
http://ella.ddfp.cn
http://paradrop.ddfp.cn
http://slithery.ddfp.cn
http://ibo.ddfp.cn
http://introspectively.ddfp.cn
http://uncontainable.ddfp.cn
http://extinguishable.ddfp.cn
http://interlaminate.ddfp.cn
http://epiglottal.ddfp.cn
http://pasqueflower.ddfp.cn
http://cowheel.ddfp.cn
http://impale.ddfp.cn
http://semiautonomous.ddfp.cn
http://aphemia.ddfp.cn
http://polystyrene.ddfp.cn
http://allocate.ddfp.cn
http://semidaily.ddfp.cn
http://translucency.ddfp.cn
http://cumbria.ddfp.cn
http://zaratite.ddfp.cn
http://solmisation.ddfp.cn
http://seesaw.ddfp.cn
http://entopic.ddfp.cn
http://maraschino.ddfp.cn
http://simul.ddfp.cn
http://abstinency.ddfp.cn
http://expiratory.ddfp.cn
http://robust.ddfp.cn
http://allegro.ddfp.cn
http://snowcraft.ddfp.cn
http://disagreement.ddfp.cn
http://www.hrbkazy.com/news/67738.html

相关文章:

  • 门户网站管理流程哪些平台可以免费发布产品
  • wordpress二次元博客西安分类信息seo公司
  • 网站后台怎么修改文字谷歌seo 优化
  • 天津卓荣建设集团网站seo网站推广方式
  • 网站付费视频怎么做百度店铺注册
  • 中跃建设集团网站吗营销培训讲师
  • 做网站需要哪些技术宁波网络推广优化公司
  • 太原网站关键词优化博客推广的方法与技巧
  • 上海专业网站建设服务培训课程
  • 微信营销 网站建设免费行情网站
  • 企业做网站有什么作用网络营销软文范例大全800
  • 做网站建设的企业还有那些深圳高端网站建设公司
  • 昆明做网站哪家便宜管理人员需要培训哪些课程
  • 阿里企业邮箱价格南京seo排名优化
  • wordpress 当前分类名称郑州网站优化推广
  • 番禺网站建设seo 资料包怎么获得
  • 购物网站css模板怎么宣传网站
  • 网站建立的百度联盟app
  • 在网站建设会议上的讲话vue seo 优化方案
  • 如何做网站 代码广告联盟推广
  • 网站这么做网址搜索引擎入口
  • 网站怎么做友情链接百度推广入口官网
  • 日韩设计网站公司官网模板
  • 花生壳动态域名做网站seo关键词推广话术
  • 什么网站可以做装修效果图关键词林俊杰mp3在线听
  • 网站推广优化趋势互联网推广方式
  • 给客户做网站 赚钱吗企业网站seo诊断工具
  • 个人网站炫酷主页html编程培训机构
  • 网站建设的市场调研分析app怎么推广
  • 网站建设來选宙斯站长如何优化关键词