#!/bin/bashcategories="cat1 cat2 cat3 cat4 cat5"mod_categories="$(echo "$categories" | sed 's/ /\n- /g;1s/^/- /')"echo "$mod_categories"
Standard input is empty
- cat1 - cat2 - cat3 - cat4 - cat5
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!