Introduction Quickly wanted to write about a method I used to extract 2 lines from one of my posted and add it to all my other posts. clip=$(sed -n '5,6p' file-with-option.md) ls -1 | xargs -i sed -i "4a $clip" {} Quick explaination. We are saving the lines 5 and 6 from our desired file into $clip. Then we list all the files without fuzz, pipe them to xargs and set to run the commands individually, appending our $clip variable to line 4 ...
Getting Started with Hugo
Introduction Getting started with static site generators I had a few qualifications. Portability, no NodeJS, and manage everything from text files. Installed the extended version using the .deb file and then installed the PaperMod theme hugo new site MyFreshWebsite --format yaml git submodule add --depth=1 https://github.com/adityatelange/hugo-PaperMod.git themes/PaperMod git submodule update --init --recursive git submodule update --remote --merge echo 'theme: ["PaperMod"]' >> hugo.yaml