aboutsummaryrefslogtreecommitdiff
path: root/bin/capitalize
diff options
context:
space:
mode:
authorrodri <rgl@antares-labs.eu>2021-04-10 14:37:56 +0000
committerrodri <rgl@antares-labs.eu>2021-04-10 14:37:56 +0000
commit4d4867ed7731c7aa70855e0b62913f442d35628c (patch)
tree1939f5af1777aa9d23ef35b3553e319072206c8a /bin/capitalize
downloadmkweb-4d4867ed7731c7aa70855e0b62913f442d35628c.tar.gz
mkweb-4d4867ed7731c7aa70855e0b62913f442d35628c.tar.bz2
mkweb-4d4867ed7731c7aa70855e0b62913f442d35628c.zip
finally released to the world.
Diffstat (limited to 'bin/capitalize')
-rwxr-xr-xbin/capitalize2
1 files changed, 2 insertions, 0 deletions
diff --git a/bin/capitalize b/bin/capitalize
new file mode 100755
index 0000000..58b338b
--- /dev/null
+++ b/bin/capitalize
@@ -0,0 +1,2 @@
+#!/bin/rc
+awk '{for(i=1;i<=NF;i++)sub(/./,toupper(substr($i,1,1)),$i)}1'