среда, 8 октября 2014 г.

Замена find & grep

Давно что-то не писал, но пока особых задумок в плане скриптинга нет, софт в основном подобран. Сегодня об утилите fgr.
Буду краток: мне нравится синтаксис, он довольно удобен и понятнее, проще, чем у find:
> fgr --help
Usage : fgr [OPTIONS]
 Options: [-vVPrMACaiIyLcwxZ] [-fpotkhsmudgeE]] [Path]

fgr: Locate documents and folders on this computer by name or content

Filter:Search for files
Contents:File's contents filtered as plain text.

-v              Verbose output debugging mode.
-V              Show version information

Filter Details

-a              Stay on single filesystem
-P              Print... The unique Process ID that identifies this process.
-D              Find hidden files and directories
-f Filter       To display files which pass the filter (stars and regexps will be processed)
-r              Recursive
-s +KByte       is greater than or equal to (KB): KByte
-s -KByte       is less than or equal to (KB): KByte
-p suid | exe   Set UID(suid) | Executable Text Files (exe)
-o octal        The permissions of the file, in octal notation.
-t Type          any | reg | dir | sym | sock | blk | chr | fifo
                Any (any) Default type
                Regular file (reg)
                Directory (dir)
                Symbolic Link (sym)
                UNIX Socket (sock)
                Block device (blk)
                Character device (chr)
                FIFO (fifo)
-k Minutes      Details: TIME (Previous): Minutes [--> -M | -C | -A]

-h Hours        Details: TIME (Previous): Hours [--> -M | -C | -A]
-d Days         Details: TIME (Previous): Days [--> -M | -C | -A]
-m Month        Details: TIME (Previous): Month(s) [--> -M | -C | -A]
-M TIME Modification Time :TIME (mknod, truncate, utime, write)
-A TIME Access Time :TIME (exec, mknod, pipe, utime, read)
-C TIME Creation Time :TIME (chown, chgrp, chmod, ln)
-u uid          User: uid
-g  gid         Group: gid
-Z              Output  a  zero  byte  (the  ASCII  NULL  character) instead of the character that  normally  follows  a file  name

Content View: --------

-e STRING       Regular expression: STRING
-E STRING       Regular expression(Extended): STRING
-i              Ignore case
-I              Text Files
-L              No match
-c              Line Count
-w              Whole words only
-x              Match whole lines only

 fgr-4.7.4 Copyright (c) 2002-2010 Edscott Wilson Garcia. GPL distribution licence.

0 коммент. :

Отправить комментарий

Следующее Предыдущее Главная страница

Blogger Template by Blogcrowds