greymd / teip

Masking tape to help commands "do one thing well"
MIT License
569 stars 19 forks source link

Same options like -A, -B, -C of grep #9

Closed greymd closed 1 year ago

greymd commented 4 years ago
teip -g <pattern> -A 3

=> compatible with grep -A -B -C

greymd commented 2 years ago

This idea is no longer helpful. From v2.0.0, -e option can achieve it.

teip -e 'grep -n -A 3  <pattern>'
greymd commented 1 year ago

It is lazy to specify -e option. It is good idea to implement -A option as an alias of -e option.

greymd commented 1 year ago

Add alias options -A,-B,-C,--awk and --sed options were released at v2.2.0 Close