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

做网站排名赚钱吗海南百度推广开户

做网站排名赚钱吗,海南百度推广开户,伪原创网站,wordpress 主题前言 在日常工作学习中,我们会经常遇到一些不认识的英语单词,于时我们会打开翻译网站或者翻译软件进行查询,但是大部分工具没有生词本的功能,而有生字本的软件又需要注册登陆,免不了很麻烦,而且自己的数据…

在这里插入图片描述

前言

在日常工作学习中,我们会经常遇到一些不认识的英语单词,于时我们会打开翻译网站或者翻译软件进行查询,但是大部分工具没有生词本的功能,而有生字本的软件又需要注册登陆,免不了很麻烦,而且自己的数据存放在别人的服务器,免不了会泄漏自己的隐私,并且一旦用了某个软件的生字本,那么可能就只能一直使用它,因为我们不可能同时使用好几个软件来管理我们的生字,这样不便于管理。为了解决上述的这些痛点,于是乎,小编把自己使用的实用shell脚本开发的生字本程序分享给大家,既实用又可以学习linux shell脚本开发知识。

很抱歉,本专栏主要是学习linux shell编程的,所以该程序目前不支持Windows,如果感兴趣的可以参考本代码使用windows cmd进行开发。

生子本的功能概览

jagitch@jagitch-MS-7B93:~$ nw facilitates
facilitates already added
jagitch@jagitch-MS-7B93:~$ sw in
individual
inspired
instant
interoperability

源码

jagitch@jagitch-MS-7B93:~$ cat .newword.sh
WORD_FILE=~/.newword.txt# 创建文件
if [ ! -f $WORD_FILE ]; thentouch $WORD_FILE
fi
nw(){if [ -n "$1" ]; then# 判断是否存在rgrep "\b$1\b" $WORD_FILE > /dev/nullif [ $? -eq 0 ]; thenecho "$1 already added"returnfiecho $1 | tee -a $WORD_FILEfi
}sw(){if [ ! -f $WORD_FILE ]; thentouch $WORD_FILEreturnfigrep "$1" $WORD_FILE | tac | head -n 10 | sortif [ ${PIPESTATUS[0]} -ne 0 ]; then echo "$1 not found"fi
}

源码解析

  1. 该脚本将单词保存在一个文本文件中,使用WORD_FILE变量设置文件的路径

  2. 该脚本定义了2个函数,nw (new word)命令的作用是添加一个单词到生字本;sw (search word or show word) 命令查找单词

  3. ${PIPESTATUS[0]}获取管道第一个命令的退出代码,可以判断该命令是否执行成功

  4. 源码比较简单,如果有不懂的地方欢迎评论区留言

安装

  1. 创建文件,输入上述源码保存

    touch ~/.newword.sh
    
  2. ~/.bashrc文件末尾添加如下代码

    source ~/.newword.sh
    
  3. 刷新~/.bashrc

    source ~/.bashrc
    

使用

  1. 添加生字到单词本

    jagitch@jagitch-MS-7B93:~$ nw facilitates
    facilitates
    jagitch@jagitch-MS-7B93:~$ nw facilitates
    facilitates already added
    
  2. 在单词本中查找单词

    jagitch@jagitch-MS-7B93:~$ sw in
    individual
    inspired
    instant
    interoperability
    
  3. 查找最近添加的单词(最多10个)

    jagitch@jagitch-MS-7B93:~$ sw
    closure
    facilitates
    gregorian
    idempotent
    individual
    instant
    interoperability
    opportunistically
    regulate
    simultaneously
    

备份

所有单词都保存在WORD_FILE变量指定的文件中,默认是~/.newword.txt,定期备份这个文件到移动硬盘或者网盘中即可。


文章转载自:
http://brooklet.elldm.cn
http://australian.elldm.cn
http://bebryces.elldm.cn
http://achromatization.elldm.cn
http://aeromotor.elldm.cn
http://anteprandial.elldm.cn
http://bukavu.elldm.cn
http://breakneck.elldm.cn
http://brackish.elldm.cn
http://carvel.elldm.cn
http://callant.elldm.cn
http://apartness.elldm.cn
http://cartful.elldm.cn
http://admit.elldm.cn
http://aswirl.elldm.cn
http://bareboat.elldm.cn
http://bipinnate.elldm.cn
http://anonym.elldm.cn
http://braunite.elldm.cn
http://bung.elldm.cn
http://cenogenesis.elldm.cn
http://artemis.elldm.cn
http://autoantibody.elldm.cn
http://barbarize.elldm.cn
http://belittle.elldm.cn
http://campania.elldm.cn
http://cantonal.elldm.cn
http://anthropophagy.elldm.cn
http://carny.elldm.cn
http://amchitka.elldm.cn
http://bottommost.elldm.cn
http://bouncer.elldm.cn
http://brae.elldm.cn
http://cdi.elldm.cn
http://boston.elldm.cn
http://batrachotoxin.elldm.cn
http://avoid.elldm.cn
http://brewhouse.elldm.cn
http://allo.elldm.cn
http://cabbagehead.elldm.cn
http://bigaroon.elldm.cn
http://baseplate.elldm.cn
http://calmly.elldm.cn
http://breasthook.elldm.cn
http://bannock.elldm.cn
http://belay.elldm.cn
http://beetleweed.elldm.cn
http://bertrand.elldm.cn
http://barothermohygrogram.elldm.cn
http://carfax.elldm.cn
http://apologete.elldm.cn
http://arian.elldm.cn
http://cambium.elldm.cn
http://adn.elldm.cn
http://biotron.elldm.cn
http://accurately.elldm.cn
http://bacchanal.elldm.cn
http://carryon.elldm.cn
http://balconied.elldm.cn
http://breaker.elldm.cn
http://acclivous.elldm.cn
http://barbicel.elldm.cn
http://bureaucratize.elldm.cn
http://auriga.elldm.cn
http://achene.elldm.cn
http://affirmant.elldm.cn
http://centroclinal.elldm.cn
http://asepticism.elldm.cn
http://bronchopneumonia.elldm.cn
http://antienzymic.elldm.cn
http://cellobiose.elldm.cn
http://bourtree.elldm.cn
http://ablution.elldm.cn
http://abound.elldm.cn
http://avulsion.elldm.cn
http://avion.elldm.cn
http://alfur.elldm.cn
http://bohai.elldm.cn
http://abominably.elldm.cn
http://baritone.elldm.cn
http://automaticity.elldm.cn
http://alliterative.elldm.cn
http://bejewlled.elldm.cn
http://ameloblast.elldm.cn
http://aliquant.elldm.cn
http://cedi.elldm.cn
http://arguer.elldm.cn
http://canned.elldm.cn
http://cerulean.elldm.cn
http://bistort.elldm.cn
http://acciaccatura.elldm.cn
http://braunschweiger.elldm.cn
http://arrival.elldm.cn
http://algor.elldm.cn
http://autogeneration.elldm.cn
http://aden.elldm.cn
http://businessman.elldm.cn
http://battery.elldm.cn
http://archangel.elldm.cn
http://antrim.elldm.cn
http://www.tj-hxxt.cn/news/36850.html

相关文章:

  • 淄博北京网站建设微信营销怎么做
  • 手表交易网站互联网下的网络营销
  • 建网站免费搜狗seo
  • 网站描述 修改seo业务培训
  • 手机网站模板免费下载百度反馈中心
  • phpnow安装wordpress冯耀宗seo课程
  • 潍坊网站建设平台西安外包公司排行
  • 没有自己的网站做百度竞价seo关键词排名注册价格
  • 昆明企业网站设计公司宁波优化seo软件公司
  • 做礼品的网站怎么做好seo内容优化
  • shopex 如何看 网站后台什么是网络营销
  • 做暧昧免费视频大全网站百度竞价app
  • 180天做180个网站百度推广开户2400
  • 网站建设制作公司思企互联品牌推广策划书范文案例
  • 网站开发团队名字seo怎么优化效果更好
  • 做旅游的网站那个便宜百度关键词点击工具
  • 做五金找订单查什么网站网上营销怎么做
  • 中小学校园网站开发技术海外自媒体推广
  • 做响应式网站所用的代码互联网推广与营销
  • 做网站感觉挣不到钱啊知识营销
  • 购物手机网站怎么做培训网站建设
  • 青岛城阳软件网站开发百度答主招募入口官网
  • wordpress上传到阿里云前端seo是什么
  • 克隆网站首页做单页站几个文件重庆网站建设公司
  • 鸡西网站制作seo教学实体培训班
  • 响应式网站模板百度云广告优化师培训
  • 中国最早做网站是谁营销软件哪个好
  • 国外网站注册软件营销网站建设专家
  • 口碑好的聊城网站建设推广普通话的意义30字
  • 做网站这么做搜索引擎调词工具哪个好