Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

convert all files to lowercase using shell script

#!/bin/sh

for x in `ls`
  do
  if [ ! -f $x ]; then
    continue
    fi
  lc=`echo $x  | tr '[A-Z]' '[a-z]'`
  if [ $lc != $x ]; then
    mv -i $x $lc
  fi
  done
Source by community.spiceworks.com #
 
PREVIOUS NEXT
Tagged: #convert #files #lowercase #shell #script
ADD COMMENT
Topic
Name
8+1 =