The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #3 (permalink)  
Old 08-31-2007
kamitsin's Avatar
kamitsin kamitsin is offline
Registered User
  
 

Join Date: Nov 2006
Location: /dev/null
Posts: 177
Quote:
Originally Posted by ahmedwaseem2000 View Post
Try This:

Code:
find . -name "*" | sed '1,$s/ /\-/g; s/\-\-/\-/g'
Waseem,

This will not rename the file. Option is to write a script with a combination of find ,sed and mv command.

Cheers,
K