2019-06-18 13:31:25 692浏览
今天千锋扣丁学堂Linux培训老师给大家分享一篇关于如何用Linux帮助你拼写的详细介绍,首先Linux为数据分析和自动化提供了各种工具,它也帮助我们解决了一个一直都在纠结的问题——拼写!无论在写每周报告时努力拼出一个单词,还是在提交商业计划书之前想要借助计算机的“眼睛”来找出你的拼写错误。现在我们来看一下它是如何帮助你的。
$ look amelio ameliorable ameliorableness ameliorant ameliorate ameliorated ameliorates ameliorating amelioration ameliorations ameliorativ ameliorative amelioratively ameliorator amelioratory
$ look zetta $
# echo “zettabyte” >> /usr/share/dict/words
$ look nybble /usr/share/dict/jargon nybble nybbles
$ look zet ZETA Zeta zeta zetacism Zetana zetas Zetes zetetic Zethar Zethus Zetland Zetta
$ wc -l /usr/share/dict/words 102402 /usr/share/dict/words
$ wc -l /usr/share/dict/words 479828 /usr/share/dict/words
$ grep ^terra /usr/share/dict/words terrace terrace's terraced terraces terracing terrain terrain's terrains terrapin terrapin's terrapins terraria terrarium terrarium's terrariums
$ grep bytes$ /usr/share/dict/words bytes gigabytes kilobytes megabytes terabytes
$ grep ^[Zz]et /usr/share/dict/words Zeta zeta zetacism Zetana zetas Zetes zetetic Zethar Zethus Zetland Zetta zettabyte
$ ln -s /usr/share/dict/words words $ grep ^[Zz]et words Zeta zeta zetacism Zetana zetas Zetes zetetic Zethar Zethus Zetland Zetta zettabytye
$ echo Did I mispell that? | aspell list mispell $ echo I can hardly wait to try out aspell | aspell list aspell $ echo Did I misspell anything? | aspell list $
$ aspell -c mytext
1) mi spell 6) misplay 2) mi-spell 7) spell 3) misspell 8) misapply 4) Ispell 9) Aspell 5) misspells 0) dispel i) Ignore I) Ignore all r) Replace R) Replace all a) Add l) Add Lower b) Abort x) Exit
$ sudo apt install aspell-fr
$ aspell --lang=fr -c mytext
1) once 6) orné 2) onde 7) ne 3) ondé 8) né 4) onze 9) on 5) orne 0) cône i) Ignore I) Ignore all r) Replace R) Replace all a) Add l) Add Lower b) Abort x) Exit
【关注微信公众号获取更多学习资料】 【扫码进入HTML5前端开发VIP免费公开课】