Skip to content

ookangzheng

  • About
  • Design
    • UI/UX
  • Dev
    • Linux
    • Mac
    • Windows
    • Software recommend
    • Site recommend
  • Life

Shell script beautify with shfmt

EdwardonApril 22, 2021August 14, 2021

Beautify shell script with shfmt :+1:

Github repo: https://github.com/mvdan/sh

Installation

GO111MODULE=on go get mvdan.cc/sh/v3/cmd/shfmt

Format

shfmt -l -w your-script.sh

Photo by Farzad Nazifi on Unsplash

CategoriesLinux, Technology

Post navigation

Linux

Fix SSL certificate problem: unable to get local issuer certificate

Operating system: Mac OSX Big Sur 11.2 When you encountered this error SSL certificate problem: unable to get local issuer…

AWS

AWS CDK Wafv2 enable logging the Custom Resource way

Expectation We need to collect all WAF logs to S3 bucket. But Cloud Formation or AWS CDK cannot easily configure…

Proudly powered by WordPress | Theme: Justread by GretaThemes.