Skip to content

Instantly share code, notes, and snippets.

View pkolomeitsev's full-sized avatar

Pavel Kolomeitsev pkolomeitsev

View GitHub Profile
@pkolomeitsev
pkolomeitsev / remove_closing_tags.sh
Created April 15, 2019 11:54 — forked from fabarea/remove_closing_tags.sh
Recursively remove the php closing tag `?>` and any following blank lines from the end of any PHP file. Source directories can be configured.
#!/bin/bash
###############################
# Recursively remove the closing php tag `?>` and any following blank lines from the
# end of any PHP file. Source directories can be configured.
#
# Author: Fabien Udriot <fabien.udriot@ecodev.ch>
# Date: 2014-02-11
###############################