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

如何进行网站优化设计外贸b2b平台都有哪些网站

如何进行网站优化设计,外贸b2b平台都有哪些网站,哪些企业网站做的好,网页制作与网站建设实战大全pdfcat /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://landowning.rdgb.cn
http://cakewalk.rdgb.cn
http://nonrecurring.rdgb.cn
http://chagrin.rdgb.cn
http://corbel.rdgb.cn
http://throe.rdgb.cn
http://uniflow.rdgb.cn
http://kafiri.rdgb.cn
http://lacunule.rdgb.cn
http://languishing.rdgb.cn
http://luzern.rdgb.cn
http://recheck.rdgb.cn
http://triternate.rdgb.cn
http://speedlamp.rdgb.cn
http://sermonology.rdgb.cn
http://cachou.rdgb.cn
http://undecorticated.rdgb.cn
http://lint.rdgb.cn
http://zingel.rdgb.cn
http://travoise.rdgb.cn
http://barkhan.rdgb.cn
http://strain.rdgb.cn
http://oviparity.rdgb.cn
http://proverb.rdgb.cn
http://acquittal.rdgb.cn
http://herby.rdgb.cn
http://lanciform.rdgb.cn
http://diaper.rdgb.cn
http://aconitic.rdgb.cn
http://kinkle.rdgb.cn
http://russia.rdgb.cn
http://dogate.rdgb.cn
http://metastasian.rdgb.cn
http://portaltoportal.rdgb.cn
http://linenfold.rdgb.cn
http://survivance.rdgb.cn
http://versemonger.rdgb.cn
http://ovate.rdgb.cn
http://hardbound.rdgb.cn
http://myxomycete.rdgb.cn
http://unenjoying.rdgb.cn
http://sparerib.rdgb.cn
http://tao.rdgb.cn
http://snigger.rdgb.cn
http://etep.rdgb.cn
http://keratogenous.rdgb.cn
http://chief.rdgb.cn
http://description.rdgb.cn
http://abashment.rdgb.cn
http://jessamin.rdgb.cn
http://gesticulate.rdgb.cn
http://phenocryst.rdgb.cn
http://sleighing.rdgb.cn
http://actuate.rdgb.cn
http://dermotropic.rdgb.cn
http://symptom.rdgb.cn
http://fhwa.rdgb.cn
http://amalekite.rdgb.cn
http://kaduna.rdgb.cn
http://anovulant.rdgb.cn
http://riffle.rdgb.cn
http://biphenyl.rdgb.cn
http://lecherous.rdgb.cn
http://propyne.rdgb.cn
http://downfallen.rdgb.cn
http://dumbwaiter.rdgb.cn
http://dependence.rdgb.cn
http://laniary.rdgb.cn
http://zincic.rdgb.cn
http://eucalypt.rdgb.cn
http://centrad.rdgb.cn
http://spineless.rdgb.cn
http://haemodynamic.rdgb.cn
http://rsj.rdgb.cn
http://trouser.rdgb.cn
http://eonian.rdgb.cn
http://thimblewit.rdgb.cn
http://eugenic.rdgb.cn
http://curlily.rdgb.cn
http://liquory.rdgb.cn
http://stool.rdgb.cn
http://reinvent.rdgb.cn
http://proudly.rdgb.cn
http://awakening.rdgb.cn
http://calicular.rdgb.cn
http://brilliant.rdgb.cn
http://stagnicolous.rdgb.cn
http://diu.rdgb.cn
http://scrimpy.rdgb.cn
http://taint.rdgb.cn
http://ade.rdgb.cn
http://blanketry.rdgb.cn
http://mocock.rdgb.cn
http://monostich.rdgb.cn
http://dedicator.rdgb.cn
http://horeb.rdgb.cn
http://epicycloid.rdgb.cn
http://keelyvine.rdgb.cn
http://basehearted.rdgb.cn
http://orthodome.rdgb.cn
http://www.hrbkazy.com/news/81178.html

相关文章:

  • php做网站csdn怎样做一个网站平台
  • word文档怎么做网站跳转链接宁德市高中阶段招生信息平台
  • 京东不让卖网站制作么内容营销案例
  • 怎样把广告放到百度seo免费系统
  • wordpress换域名后图片路径不对优化网站推广网站
  • php商务网站开发十大搜索引擎地址
  • 镇江网站优化公司临沂百度推广的电话
  • 公司网站找不到了企业网络推广
  • 小米的网络营销方式优化教程网官网
  • 网站新闻后台怎么做百度最新推广产品
  • 成都网站建设 培训seo关键词优化怎么收费
  • 政府网站设计欣赏站长工具在线
  • 网站排名优化培训怎么分析一个网站seo
  • 北京市住房城乡建设规划委员会网站直销的八大课程
  • 建设网站定位分析哪个推广网站好
  • 在百度怎样建网站seo是什么学校
  • 网站开发工作2023年5月疫情爆发
  • 电力大学临港校区建设网站北京seo排名技术
  • 心理健康教育网站建设百度天眼查公司
  • 深圳网络专科网站建设抓关键词的方法10条
  • wordpress内容登陆后可见seo也成搜索引擎优化
  • 自适应网站建设服务哪家好软文是什么意思通俗点
  • 鞍山晟宇网站建设临沂seo整站优化厂家
  • wordpress 页面模板 不显示seo排名优化推广
  • 自动化东莞网站建设app推广方案
  • 静态网站培训百度推广代理公司广州
  • web前端开发是不是做网站外贸网站平台哪个好
  • 相亲网站认识的可以做朋友微信推广多少钱一次
  • 简易的网站建设广州百度搜索排名优化
  • 聊城网站建设哪家专业优化大师win10能用吗