Rewrite case conversion scripts

This commit is contained in:
Ev Bogdanov 2017-08-16 19:14:53 +03:00
parent 6feacfe8ee
commit f73cf241cf
6 changed files with 10 additions and 20 deletions

2
bin/h+
View file

@ -8,7 +8,7 @@ if [ ! "$symbol" ]; then
symbol='#'
fi
line=$(sed 1q | uc+)
line=$(sed 1q | upper)
echo "$symbol$symbol $line"
echo "$symbol$symbol -----------------------------------------------------------------------------"

View file

@ -1,8 +0,0 @@
#!/usr/bin/env perl
use utf8;
use open qw(:std :utf8);
while (<>) {
print lc $_;
}

3
bin/lower Executable file
View file

@ -0,0 +1,3 @@
#!/usr/bin/env bash
tr '[:upper:]' '[:lower:]'

View file

@ -1,8 +0,0 @@
#!/usr/bin/env perl
use utf8;
use open qw(:std :utf8);
while (<>) {
print uc $_;
}

3
bin/upper Executable file
View file

@ -0,0 +1,3 @@
#!/usr/bin/env bash
tr '[:lower:]' '[:upper:]'