All Projects → rodkranz → ff

rodkranz / ff

Licence: other
Find Text or File

Programming Languages

go
31211 projects - #10 most used programming language

Labels

Projects that are alternatives of or similar to ff

Kimera Vio Ros
ROS wrapper for Kimera-VIO
Stars: ✭ 182 (+658.33%)
Mutual labels:  cpu
Pubg mobile memory hacking examples
Pubg Mobile Emulator Gameloop Memory Hacking C++ code examples. Ex: Name, Coord, Bones, Weapons, Items, Box, Drop etc.
Stars: ✭ 224 (+833.33%)
Mutual labels:  cpu
Models
Model Zoo for Intel® Architecture: contains Intel optimizations for running deep learning workloads on Intel® Xeon® Scalable processors
Stars: ✭ 248 (+933.33%)
Mutual labels:  cpu
Wgcloud
linux运维监控工具,支持系统信息,内存,cpu,温度,磁盘空间及IO,硬盘smart,系统负载,网络流量等监控,API接口,大屏展示,拓扑图,进程监控,端口监控,docker监控,文件防篡改,日志监控,数据可视化,web ssh,堡垒机,指令下发批量执行,linux面板,探针,故障告警
Stars: ✭ 2,669 (+11020.83%)
Mutual labels:  cpu
Biriscv
32-bit Superscalar RISC-V CPU
Stars: ✭ 208 (+766.67%)
Mutual labels:  cpu
8bit Cpu
Schematics & code for my 74LS-based 8-bit MK1 CPU
Stars: ✭ 232 (+866.67%)
Mutual labels:  cpu
Bmw Yolov4 Inference Api Cpu
This is a repository for an nocode object detection inference API using the Yolov4 and Yolov3 Opencv.
Stars: ✭ 180 (+650%)
Mutual labels:  cpu
Advanced-xv6
Modern improvements for MIT's xv6 OS
Stars: ✭ 26 (+8.33%)
Mutual labels:  cpu
Openseeface
Robust realtime face and facial landmark tracking on CPU with Unity integration
Stars: ✭ 216 (+800%)
Mutual labels:  cpu
Xps15 9560 Bigsur
XPS15-9560-Catalina, Q群:161385229
Stars: ✭ 247 (+929.17%)
Mutual labels:  cpu
Cacule Cpu Scheduler
The CacULE CPU scheduler is based on interactivity score mechanism. The interactivity score is inspired by the ULE scheduler (FreeBSD scheduler).
Stars: ✭ 185 (+670.83%)
Mutual labels:  cpu
Etl
Blazing-fast Expression Templates Library (ETL) with GPU support, in C++
Stars: ✭ 190 (+691.67%)
Mutual labels:  cpu
Forth Cpu
A Forth CPU and System on a Chip, based on the J1, written in VHDL
Stars: ✭ 244 (+916.67%)
Mutual labels:  cpu
Easy Monitor
企业级 Node.js 应用性能监控与线上故障定位解决方案
Stars: ✭ 2,451 (+10112.5%)
Mutual labels:  cpu
Mipt Mips
Cycle-accurate pre-silicon simulator of RISC-V and MIPS CPUs
Stars: ✭ 250 (+941.67%)
Mutual labels:  cpu
V8 Analytics
v8 engine's cpu & heap-memory analytics
Stars: ✭ 181 (+654.17%)
Mutual labels:  cpu
S Tui
Terminal-based CPU stress and monitoring utility
Stars: ✭ 2,825 (+11670.83%)
Mutual labels:  cpu
software-development-resources
Collection of links to great software development resources!
Stars: ✭ 20 (-16.67%)
Mutual labels:  cpu
COExperiment Repo
支持 45 条 MIPS 指令的单周期处理器 -- 计算机组成原理实验 NUAA Spring 2017
Stars: ✭ 23 (-4.17%)
Mutual labels:  cpu
Pm2 Server Monit
Monitor server CPU / Memory / Process / Zombie Process / Disk size / Security Packages / Network Input / Network Output
Stars: ✭ 247 (+929.17%)
Mutual labels:  cpu

Find File

Find File or text in file with go language.


