Skip to main content
  1. Projects/

rock

·119 words·1 min
Jake Roggenbuck
Author
Jake Roggenbuck
I am currently studying Computer Science

Rock
Rust
#

A simple command line utility for manipulating standard in and out, similar to awk


Install #

git clone https://github.com/JakeRoggenbuck/rock
cargo install --path rock

Usage #

shortlongdescriptionexample
-r--replacereplace a certain string with anotherrock --replace "~" "/home/jake"
-s--splitsplit into multiple lines after a characterrock --split ,

Examples #

echo $PATH | rock -s : | rock -r "/home/jake" "~"

echo "~/Downloads,~/Documents,~/Repos/rock" | rock --replace "~" "/home/jake"

echo "~/Downloads,~/Documents,~/Repos/rock" | rock --split , | rock --replace "~" "/home/jake"

TODO Feature #

-f --filter will filter out something
-b --block will completely block out something
-o --only will only show something
-p --prepend something to the begining
-a --append something the end