Skip to content

Instantly share code, notes, and snippets.

@aliparsai
aliparsai / comment-cleanup.sh
Last active May 30, 2022 12:01
Remove comments from Latex files
#!/bin/bash
## Clean-up Comments from Latex Source Files
## Copyright (c) 2020 Ali Parsai ali@parsai.net
##
## Dependencies: sponge from moreutils, latexpand, sed, cat, mv, date, cp
##
## CAUTION: Use version control or backup your files before using this script.
##
## How to use: comment-cleanup.sh TEX_FILE(S)