Created
April 2, 2020 16:41
-
-
Save dixonge/b1b22f2eed8f1e6749caebf931e52601 to your computer and use it in GitHub Desktop.
Delete a line only if blank in all files in a folder
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
find ./ -type f -exec sed '1{/^$/d}' {} \; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment