Using sed what is an one liner to print the first n characters? I am doing the following:
sed
grep -G \'defn -test.*\' OctaneFullTest.clj
Don't use sed, use cut:
cut
grep .... | cut -c 1-N
If you MUST use sed:
grep ... | sed -e 's/^\(.\{12\}\).*/\1/'