# regex into pattern # convert stream in JSON ls | rip '(.*)\.(.*)' '{"name": "$1", "ext": "$2"}'