licensecheck man page
licensecheck — simple license checker for source files
licensecheck [options...] path [path...]
licensecheck attempts to determine the license that applies to each file passed to it, by searching the start of the file for text belonging to various licenses.
If any of the arguments passed are directories, licensecheck will add the files contained within to the list of files to process.
Copyright and License
This program is based on the script "licensecheck" from the KDE SDK, originally introduced by Stefan Westerfeld
Copyright © 2007, 2008 Adam D. Barratt Copyright © 2012 Francesco Poli Copyright © 2016 Jonas Smedegaard
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see <https://www.gnu.org/licenses/>.