Skip to content

Instantly share code, notes, and snippets.

@cGuille
Created July 24, 2018 07:45
Show Gist options
  • Save cGuille/7a53a7e83bc0369d921ede60732c3b6b to your computer and use it in GitHub Desktop.
Save cGuille/7a53a7e83bc0369d921ede60732c3b6b to your computer and use it in GitHub Desktop.
Remove indentation (leading blank characters) from stdin
#!/usr/bin/env bash
set -eu
sed -r 's/^[[:blank:]]+//'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment