renaming files

Hello,

I wanted to rename one file where filename contains space.. How can i rename in unix?

The file name is ABC XYZ.TXT

I wanted to rename this file as ABCXYZ.TXT.

Any help is greatly appreciated...

Regards.

Depends on what you have in that directory....
check:
ls -al ABC*.TXT| wc -l
Gives you how many files?

Have you tried

mv ABC?XYZ.TXT  ABCXYZ.TXT

Theres many options... (with sed for example..)

Thanks.. It helps..

use below code:

Or just escape the space:

mv ABC\ XYZ.TXT ABCXYZ.TXT