s- becomes lstrip

This commit is contained in:
Ev Bogdanov 2017-08-16 19:59:39 +03:00
parent 1811d3351c
commit 950e6f45ce
3 changed files with 5 additions and 11 deletions

4
bin/lstrip Executable file
View file

@ -0,0 +1,4 @@
#!/usr/bin/env bash
# macOS (BSD) flavor of sed
sed -E 's/^[[:space:]]+//'

10
bin/s-
View file

@ -1,10 +0,0 @@
#!/usr/bin/env perl
while (<>) {
if ($_ =~ m/^\s+$/) {
print "\n";
} else {
$_ =~ s/^\s+//;
print $_;
}
}