- 论坛徽章:
- 0
|
把perl脚本文件chmod一下,变成可执行,最好名字简单点,然后放到/usr/bin下面,就可以像用shell命令一样使用了,不知道你是不是这个意思。
我自己写得多文件查找就是这样用的- $ fs
- usage: fs [-t filetype]/[-n num]/[-a] [string] [directory](opt)
- To find the string under the directory
- -t filetype Search the file in filetype
- -n num Print [num] items
- -a whole string match
- -l num the max level deepth of directory you want to search
- -N num select files which contain string of num or more times
- -c Match case
- -i display the line number
- -f filename find the file
- [string] the string want to search
- [directory] the directory to search, the default is the current one
复制代码 |
|