Source Find File

  • Find text or file name
  • Version: 1.2.0
  • License: ISC

How to Compile it

Compile those files from different platforms

Requirements

Compiling to Linux

$ env GOOS=linux GOARCH=arm GOARM=7 go build -o ff main.go

Compiling to MAcOSX

$ env GOOS=darwin GOARCH=386 go build -o ff main.go

Compiling to Windows

$ env GOOS=windows GOARCH=386 go build -o ff.exe main.go

Parameters

Helper:
NAME:    FF - Find Text Or File.
USAGE:   ff [arguments...]
VER:     1.2.0
COMMANDS:
        -exclude-dir:    Exclude dir from reader [default: .bzr,CVS,.git,.hg,.svn] 
        -no-color:       Disable color output [default: false] 
        cis:             Search text case insensitive [default: false] 
        cpu:             Number of CPU you have 4 available [default: 4] 
        d:               Set a specify directory [default: ./] 
        f:               Filter by file name  
        force:           Replace all result without ask. [default: false] 
        reg:             Search by this Regex [default: false] 
        replace:         Replace result to text  
        t:               Text that you are looking for  
        up:              Check update [default: false] 
        ver:             Show the version [default: false] 


Usage

Without parameters will show everything in subfolders.

    $ ff
    [dir] ./g please wait... 
    [dir] admin
    [file] admin/config.dev.ini
    [file] admin/config.ini
    [dir] admin/controller
    [file] admin/controller/AjaxAdminController.php
    [file] admin/controller/AjaxAttributesController.php
    [file] admin/controller/AjaxAuthenticationController.php

	.....

With one parameter will find for text.

	$ ff rodrigo 
    [file] admin/controller/AjaxAdminController.php (lines: 1)
    [7] 	 * @author    Rodrigo Lopes <[email protected]> 
    
    [file] admin/controller/AjaxAttributesController.php (lines: 1)
    [7] 	 * @author    Rodrigo Lopes <[email protected]> 
    
    [file] admin/controller/AjaxCompaniesController.php (lines: 1)
    [7] 	 * @author Rodrigo Lopes <[email protected]> 
    .....

Parameter -f

Parameter -f of file, this parameter you will define the name of file that you should like to filter

	$ ff -f css                                                                                                                                                                                                                   develop  ✭
    [dir] admin/resources/css
    [file] admin/resources/css/adminLogin.css
    [file] admin/resources/css/adminTheme.css
    [file] admin/resources/css/angular-bootstrap-datepicker.css
    [file] admin/resources/css/animate.css
	....

Parameter -t

Parameter -t of text, this text that you will search inside of file.

	$ ff -t rodrigo
    [file] admin/controller/AjaxAdminController.php (lines: 1)
    [7] 	 * @author    Rodrigo Lopes <[email protected]> 
    
    [file] admin/controller/AjaxAttributesController.php (lines: 1)
    [7] 	 * @author    Rodrigo Lopes <[email protected]> 
    
    [file] admin/controller/AjaxCompaniesController.php (lines: 1)
    [7] 	 * @author Rodrigo Lopes <[email protected]> 
    ...

Parameter --cpu

Parameter -cpu, this parameter you will define the number of cpu the program can use.

Normal use:

	$ ff -t log
	ff -t "log"  0.01s user 0.01s system 70% cpu 0.034 total

Four CPU use:

	$ ff -t log -cpu 4
    ff -t "log" -cpu 4  0.01s user 0.01s system *159%* cpu 0.024 total

Parameter -r

