s- becomes lstrip
This commit is contained in:
parent
1811d3351c
commit
950e6f45ce
3 changed files with 5 additions and 11 deletions
4
bin/lstrip
Executable file
4
bin/lstrip
Executable file
|
|
@ -0,0 +1,4 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
# macOS (BSD) flavor of sed
|
||||
sed -E 's/^[[:space:]]+//'
|
||||
10
bin/s-
10
bin/s-
|
|
@ -1,10 +0,0 @@
|
|||
#!/usr/bin/env perl
|
||||
|
||||
while (<>) {
|
||||
if ($_ =~ m/^\s+$/) {
|
||||
print "\n";
|
||||
} else {
|
||||
$_ =~ s/^\s+//;
|
||||
print $_;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue