Created
September 22, 2023 16:19
-
-
Save b3ll/1d594148739530fb9b4abe5ed2f5540f to your computer and use it in GitHub Desktop.
Revisions
-
Adam Bell created this gist
Sep 22, 2023 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,5 @@ #!/bin/bash INPUT_FILE=$1 START_LINE=`head -n1 $INPUT_FILE` FIXED_TITLE=`echo $START_LINE | titlecase` sed -i '' "1s/$START_LINE/$FIXED_TITLE/" $INPUT_FILE