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
To print the N first characters you can remove the N+1 characters up to the end of line:
$ sed 's/.//5g' <<< "defn-test" defn