summaryrefslogtreecommitdiff
path: root/ipl/progs/lcfile.icn
blob: f302de944590256b60e0746a7fdec999e4eea2a7 (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
############################################################################
#
#	File:     lcfile.icn
#
#	Subject:  Program to convert file names to lowercase
#
#	Author:   Ralph E. Griswold
#
#	Date:     June 11, 2001
#
############################################################################
#
#   This file is in the public domain.
#
############################################################################
#
#  This program converts file names to lowercase letters.  File names to
#  convert are given in standard input.
#
############################################################################
#
#  Requires:  UNIX
#
############################################################################

procedure main()
   local name

   while name := read() do
      system("mv " || name || " " || map(name))

end