With parameter -r as regex will defined that your -t is a regular expression

	$ ff -r -t "(rlopes)|(consectetur)"
	----------------------------------------------------------------------------------------------------
	Path : ./
	Regex: (rlopes)|(consectetur)
	----------------------------------------------------------------------------------------------------
	[File] lookingFor/resources/css/none.txt 
		[1] sit amet, consectetur adipisici
		[4] sit amet, consectetur adipisici
	----------------------------------------------------------------------------------------------------
	[File] lookingFor/resources/css/toastr.css 
		[144] .rlopes { lorem i
	----------------------------------------------------------------------------------------------------
	[File] lookingFor/services.dev.ini 
		[3] omain = ".rlopes.realestat
		[6] = 'http://rlopes.realestat
		[15] = 'http://rlopes.realestat
	----------------------------------------------------------------------------------------------------

Parameter Combination

you can match both of the parameters as -t and -f to create more complex search

	$ ff -t "rlopes" -f ini
	----------------------------------------------------------------------------------------------------
	Path : ./
	File : ini
	Text : rlopes
	----------------------------------------------------------------------------------------------------
	[File] lookingFor/services.dev.ini 
		[3] omain = ".rlopes.realestat
		[6] = 'http://rlopes.realestat
		[15] = 'http://rlopes.realestat
	----------------------------------------------------------------------------------------------------

Parameter -d

The -d parameter will active the debug mode, you can see the time of searching (more things coming soon)

	$ ff -t "rlopes" -f ini -d
	----------------------------------------------------------------------------------------------------
	Path : ./
	File : ini
	Text : rlopes
	----------------------------------------------------------------------------------------------------
	[File] lookingFor/services.dev.ini 
		[3] omain = ".rlopes.realestat
		[6] = 'http://rlopes.realestat
		[15] = 'http://rlopes.realestat
	----------------------------------------------------------------------------------------------------
	final Execution took 2.031182ms

Parameter -v

Show the version of application

    $ ff -version                                                                                                                                                master  ✭
    ----------------------------------------------------------------------------------------------------
            This program has written by Rodrigo Lopes <[email protected]>.
            Only for academic purposes
    ----------------------------------------------------------------------------------------------------
      Version : 1.1.2
      Language: GO Language
      License : ISC
      Project : https://github.com/rodkranz/ff
      Contact : [email protected]
    ----------------------------------------------------------------------------------------------------

Parameter -h

Show the helper and parameters available


Parameter -update

Check if exist an update available of sistem.


Time Execution

The all tests was made in the same computer the folder has 1434 files


The ff running looking for word rlopes

	$ time ff -t rlopes
	----------------------------------------------------------------------------------------------------
	Path : ./
	Text : rlopes
	----------------------------------------------------------------------------------------------------
	[File] resources/css/toastr.css 
		[144] .rlopes { lorem i
	----------------------------------------------------------------------------------------------------
	[File] services.dev.ini 
		[3] omain = ".rlopes.realestat
		[6] = 'http://rlopes.realestat
		[15] = 'http://rlopes.realestat
	----------------------------------------------------------------------------------------------------
	ff rlopes  0,55s user 0,04s system 75% cpu 0,199 total

The ack running looking for word rlopes

	$ time ack rlopes
	resources/css/toastr.css
	144:.rlopes { lorem ipsum }

	services.dev.ini
	3:domain = ".rlopes.realestateid.fixe"
	6:baseUri        = 'http://rlopes.realestateid.fixe'
	15:baseUri        = 'http://rlopes.realestateid.fixe'
    ack rlopes  0,29s user 0,03s system 99% cpu 0,322 total

The grep running looking for word rlopes

    $ time grep -i -r 'rlopes' ./*                                                                                                                                                                                            master  ✗ ✭
    ./jaws/jaws/configuration.dev.ini:site_url    = "http://rlopes.realestateid.fixe"
    ./jaws/jaws/configuration.dev.ini:base_uri    = "rlopes.realestateid.fixe/pixelandia/"
    ./jaws/jaws/services.dev.ini:domain = ".rlopes.realestateid.fixe"
    ./jaws/jaws/services.dev.ini:baseUri        = 'http://rlopes.realestateid.fixe'
    ./jaws/jaws/services.dev.ini:baseUri        = 'http://rlopes.realestateid.fixe'
    ./jaws/jaws/modules_customization/crm/config.dev.ini:base_uri = "http://rlopes.realestateid.fixe/images/"
    ./jaws/jaws/realestate/service/attribute/AttributeService.php: * User: rlopes
    grep --color=auto --exclude-dir={.bzr,CVS,.git,.hg,.svn} -i -r 'rlopes' ./  4,26s user 0,05s system 99% cpu 4,328 total

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].