linux命令网

当前位置:linux命令 > linux常用命令

look命令 – 查询单词

look指令用于英文单字的查询。您仅需给予它欲查询的字首字符串,它会显示所有开头字符串符合该条件的单字。

语法格式:look [参数] [字符串] [文件]

常用参数:

-a使用另一个字典文件web2,该文件也位于/usr/dict目录下
-d 只对比英文字母和数字,其余一慨忽略不予比对
-f 忽略字符大小写差别。
-t <字尾字符串> 设置字尾字符串

参考示例

查询file文件中以L开头的行:

[root@linuxmingling ~]# cat file 
LINUX!
Linux is a free unix-type opterating system.
This is a linux testfile!
Linux test
[root@linuxmingling ~]# look L file
LINUX!
Linux is a free unix-type opterating system.

标签单词 查询


相关linux命令
苏ICP备2022026517号-3  |   苏公网安备 32081202000317号
淮安先皓网络科技有限公司 © 版权所有  联系我们