awk
awk
yeah, command line utils!
prepend before each line
input:
a
b
cwhat you want:
* a
* b
* chow to achieve this:
cat input | awk '{print "* " $0;}'get odd and even lines
even:
echo $text | NR%2==0odd:
echo $text | NR%2==1cut / skip line
awk 'NR>1' # start after 1st line, use 2, 3 etc.
awk 'NR>1 {print $1}'