omnipaste

52 character 'comment' competition solution

whoCreated: kanaka whenCreated: 2006-04-28 11:53:39 mimetype: text/plain
download   paste more
#!/bin/bash
X=$1;sed s/#/^G#/|cpp -P -C -D$X="/^G* $X */"|sed s/^G//g

# Note: ^G must be a literal Ctrl-G
# Note: cpp after 3.3.X has line-continuation behavior that
#       will give valid but less desirable output.

omnipaste