convert_all_file_name_to_lover
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| convert_all_file_name_to_lover [2009/04/26 02:15] – created k2patel | convert_all_file_name_to_lover [Unknown date] (current) – removed - external edit (Unknown date) 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== Convert all file name to lovercase ====== | ||
| - | <code bash> | ||
| - | #!/bin/sh | ||
| - | # lowerit | ||
| - | # convert all file names in the current directory to lower case | ||
| - | # only operates on plain files--does not change the name of directories | ||
| - | # will ask for verification before overwriting an existing file | ||
| - | for x in `ls` | ||
| - | do | ||
| - | if [ ! -f $x ]; then | ||
| - | continue | ||
| - | fi | ||
| - | lc=`echo $x | tr ' | ||
| - | if [ $lc != $x ]; then | ||
| - | mv -i $x $lc | ||
| - | fi | ||
| - | done | ||
| - | </ | ||
convert_all_file_name_to_lover.1240712140.txt.gz · Last modified: 2020/08/10 02:28 (external edit)
