Skip to content

Find command examples (grep, tar, npm, apt, etc)

Notifications You must be signed in to change notification settings

blasrodri/cmdex

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

79 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Command Example (WIP)

This project is an attempt to simplify the life of those users needing some help when using a command they're unfamiliar with. Instead of having to go to a web engine or a QA website, just query it here.

Installation

cargo install cmdex

Basic Examples

Find all examples of the find command

cmdex find

find - Find files in current working dir with *.txt extension and replace string inplace with sed
Platforms: all
find $(pwd) -name "*.txt" -exec sed -i 's/foo/bar/g {} \;'
Authors: Blas Rodriguez Irizar <rodrigblas@gmail.com>

find - Find all the files whose name is foo.txt in a current working directory
Platforms: all
find . -name foo.txt
Authors: Blas Rodriguez Irizar <rodrigblas@gmail.com>

Find all examples that match a certain query on the description of the command example

cmdex -q="shutdown now"

shutdown - Shutdown your computer right now
Platforms: all
sudo shutdown now
Authors: Blas Rodriguez Irizar <rodrigblas@gmail.com>

Goals

  • CLI Support
  • HTTP Support
  • Fuzzy search
  • User voting the effectiveness of an example

About

Find command examples (grep, tar, npm, apt, etc)

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published