Skip to content

All-in-one console tool for text manipulation, such as grep, sed, cut, tr, awk etc.

License

Notifications You must be signed in to change notification settings

gustavorv86/cutter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cutter

All-in-one console tool for text manipulation, such as grep, sed, cut, tr, awk etc.

Examples

Get all system users:
$ cat /etc/passwd | cutter --split=":" --format="{0}"

Get all system users and homes:
$ cat /etc/passwd | cutter --split=":" --format="{0} {5}"

Get all numbers of the current kernel version:
$ uname -a | cutter --split --format="{6}" --search-and-replace=/-/./ --split="." --format="{0} {1} {2} {3}"

Get interface names:
$ ip link | cutter --filter="UP" --search-and-replace=/:// --split --format="{1}"

Get all IPv4 addresses:
$ ip addr | cutter --filter="inet " --search-and-replace="&/& &" --split --format="{1}"

Get all running process and command line:
$ ps aux | cutter --nfilter="[" --nfilter="/cutter " --nfilter="ps aux" --substring=/65//

About

All-in-one console tool for text manipulation, such as grep, sed, cut, tr, awk etc.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published