Last active
August 7, 2019 08:55
-
-
Save nitanshu/9c556929fabac274c254a4e893ca08b1 to your computer and use it in GitHub Desktop.
It will prepend lines of text in all the files with specific extension
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for file in $(find . -name "*.ts"); do | |
echo Processing $file | |
cat license.txt $file > $file.modified | |
mv $file.modified $file | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Take this file and put in the folder where you want all special extension file to have "text" stored in license.txt