lower and upper case file name ftp in LAN

i have a LAN with some win98 and some unix computers. i transfer files with ftp and and have no problem with transfering files from unix computers to win98 computers. but the other unix computers don't know UPPER CASE file name of win98 computers. i have to rename one by one those on unix computers that is hard work to me.
you have any better way to solve my problem. thank you.
ldlaw789Asked:
Who is Participating?
 
jlevieConnect With a Mentor Commented:
Your problem is really that windows isn't case sensitive and Unix is. When you transfer a file from windows to Unix it usually becomes uppercase because that's what windows represented the file name to be. If the file case doesn't otherwise matter, you can simply use the correct case for the name when moving the data between the Unix systems. If it does matter then you must rename the files to have lowercase names. There's an easy way to accomplish that. Create a shell script that contains:

#!/bin/sh
mv $1 `echo $1 | tr [:upper:] [:lower:]`

name the script tolower (or what ever you like) and make it executable (chmod +x tolower). You can the change the name of a single file with "tolower FILE-NAME". You can also do all the files in a directory with:

> for file in *; do tolower $file; done

in a bourne or bash shell.
0
 
ldlaw789Author Commented:
Thank you jlevie. The script is good for me. i will use it to rename upper name files on my unix computers.
0
 
wlaarhovCommented:
If you use WS-FTP to transfer the files, you can configure how filenames are transfered.

0
Improve Your Query Performance Tuning

In this FREE six-day email course, you'll learn from Janis Griffin, Database Performance Evangelist. She'll teach 12 steps that you can use to optimize your queries as much as possible and see measurable results in your work. Get started today!

 
ldlaw789Author Commented:
Hi wlaarhov. i use CuteFtp but i can use WS_FTP if its configure help me. could you tell me more clearly. thank you.
ldlaw789.
0
 
GEM100Commented:
I have a wonderful and extremely simple answer for you. I wrote an incredibly simple .bat file, that does all the thing. Download it at:

http://members.xoom.com/biggem100/caps.zip

Read the simplest reame file, and you get it.
What it does is converts all the filenames and/or extensions (it's 2 .bat files) to lower case. Filename is limited to 14 letters, extension - to 5, but if you edit the .bat file, you can make it longer. G-Luck
0
 
ldlaw789Author Commented:
i'm sorry. the .bat files're so long. i prefer jlevie's script. it runs well on my unix computers.
0
 
ldlaw789Author Commented:
jlevie. i like your script. thanks.
0
 
jlevieCommented:
You're welcome...
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.