Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

rename all files with spaces in name

Status
Not open for further replies.

MoshiachNow

IS-IT--Management
Feb 6, 2002
1,851
IL
HI,

I need a short way to find all files in the directory that have a space in their name,and rename them so that the underscore replaces the space in name for all files found.

Appreciate any idea.
Thanks

Long live king Moshiach !
 
If your system has the [tt]rename[/tt] command, try:
Code:
rename " " _ *
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top