2
0
mirror of https://github.com/chubin/cheat.sheets synced 2024-11-15 06:12:59 +00:00
cheat.sheets/sheets/rip

6 lines
100 B
Plaintext
Raw Normal View History

2017-05-08 20:27:00 +00:00
# regex into pattern
# convert stream in JSON
ls | rip '(.*)\.(.*)' '{"name": "$1", "ext": "$2"}'