Skip to content

Phydon/map

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🔧🔀 map

MAnipulate Pipe

change pipe input via regex or as literal string

a better version of this program is sd

Examples

todo: add easy examples

multiline input

search all rust files in the current directory with sf

screenshot

extract the file names from the search results

screenshot

Usage

Short Usage

Usage: map [OPTIONS] [OLD_PATTERN] [NEW_PATTERN] [COMMAND]

Commands:
  log, -L, --log        Show content of the log file
  syntax, -S, --syntax  Show regex syntax information
  help                  Print this message or the help of the given subcommand(s)

Arguments:
  [OLD_PATTERN] [NEW_PATTERN]  Replace a pattern with a new one

Options:
  -n, --num <NUMBER>  Replaces first N matches of a pattern with another string
  -s, --string        Treat the pattern as a literal string
  -h, --help          Print help (see more with '--help')
  -V, --version       Print version

Long Usage

Usage: map [OPTIONS] [OLD_PATTERN] [NEW_PATTERN] [COMMAND]

Commands:
  log, -L, --log        Show content of the log file
  syntax, -S, --syntax  Show regex syntax information
  help                  Print this message or the help of the given subcommand(s)

Arguments:
  [OLD_PATTERN] [NEW_PATTERN]
          Replace a pattern with a new one

Options:
  -n, --num <NUMBER>
          Replaces first N matches of a pattern with another string

  -s, --string
          Treat the pattern as a literal string

  -h, --help
          Print help (see a summary with '-h')

  -V, --version
          Print version

Installation

Windows

via Cargo or get the binary