PO8

strip javascript comments and blank lines

PO8
Jul 29th, 2016
165
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.16 KB | None | 0 0
  1. #!/bin/sh
  2. sed \
  3. -e 's=//.*$==' \
  4. -e '/\/\*.*\*\//d' \
  5. -e '/^\/\*/d' \
  6. -e '/^ \*/d' \
  7. -e '/^ \*\//d' \
  8. -e '/^[ ]*$/d' \
  9. "$@"
Advertisement
Add Comment
Please, Sign In to add comment