9 messages in com.perforce.perforce-user[p4] Looking for a script
FromSent OnAttachments
Charlie Ruble02 May 2000 11:30 
Steve Cogorno02 May 2000 11:41 
Michael Go02 May 2000 11:47 
Silverman, Dave02 May 2000 11:50 
Steve Cogorno02 May 2000 11:55 
Plumlee, Philip02 May 2000 12:00 
Silverman, Dave02 May 2000 12:03 
Michael Go02 May 2000 12:09 
Scott Blachowicz02 May 2000 13:39 
Subject:[p4] Looking for a script
From:Steve Cogorno (Stev@Eng.Sun.COM)
Date:05/02/2000 11:55:25 AM
List:com.perforce.perforce-user

Michael Go said: [Charset iso-8859-1 unsupported, filtering to ASCII...]

underscore. I've tried this: find . -type f|grep " "|/usr/xpg4/bin/awk '{printf "mv \"%s\"",$0; gsub(/ /,"_"); print " "$0}'>dir

but this writes each move statement to a file and then you execute the file. The problem with this is the first statement executes converting a directory name from "directory name" to "directory_name". Now every move statement that uses that directory name fails b/c it can't find "directory name".

How so? Your "find" command uses "-type f", so it wouldn't affect directories, right?

No, the awk command is going to modify spaces in directory names too.