Rewrite case conversion scripts
This commit is contained in:
parent
6feacfe8ee
commit
f73cf241cf
6 changed files with 10 additions and 20 deletions
2
bin/h+
2
bin/h+
|
|
@ -8,7 +8,7 @@ if [ ! "$symbol" ]; then
|
|||
symbol='#'
|
||||
fi
|
||||
|
||||
line=$(sed 1q | uc+)
|
||||
line=$(sed 1q | upper)
|
||||
|
||||
echo "$symbol$symbol $line"
|
||||
echo "$symbol$symbol -----------------------------------------------------------------------------"
|
||||
|
|
|
|||
8
bin/lc+
8
bin/lc+
|
|
@ -1,8 +0,0 @@
|
|||
#!/usr/bin/env perl
|
||||
|
||||
use utf8;
|
||||
use open qw(:std :utf8);
|
||||
|
||||
while (<>) {
|
||||
print lc $_;
|
||||
}
|
||||
3
bin/lower
Executable file
3
bin/lower
Executable file
|
|
@ -0,0 +1,3 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
tr '[:upper:]' '[:lower:]'
|
||||
8
bin/uc+
8
bin/uc+
|
|
@ -1,8 +0,0 @@
|
|||
#!/usr/bin/env perl
|
||||
|
||||
use utf8;
|
||||
use open qw(:std :utf8);
|
||||
|
||||
while (<>) {
|
||||
print uc $_;
|
||||
}
|
||||
3
bin/upper
Executable file
3
bin/upper
Executable file
|
|
@ -0,0 +1,3 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
tr '[:lower:]' '[:upper:]'
|
||||
Loading…
Add table
Add a link
Reference in a new issue