Created
October 25, 2018 23:42
-
-
Save yangshun/e6552aa0f52c50ec4683640a53935f50 to your computer and use it in GitHub Desktop.
This file contains 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
#!/bin/bash | |
text="/** | |
* Copyright (c) 2017-present, Facebook, Inc. | |
* | |
* This source code is licensed under the MIT license found in the | |
* LICENSE file in the root directory of this source tree. | |
*/ | |
" | |
for f in $(find ./**/*.js -type f) | |
do | |
content=$(cat $f) | |
echo "$text | |
$content" > $f | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment