blob: d2a2a1da5ee394e45e0c44f013c134705fdb920b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
############################################################################
#
# File: lcn.icn
#
# Subject: Program to convert file names to all lowercase
#
# Author: Ralph E. Griswold
#
# Date: February 25, 2003
#
############################################################################
#
# This file is in the public domain.
#
############################################################################
#
# This program converts files named on the command line to all lowercase
# names. Blanks are converted to underscores.
#
############################################################################
#
# Requires: UNIX
#
############################################################################
procedure main(args)
local name, lc, uc
uc := &ucase || " "
lc := &lcase || "_"
every name := !args do
rename(name, map(name, uc, lc))
end
|